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

Template:SandboxTop: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m Testing updated Flag-Template
 
m debug
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div style="position: relative; top: -1em; left: 0em;">
__NEWSECTIONLINK__
{| class="template_modbar_table gamegallery"
<p style="color:darkgreen;font-size:20px;border-style:solid;border-color:darkgreen;padding:10px;text-align:center;">Official ModEnc Testing Page ("Sandbox")</p>
|[[Image:Game_td_{{ #ifeq: {{{td}}} | yes | yes | no }}.png|Tiberian Dawn]]
This is a sandbox - a page for testing stuff. Feel free to test any editing related stuff here. There also exists a [[Template:Sandbox|Template-Sandbox]]. Please remove the your content if you no longer need it. Also note that the following content does not contain any useful information.
|[[Image:Game_co_{{ #ifeq: {{{co}}} | yes | yes | no }}.png|The Covert Operations]]
<br>
|[[Image:Game_ra_{{ #ifeq: {{{ra}}} | yes | yes | no }}.png|Red Alert]]
----<!-- Please do not remove the content above, as well as this whole line!-->
|[[Image:Game_cs_{{ #ifeq: {{{cs}}} | yes | yes | no }}.png|Counterstrike]]
|[[Image:Game_am_{{ #ifeq: {{{am}}} | yes | yes | no }}.png|Aftermath]]
|[[Image:Game_ts_{{ #ifeq: {{{ts}}} | yes | yes | no }}.png|Tiberian Sun]]
|[[Image:Game_fs_{{ #ifeq: {{{fs}}} | yes | yes | no }}.png|Firestorm]]
|[[Image:Game_ets_{{ #ifeq: {{{ets}}} | yes | yes | no }}.png|Extended Tiberian Sun]]
|[[Image:Game_ra2_{{ #ifeq: {{{ra2}}} | yes | yes | no }}.png|Red Alert 2]]
|[[Image:Game_yr_{{ #ifeq: {{{yr}}} | yes | yes | no }}.png|Yuri's Revenge]]
|[[Image:Game_rp_{{ #ifeq: {{{rp}}} | yes | yes | no }}.png|RockPatch]]
|[[Image:Game_gen_{{ #ifeq: {{{gen}}} | yes | yes | no }}.png|Generals]]
|[[Image:Game_zh_{{ #ifeq: {{{zh}}} | yes | yes | no }}.png|Zero Hour]]
|[[Image:Game_tw_{{ #ifeq: {{{tw}}} | yes | yes | no }}.png|Tiberium Wars]]
|}
{|align="left" width="100%" cellspacing="0" cellpadding="0" class="template_flag" height="100%"
|-
|'''Flag:'''
|{{{name|{{PAGENAME}}}}}
|-
|'''File(s):'''
|{{{files|{{Categ|Rules(md).ini}}}}}
|-
|'''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]]}}}
|-{{#if: {{{special|}}} |<br>
{{!}}'''Special Values:'''
{{!}}{{{special}}}
{{!}}- }}{{#if: {{{default|}}} |<br>
{{!}}'''Default:'''
{{!}}{{{default}}}
{{!}}- }}{{#if: {{{types|}}} |<br>
{{!}}'''Applicable to:'''
{{!}}{{{types}}} }}{{ #ifeq: {{{deezire}}} | yes | <br>
{{!}}-
{{!}}colspan="2" style="background-color: #FF8888"{{!}}<p style="font-size: 85%; padding: 0.1em;">'''This entry was copied from [[Red_Alert_2_ART.INI_Guide|XGamer's ART.INI 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 XGamer's ART.INI Guide|this]].</p> }}{{ #ifeq: {{{xgamer}}} | yes | <br>
{{!}}-
{{!}}colspan="2" style="background-color: #FF8888"{{!}}<p style="font-size: 85%; padding: 0.1em;">'''This entry was copied from [[XGamer's Guide]] for the sake of completeness. As it is not our intention to rip off XGamer'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>
{{!}}-
{{!}}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. [[Category:Flags with import-generated subpages]] |}}
|}</div>{{clr}}[[Category:INI Flags]]{{#if: {{{types|}}} ||[[Category:Flags missing object types they can be applied to]]}}</includeonly><noinclude>This template generates the general flag header to be used at the very top of flag pages.
 
==Usage==
<pre>{{Flag
|name=
|files=
|values={{values|}}
|special=
|default=
|types=
|games
}}</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>
*'''name:''' The exact name of the flag (Defaults to page name)
*'''files:''' In which files this flag can be used (Defaults to {{rules}})
*'''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''
*'''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.{{clr}}
==Notes==
*If there is no value for special or default, do not set anything.
*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>.
<br>Template includes [[:Category:INI Flags]] automatically.
<br><br>
''See example usages [[Ammo|here]] and [[ButtonList|here]].''
</noinclude>

Latest revision as of 09:43, 18 August 2021

Official ModEnc Testing Page ("Sandbox")

This is a sandbox - a page for testing stuff. Feel free to test any editing related stuff here. There also exists a Template-Sandbox. Please remove the your content if you no longer need it. Also note that the following content does not contain any useful information.