Template:SandboxTop: Difference between revisions
No edit summary |
. |
||
Line 5: | Line 5: | ||
<includeonly><span style="font-family: monospace;">{{#if: {{{3|}}} | [[{{{1|Template: | <includeonly><span style="font-family: monospace;">{{#if: {{{3|}}} | [[{{{1|Template:F}}}{{#ifeq: {{lc:{{{3|}}}}} | link | | #{{{3|}}}}}|{{{1|'''ERROR''' no flag provided in Template:F.}}}={{{2|}}}]] | {{#ifeq: {{lc:{{{2|}}}}} | link | [[{{{1|'''ERROR''' no flag provided in Template:F.}}}]] | {{{1|'''ERROR''' no flag provided in [[Template:F]].}}}{{#if: {{{2|}}} | ={{{2|}}} |}} }} }}</span></includeonly><noinclude>: ''This template should be used in favor of [[Template:tt]] when styling flags.'' | ||
This template is used to format flag mentions on ModEnc pages. Depending on the arguments provided, it can format flags in the following ways: | This template is used to format flag mentions on ModEnc pages. Depending on the arguments provided, it can format flags in the following ways: | ||
==Flag only== | ==Flag only== | ||
<pre>{{ | <pre>{{f|FLAGNAME}}</pre> | ||
This will only apply text formatting to the flag.<br> | This will only apply text formatting to the flag.<br> | ||
'''Where''' | '''Where''' | ||
*FLAGNAME = name of the flag to process | *FLAGNAME = name of the flag to process | ||
'''Example:''' <code><nowiki>{{ | '''Example:''' <code><nowiki>{{f|Damage}}</nowiki></code> {{arr|r}} {{f|Damage}} | ||
==Flag only, linked== | ==Flag only, linked== | ||
<pre>{{ | <pre>{{f|FLAGNAME|link}}</pre> | ||
This will only apply text formatting to the flag.<br> | This will only apply text formatting to the flag.<br> | ||
'''Where''' | '''Where''' | ||
*FLAGNAME = name of the flag to process | *FLAGNAME = name of the flag to process | ||
*link = constant trigger to trigger linking | *link = constant trigger to trigger linking | ||
'''Example:''' <code><nowiki>{{ | '''Example:''' <code><nowiki>{{f|Damage|link}}</nowiki></code> {{arr|r}} {{f|Damage|link}} | ||
==Flag with value== | ==Flag with value== | ||
<pre>{{ | <pre>{{f|FLAGNAME|VALUE}}</pre> | ||
This will only apply text formatting to the flag.<br> | This will only apply text formatting to the flag.<br> | ||
'''Where''' | '''Where''' | ||
*FLAGNAME = name of the flag to process | *FLAGNAME = name of the flag to process | ||
*VALUE = the value the flag to process should be displayed with | *VALUE = the value the flag to process should be displayed with | ||
'''Example:''' <code><nowiki>{{ | '''Example:''' <code><nowiki>{{f|Damage|100}}</nowiki></code> {{arr|r}} {{f|Damage|100}} | ||
==Flag with value, linked== | ==Flag with value, linked== | ||
<pre>{{ | <pre>{{f|FLAGNAME|VALUE|link}}</pre> | ||
This will only apply text formatting to the flag.<br> | This will only apply text formatting to the flag.<br> | ||
'''Where''' | '''Where''' | ||
Line 41: | Line 41: | ||
*VALUE = the value the flag to process should be displayed with | *VALUE = the value the flag to process should be displayed with | ||
*link = constant trigger to trigger linking | *link = constant trigger to trigger linking | ||
'''Example:''' <code><nowiki>{{ | '''Example:''' <code><nowiki>{{f|Damage|100|link}}</nowiki></code> {{arr|r}} {{f|Damage|100|link}} | ||
==Flag with value, linked to specific section== | ==Flag with value, linked to specific section== | ||
<pre>{{ | <pre>{{f|FLAGNAME|VALUE|PAGESECTION}}</pre> | ||
'''Where''' | '''Where''' | ||
*FLAGNAME = name of the flag to process | *FLAGNAME = name of the flag to process | ||
*VALUE = the value the flag to process should be displayed with | *VALUE = the value the flag to process should be displayed with | ||
*PAGESECTION = the relative URI of the page and section to link to | *PAGESECTION = the relative URI of the page and section to link to | ||
'''Example:''' <code><nowiki> {{ | '''Example:''' <code><nowiki> {{f|Damage|100|Damage#IsLocomotor}}</nowiki></code> {{arr|r}} {{f|Damage|100|Damage#IsLocomotor}}</noinclude> |
Revision as of 02:43, 1 December 2009
Official ModEnc Testing Page ("Sandbox") for Templates
This is a sandbox - a page for testing stuff. Feel free to test any editing related stuff here. There also exists a regular testing page. Please remove the your content if you no longer need it. Also note that the following content does not contain any useful information.
- This template should be used in favor of Template:tt when styling flags.
This template is used to format flag mentions on ModEnc pages. Depending on the arguments provided, it can format flags in the following ways:
Flag only
{{f|FLAGNAME}}
This will only apply text formatting to the flag.
Where
- FLAGNAME = name of the flag to process
Example: {{f|Damage}}
→ Damage
Flag only, linked
{{f|FLAGNAME|link}}
This will only apply text formatting to the flag.
Where
- FLAGNAME = name of the flag to process
- link = constant trigger to trigger linking
Example: {{f|Damage|link}}
→ Damage
Flag with value
{{f|FLAGNAME|VALUE}}
This will only apply text formatting to the flag.
Where
- FLAGNAME = name of the flag to process
- VALUE = the value the flag to process should be displayed with
Example: {{f|Damage|100}}
→ Damage=100
Flag with value, linked
{{f|FLAGNAME|VALUE|link}}
This will only apply text formatting to the flag.
Where
- FLAGNAME = name of the flag to process
- VALUE = the value the flag to process should be displayed with
- link = constant trigger to trigger linking
Example: {{f|Damage|100|link}}
→ Damage=100
Flag with value, linked to specific section
{{f|FLAGNAME|VALUE|PAGESECTION}}
Where
- FLAGNAME = name of the flag to process
- VALUE = the value the flag to process should be displayed with
- PAGESECTION = the relative URI of the page and section to link to
Example: {{f|Damage|100|Damage#IsLocomotor}}
→ Damage=100