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

Difference between revisions of "Template:Flag"

From ModEnc
Jump to: navigation, search
(Let's see if the bitch works now.)
(Taking out the link to Help:Values in favor of Template:Values)
Line 24: Line 24:
 
|{{{files|{{Categ|Rules(md).ini}}}}}
 
|{{{files|{{Categ|Rules(md).ini}}}}}
 
|-
 
|-
|'''[[Help:Values|Values]]:'''
+
|'''Values:'''
 
|{{{values|ERROR - No value type or list set! Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] this page and fix the [[Template:Flag|Flag template]]! [[Category:Flags missing value types]]}}}
 
|{{{values|ERROR - No value type or list set! Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] this page and fix the [[Template:Flag|Flag template]]! [[Category:Flags missing value types]]}}}
 
|-{{#if: {{{special|}}} |<br>
 
|-{{#if: {{{special|}}} |<br>
Line 46: Line 46:
 
|name=
 
|name=
 
|files=
 
|files=
|values=
+
|values={{values|}}
 
|special=
 
|special=
 
|default=
 
|default=
Line 96: Line 96:
 
*'''name:''' The exact name of the flag (Defaults to page name)
 
*'''name:''' The exact name of the flag (Defaults to page name)
 
*'''files:''' In which files this flag can be used (Defaults to {{rules}})
 
*'''files:''' In which files this flag can be used (Defaults to {{rules}})
*'''values:''' Possible values/[[Help:Values|value types]]
+
*'''values:''' Possible values/[[Help:Values|value types]]; use [[Template:Values]] for common ones.
 
*'''special:''' Special values, if any (like -1 for unlimited) - ''don't set this if there is none''
 
*'''special:''' Special values, if any (like -1 for unlimited) - ''don't set this if there is none''
 
*'''default:''' The default value for this flag - ''don't set this if there is none''
 
*'''default:''' The default value for this flag - ''don't set this if there is none''

Revision as of 02:47, 11 November 2007

This template generates the general flag header to be used at the very top of flag pages.

Usage

{{Flag
|name=
|files=
|values={{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; use Template:Values for common ones.
  • special: Special values, if any (like -1 for unlimited) - don't set this if there is none
  • default: The default value for this flag - don't set this if there is none
  • types: Where you can use this flag
  • 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.

Notes

  • If there is no value for special or default, do not set anything.
  • If a value begins with a - (minus), write &#8722;value instead.
  • 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.