ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Template:Flag: Difference between revisions

From ModEnc
Jump to navigation Jump to search
css'd
Bets on number of fixes I'll need?
Line 1: Line 1:
{|align="left" width="100%" cellspacing="0" cellpadding="0" class="template_flag blacklink"
<div style="position: relative; top: -1em; left: 0em;">
{| class="template_modbar_table gamegallery"
|[[Image:Game_td_{{{td|no}}}.png|Tiberian Dawn]]
|[[Image:Game_co_{{{co|no}}}.png|The Covert Operations]]
|[[Image:Game_ra_{{{ra|no}}}.png|Red Alert]]
|[[Image:Game_cs_{{{cs|no}}}.png|Counterstrike]]
|[[Image:Game_am_{{{am|no}}}.png|Aftermath]]
|[[Image:Game_ts_{{{ts|no}}}.png|Tiberian Sun]]
|[[Image:Game_fs_{{{fs|no}}}.png|Firestorm]]
|[[Image:Game_ets_{{{ets|no}}}.png|Extended Tiberian Sun]]
|[[Image:Game_ra2_{{{ra2|no}}}.png|Red Alert 2]]
|[[Image:Game_yr_{{{yr|no}}}.png|Yuri's Revenge]]
|[[Image:Game_rp_{{{rp|no}}}.png|RockPatch]]
|[[Image:Game_gen_{{{gen|no}}}.png|Generals]]
|[[Image:Game_zh_{{{zh|no}}}.png|Zero Hour]]
|[[Image:Game_tw_{{{tw|no}}}.png|Tiberium Wars]]
|}
{|align="left" width="100%" cellspacing="0" cellpadding="0" class="template_flag" height="100%"
|-
|-
|'''Flag:'''
|'''Flag:'''
|{{{name}}}
|{{{name|{{PAGENAME}}}}}
|-
|-
|'''Files:'''
|'''Files:'''
|{{{files}}}
|{{{files|{{rules}}}}}
|-
|-
|'''[[Help:Values|Values]]:'''
|'''[[Help:Values|Values]]:'''
|{{{values}}}
|{{{values|ERROR - No value type set! Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] this page and fix the [[Template:Flag|Flag template]]!}}}
|-
|-
|'''Special Values:'''
|'''Special Values:'''
|{{{special}}}
|{{{special|{{co|[no special value]|#333333}}}}}
|-
|-
|'''Default:'''
|'''Default:'''
|{{{default}}}
|{{{default|{{co|[no default]|#333333}}}}}
|-
|-
|'''Applicable to:'''
|'''Applicable to:'''
|{{{types}}}
|{{{types|{{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}}}}
|-
|}</div>{{clr}}
|'''Works in Game(s):'''
|{{{games}}}
|}<br><br><br><br><br><br><br><br>
<includeonly>[[Category:INI Flags]]</includeonly>
<includeonly>[[Category:INI Flags]]</includeonly>
<noinclude>
<noinclude>Usage:
<pre>{{Flag
<pre>{{Flag
|name=
|name=
Line 31: Line 45:
|default=
|default=
|types=
|types=
|games=
|games
}}</pre>
}}</pre>
{| cellpadding="4" class="table_descrow" style="float: right;"
!Code
!Game
!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]]
|}
Copy-paste the code above and fill out the parameters as follows:<br>
Copy-paste the code above and fill out the parameters as follows:<br>
*'''name:''' The exact name of the flag
*'''name:''' The exact name of the flag (Defaults to page name)
*'''files:''' In which files this flag can be used
*'''files:''' In which files this flag can be used (Defaults to {{rules}})
*'''values:''' Possible values  
*'''values:''' Possible values/[[Help:Values|value types]]
*'''special:''' Special values, if any (like -1 for unlimited)
*'''special:''' Special values, if any (like -1 for unlimited)
*'''default:''' The default value for this flag
*'''default:''' The default value for this flag
*'''types:''' Where you can use this flag
*'''types:''' Where you can use this flag (Defaults to all *Types]]
*'''games:''' In which games this flag is usable
*'''games:''' In which games this flag is usable. To select a game, add a parameter in the form of code=yes to your template call, e.g. yr=yes. A list of available codes is to the right of this text.
If there is no value, put "None"; capitalization is important in this case, as there may also be the ''value'' "none", which would be lower-case only.
 
If there is no value for special or default, do not set anything.{{clr}}
<br>'''Note:''' This template is intended to be put directly at the page's beginning - no extra horizontal lines, to empty lines, nothing. Either relocate the TOC via <nowiki>__TOC__</nowiki> or disable it entirely via <nowiki>__NOTOC__</nowiki>.  
<br>'''Note:''' This template is intended to be put directly at the page's beginning - no extra horizontal lines, to empty lines, nothing. Either relocate the TOC via <nowiki>__TOC__</nowiki> or disable it entirely via <nowiki>__NOTOC__</nowiki>.  
<br>Template includes Category:INI Flags automatically.
<br>Template includes [[:Category:INI]] Flags automatically.
<br><br>
<br><br>
''See example usages [[Ammo|here]] and [[ButtonList|here]].''
''See example usages [[Ammo|here]] and [[ButtonList|here]].''
</noinclude>
</noinclude>

Revision as of 00:20, 4 February 2007

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm Extended Tiberian Sun Red Alert 2 Yuri's Revenge RockPatch Generals Zero Hour Tiberium Wars
Flag: Flag
Files: Rules(md).ini
Values: ERROR - No value type set! Please edit this page and fix the Flag template!
Special Values: [no special value]
Default: [no default]
Applicable to: InfantryTypes, VehicleTypes, AircraftTypes, BuildingTypes


Usage:

{{Flag
|name=
|files=
|values=
|special=
|default=
|types=
|games
}}
Code Game 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

Copy-paste the code above and fill out the parameters as follows:

  • name: The exact name of the flag (Defaults to page name)
  • files: In which files this flag can be used (Defaults to Rules(md).ini)
  • values: Possible values/value types
  • special: Special values, if any (like -1 for unlimited)
  • default: The default value for this flag
  • types: Where you can use this flag (Defaults to all *Types]]
  • games: In which games this flag is usable. To select a game, add a parameter in the form of code=yes to your template call, e.g. yr=yes. A list of available codes is to the right of this text.

If there is no value for special or default, do not set anything.

Note: This template is intended to be put directly at the page's beginning - no extra horizontal lines, to empty lines, nothing. Either relocate the TOC via __TOC__ or disable it entirely via __NOTOC__.
Template includes Category:INI Flags automatically.

See example usages here and here.