跳至內容
RA2DIY-WIKI 当前处于维护模式:页面上的内容随时可能发生更改且不会事先告知。

模板:Doc

出自RA2DIY
於 2025年3月30日 (日) 03:06 由 Admin留言 | 貢獻 所作的修訂 (创建页面,内容为“: ''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== <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 on…”)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
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}}{{#if: | {{#explode:Damage|#|0}}= | {{#ifeq: | link | {{#explode:Damage|#|0}} | Damage{{#if: | = |}} }} }}


Flag only, linked

{{f|FLAGNAME|link}}

This will apply text formatting and link to the flag's page.
Where

  • FLAGNAME = name of the flag to process
  • link = constant trigger to trigger linking

Example: {{f|Damage|link}}{{#if: | {{#explode:Damage|#|0}}=link | {{#ifeq: link | link | {{#explode:Damage|#|0}} | Damage{{#if: link | =link |}} }} }}
Subsection: {{f|Damage#IsLocomotor|link}}{{#if: | {{#explode:Damage#IsLocomotor|#|0}}=link | {{#ifeq: link | link | {{#explode:Damage#IsLocomotor|#|0}} | Damage#IsLocomotor{{#if: link | =link |}} }} }}


Flag with value

{{f|FLAGNAME|VALUE}}

This will apply text formatting and append the provided value.
Where

  • FLAGNAME = name of the flag to process
  • VALUE = the value the flag to process should be displayed with

Example: {{f|Damage|100}}{{#if: | {{#explode:Damage|#|0}}=100 | {{#ifeq: 100 | link | {{#explode:Damage|#|0}} | Damage{{#if: 100 | =100 |}} }} }}


Flag with value, linked

{{f|FLAGNAME|VALUE|link}}

This will apply text formatting, append the provided value and link to the flag's page.
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}}{{#if: link | {{#explode:Damage|#|0}}=100 | {{#ifeq: 100 | link | {{#explode:Damage|#|0}} | Damage{{#if: 100 | =100 |}} }} }}
Subsection: {{f|Damage#IsLocomotor|100|link}}{{#if: link | {{#explode:Damage#IsLocomotor|#|0}}=100 | {{#ifeq: 100 | link | {{#explode:Damage#IsLocomotor|#|0}} | Damage#IsLocomotor{{#if: 100 | =100 |}} }} }}