|
|
| (未显示同一用户的1个中间版本) |
| 第1行: |
第1行: |
| : ''This template should be used in favor of [[Template:tt]] when styling flags.''
| | #REDIRECT [[Template:Documentation]] |
| 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==
| |
| <pre>{{f|FLAGNAME}}</pre>
| |
| This will only apply text formatting to the flag.<br>
| |
| '''Where'''
| |
| *FLAGNAME = name of the flag to process
| |
| '''Example:''' <code><nowiki>{{f|Damage}}</nowiki></code> {{arr|r}} {{f|Damage}}
| |
| | |
| | |
| ==Flag only, linked==
| |
| <pre>{{f|FLAGNAME|link}}</pre>
| |
| This will apply text formatting and link to the flag's page.<br>
| |
| '''Where'''
| |
| *FLAGNAME = name of the flag to process
| |
| *link = constant trigger to trigger linking
| |
| '''Example:''' <code><nowiki>{{f|Damage|link}}</nowiki></code> {{arr|r}} {{f|Damage|link}}<br>
| |
| '''Subsection:''' <code><nowiki>{{f|Damage#IsLocomotor|link}}</nowiki></code> {{arr|r}} {{f|Damage#IsLocomotor|link}}
| |
| | |
| | |
| ==Flag with value==
| |
| <pre>{{f|FLAGNAME|VALUE}}</pre>
| |
| This will apply text formatting and append the provided value.<br>
| |
| '''Where'''
| |
| *FLAGNAME = name of the flag to process
| |
| *VALUE = the value the flag to process should be displayed with
| |
| '''Example:''' <code><nowiki>{{f|Damage|100}}</nowiki></code> {{arr|r}} {{f|Damage|100}}
| |
| | |
| | |
| ==Flag with value, linked==
| |
| <pre>{{f|FLAGNAME|VALUE|link}}</pre>
| |
| This will apply text formatting, append the provided value and link to the flag's page.<br>
| |
| '''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:''' <code><nowiki>{{f|Damage|100|link}}</nowiki></code> {{arr|r}} {{f|Damage|100|link}}<br>
| |
| '''Subsection:''' <code><nowiki>{{f|Damage#IsLocomotor|100|link}}</nowiki></code> {{arr|r}} {{f|Damage#IsLocomotor|100|link}}
| |