ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Template:Flag: Difference between revisions
Jump to navigation
Jump to search
m Reverted edits by 210.205.32.161 (Talk); changed back to last version by Rattus |
Testing new and improved version |
||
Line 1: | Line 1: | ||
<div style="position: relative; top: -1em; left: 0em;"> | <div style="position: relative; top: -1em; left: 0em;"> | ||
{| class="template_modbar_table gamegallery" | {| class="template_modbar_table gamegallery" | ||
|[[Image:Game_td_{{{td|no | |[[Image:Game_td_{{ #ifeq: {{{td}}} | yes | yes | no }}.png|Tiberian Dawn]] | ||
|[[Image:Game_co_{{{co|no | |[[Image:Game_co_{{ #ifeq: {{{co}}} | yes | yes | no }}.png|The Covert Operations]] | ||
|[[Image:Game_ra_{{{ra|no | |[[Image:Game_ra_{{ #ifeq: {{{ra}}} | yes | yes | no }}.png|Red Alert]] | ||
|[[Image:Game_cs_{{{cs|no | |[[Image:Game_cs_{{ #ifeq: {{{cs}}} | yes | yes | no }}.png|Counterstrike]] | ||
|[[Image:Game_am_{{{am|no | |[[Image:Game_am_{{ #ifeq: {{{am}}} | yes | yes | no }}.png|Aftermath]] | ||
|[[Image:Game_ts_{{{ts|no | |[[Image:Game_ts_{{ #ifeq: {{{ts}}} | yes | yes | no }}.png|Tiberian Sun]] | ||
|[[Image:Game_fs_{{{fs|no | |[[Image:Game_fs_{{ #ifeq: {{{fs}}} | yes | yes | no }}.png|Firestorm]] | ||
|[[Image:Game_ets_{{{ets|no | |[[Image:Game_ets_{{ #ifeq: {{{ets}}} | yes | yes | no }}.png|Extended Tiberian Sun]] | ||
|[[Image:Game_ra2_{{{ra2|no | |[[Image:Game_ra2_{{ #ifeq: {{{ra2}}} | yes | yes | no }}.png|Red Alert 2]] | ||
|[[Image:Game_yr_{{{yr|no | |[[Image:Game_yr_{{ #ifeq: {{{yr}}} | yes | yes | no }}.png|Yuri's Revenge]] | ||
|[[Image:Game_rp_{{{rp|no | |[[Image:Game_rp_{{ #ifeq: {{{rp}}} | yes | yes | no }}.png|RockPatch]] | ||
|[[Image:Game_gen_{{{gen|no | |[[Image:Game_gen_{{ #ifeq: {{{gen}}} | yes | yes | no }}.png|Generals]] | ||
|[[Image:Game_zh_{{{zh|no | |[[Image:Game_zh_{{ #ifeq: {{{zh}}} | yes | yes | no }}.png|Zero Hour]] | ||
|[[Image:Game_tw_{{{tw|no | |[[Image:Game_tw_{{ #ifeq: {{{tw}}} | yes | yes | no }}.png|Tiberium Wars]] | ||
|} | |} | ||
{|align="left" width="100%" cellspacing="0" cellpadding="0" class="template_flag" height="100%" | {|align="left" width="100%" cellspacing="0" cellpadding="0" class="template_flag" height="100%" | ||
Line 25: | Line 25: | ||
|- | |- | ||
|'''[[Help:Values|Values]]:''' | |'''[[Help:Values|Values]]:''' | ||
|{{{values|ERROR - No value type set! Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] this page and fix the [[Template:Flag|Flag template]]!}}} | |{{{values|ERROR - No value type set! Please [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] this page and fix the [[Template:Flag|Flag template]]! <includeonly>[[Category:Flags missing value types]]</includeonly>}}} | ||
|- | |-{{#if: {{{special|}}} |<br> | ||
{{!}}'''Special Values:''' | |||
{{!}}{{{special}}} | |||
| | {{!}}- }}{{#if: {{{default|}}} |<br> | ||
{{!}}'''Default:''' | |||
{{!}}{{{default}}} | |||
{{!}}- }} | |||
|'''Applicable to:''' | |'''Applicable to:''' | ||
|{{{types|{{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}}}} | |{{{types|{{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}}}}{{ #ifeq: {{{deezire}}} | yes | <br> | ||
{{!}}- | |||
{{!}}colspan="2" style="background-color: #FF8888"{{!}}<p style="font-size: 85%; padding: 0.1em;">'''This entry was copied from [[DeeZire's Red Alert 2 and Yuris Revenge INI Editing Guide]] for the sake of completeness. As it is not our intention to rip off DeeZire's work, this article is subject to a re-write and update with the latest community knowledge.'''</p><p style="font-size: x-small; padding: 0.1em;">For further information, please read [[ModEnc:Inclusion of DeeZire's Red Alert 2 and Yuris Revenge INI Editing Guide|this]].</p> }}{{ #ifexpr: {{ #ifexist: {{PAGENAME}} I | 1 | 0 }} or {{ #ifexist: {{PAGENAME}} II | 1 | 0 }} or {{ #ifexist: {{PAGENAME}} III | 1 | 0 }} or {{ #ifexist: {{PAGENAME}} IIII | 1 | 0 }} | <br> | |||
{{!}}- | |||
{{!}}'''Warning:''' | |||
{{!}}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> | <includeonly>[[Category:INI Flags]]</includeonly> |
Revision as of 21:38, 8 November 2007
Flag: | Flag |
Files: | Rules(md).ini |
Values: | ERROR - No value type set! Please edit this page and fix the Flag template! |
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.
Notes
- If there is no value for special or default, do not set anything.
- If a value begins with a - (minus), prefix it with .
- 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.