Template:Flag: Difference between revisions
Appearance
en>Nighthawk200 Updating descriptions. |
en>Nighthawk200 m Woops... |
||
| Line 67: | Line 67: | ||
{{!}}ra2obsolete= | {{!}}ra2obsolete= | ||
{{!}}tsobsolete= | {{!}}tsobsolete= | ||
{{!}}aresflag= | {{!}}aresflag= | ||
{{!}}''games'' | {{!}}''games'' | ||
Revision as of 14:32, 9 November 2008
This template generates a standardized flag header.
Usage
A separate flag header should be used for each context the flag is used in. Distinct contexts include files and sections where flag usage differs. For example, Template:TTL is used in rules(md).ini for SuperWeaponTypes, sound(md).ini for VocTypes, and eva(md).ini for VoxTypes. This ensures that contextual flag usage is documented with accuracy.
This template includes Category:INI Flags automatically.
{{Flag
|name=
|files={{Categ|ini=ini-name}}, ...
|values={{values|value-type}}
|special=
|default=
|types={{Categ|section-name}}, ...
|ra2obsolete=
|tsobsolete=
|aresflag=
|games
}}
Copy-paste the code above and fill out the parameters as follows:
name- The exact name of the flag. Defaults to
{{PAGENAME}}. files- Which file the flag can be used in. Template:Categ, with {{{ini}}} set to the correct ini-name, should be used for consistency. Defaults to
{{Categ|ini=rules}}. values- Possible values the flag accepts. Template:Values should be used for consistency.
special- Special values, if any. For example, −11 is a special value for Template:TTL. This parameter is optional2.
default- The default value for the flag. This parameter is optional2.
types- The sections the flag pertains to. Template:Categ should be used for consistency.
games- Which games the flag is parsed in. To select a game, add a parameter in the form of
code=yes. For example,yr=yesindicates that the flag is parsed in Yuri's Revenge. ra2obsolete- If this flag is obsolete in Red Alert 2 and Yuri's Revenge, then add this to include the Obsolete banner.
tsobsolete- Add this one instead of 'ra2obsolete' if the flag is obsolete in Tiberian Sun as well as Red Alert 2 and Yuri's Revenge
aresflag- If this is a flag introduced in Ares, add this.
Parameter Codes for games
| Code | Game |
|---|---|
td
|
Tiberian Dawn |
co
|
The Covert Operations |
ra
|
Red Alert |
cs
|
Counterstrike |
am
|
Aftermath |
ts
|
Tiberian Sun |
fs
|
Firestorm |
ets
|
Extended Tiberian Sun |
ra2
|
Red Alert 2 |
yr
|
Yuri's Revenge |
rp
|
RockPatch |
gen
|
Generals |
zh
|
Zero Hour |
tw
|
Tiberium Wars |
kw
|
Kane's Wrath |
Notes
1 ↑ For negative numbers, − should be used for the sign instead of a hyphen.
2 ↑ If there is no explicit value, do not set this parameter.