切換菜單
切換偏好設定選單
切換個人選單
尚未登入
若您做出任何編輯,會公開您的 IP 位址。
zh>BrockF52022年11月29日 (二) 20:56的修訂 用法:​ 第一句話大意翻完,呼叫第一或第二參數是根據要進行替換或嵌入與否)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)

用法

作為判斷是否透過替換嵌入來呼叫第一或第二參數的元模板。

本模板需在safesubst模式下使用,以維持正確的運作。

{{ {{{|safesubst:}}}ifsubst| yes | no }}

相關模板

  • {{require subst}}: 呼出錯誤值,直到被取代為止。
    • {{subst check top}}, {{subst check bottom}}: Same purpose, but used as a pair.
    • {{subst only}}: For the doc of the above templates; prints a message asking for it be substituted.
    • {{nosubst}}: The reverse of {{subst only}}. For the doc of templates which should not be substituted; prints a message asking for it not to be substituted.
    • {{substitution}}: Allows free-fill description of whether the template should be substituted and under what conditions.
  • {{issubst}}: 若被取代時,呼出「yes」值。
  • {{ifsubst}}: 根據程式碼被「取代」與否決定呼出值。