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
Some more fixes
Some documentation fixes
Line 40: Line 40:
{{!}}style="background-color: #FF5E5E"{{!}}'''Warning:'''
{{!}}style="background-color: #FF5E5E"{{!}}'''Warning:'''
{{!}}style="background-color: #FF8888"{{!}}One or more numbered subpages exist: {{ #ifexist: {{PAGENAME}} I | [[{{PAGENAME}} I]] |}}{{ #ifexist: {{PAGENAME}} II | , [[{{PAGENAME}} II]] |}}{{ #ifexist: {{PAGENAME}} III | , [[{{PAGENAME}} III]] |}}{{ #ifexist: {{PAGENAME}} IIII | , [[{{PAGENAME}} IIII]] |}}. These should be merged into '''this''' page.<includeonly>[[Category:Flags with import-generated subpages]]</includeonly>|}}
{{!}}style="background-color: #FF8888"{{!}}One or more numbered subpages exist: {{ #ifexist: {{PAGENAME}} I | [[{{PAGENAME}} I]] |}}{{ #ifexist: {{PAGENAME}} II | , [[{{PAGENAME}} II]] |}}{{ #ifexist: {{PAGENAME}} III | , [[{{PAGENAME}} III]] |}}{{ #ifexist: {{PAGENAME}} IIII | , [[{{PAGENAME}} IIII]] |}}. These should be merged into '''this''' page.<includeonly>[[Category:Flags with import-generated subpages]]</includeonly>|}}
|}</div>{{clr}}
|}</div>{{clr}}<includeonly>[[Category:INI Flags]]</includeonly><noinclude>Usage:
<includeonly>[[Category:INI Flags]]</includeonly>
<noinclude>Usage:
<pre>{{Flag
<pre>{{Flag
|name=
|name=
Line 97: Line 95:
*'''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]]
*'''special:''' Special values, if any (like -1 for unlimited)
*'''special:''' Special values, if any (like -1 for unlimited) - ''don't set this if there is none''
*'''default:''' The default value for this flag
*'''default:''' The default value for this flag - ''don't set this if there is none''
*'''types:''' Where you can use this flag (Defaults to all *Types]]
*'''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.{{clr}}
*'''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.{{clr}}
==Notes==
==Notes==
*If there is no value for special or default, do not set anything.
*If there is no value for special or default, do not set anything.
*If a value begins with a - (minus), prefix it with &amp;nbsp;.
*If a value begins with a - (minus), write <code>&amp;#8722;value</code> 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 <nowiki>__TOC__</nowiki> or disable it entirely via <nowiki>__NOTOC__</nowiki>.  
*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.

Revision as of 22:12, 8 November 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
File(s): Rules(md).ini
Values: ERROR - No value type or list set! Please edit this page and fix the Flag template!


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) - 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.