ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Template:F: Difference between revisions
Jump to navigation
Jump to search
m Removing reference to Template:TTL since this is the last thing that links to it. |
Sorry, Ren. I just couldn't help myself. Now one can link to a specific section in a flag page. |
||
Line 1: | Line 1: | ||
<includeonly><span style="font-family: monospace;">{{# | <includeonly><span style="font-family: monospace;">{{#ifeq: {{lc:{{{3|}}}}} | link | [[{{{1|Template:F}}}{{#if: {{{4|}}} | #{{{4|}}} }}|{{{1|'''ERROR''' no flag provided in Template:F.}}}={{{2|}}}]] | {{#ifeq: {{lc:{{{2|}}}}} | link | [[{{{1|Template:F}}}{{#if: {{{3|}}} | #{{{3|}}} }}|{{{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: | ||
Line 17: | Line 17: | ||
*link = constant trigger to trigger linking | *link = constant trigger to trigger linking | ||
'''Example:''' <code><nowiki>{{f|Damage|link}}</nowiki></code> {{arr|r}} {{f|Damage|link}} | '''Example:''' <code><nowiki>{{f|Damage|link}}</nowiki></code> {{arr|r}} {{f|Damage|link}} | ||
==Flag only, linked to a specific section== | |||
<pre>{{f|FLAGNAME|link|PAGESECTION}}</pre> | |||
This will only apply text formatting to the flag.<br> | |||
'''Where''' | |||
*FLAGNAME = name of the flag to process | |||
*link = constant trigger to trigger linking | |||
*PAGESECTION = the relative URI of the page and section to link to | |||
'''Example:''' <code><nowiki>{{f|Damage|link|IsLocomotor}}</nowiki></code> {{arr|r}} {{f|Damage|link|IsLocomotor}} | |||
Line 35: | Line 45: | ||
*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>{{f|Damage|100|link}}</nowiki></code> {{arr|r}} {{f|Damage|100|link}}</noinclude> | '''Example:''' <code><nowiki>{{f|Damage|100|link}}</nowiki></code> {{arr|r}} {{f|Damage|100|link}} | ||
==Flag with value, linked to specific section== | |||
<pre>{{f|FLAGNAME|VALUE|link|PAGESECTION}}</pre> | |||
'''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:''' <code><nowiki> {{f|Damage|100|link|IsLocomotor}}</nowiki></code> {{arr|r}} {{f|Damage|100|link|IsLocomotor}}</noinclude> |
Revision as of 04:44, 2 December 2009
- 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 only, linked to a specific section
{{f|FLAGNAME|link|PAGESECTION}}
This will only apply text formatting to the flag.
Where
- FLAGNAME = name of the flag to process
- link = constant trigger to trigger linking
- PAGESECTION = the relative URI of the page and section to link to
Example: {{f|Damage|link|IsLocomotor}}
→ 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|link|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|link|IsLocomotor}}
→ Damage=100