模板:Ifsubst/sandbox
外观
| 这是Template:Ifsubst(差异)的沙盒。 |
| 此模板沙盒被引用于许多页面。 为了避免造成大规模的影响,所有对此模板沙盒的编辑应先于沙盒、测试样例或您的沙盒上测试。 测试后无误的版本可以一次性地加入此模板沙盒中,但是修改前请务必于讨论页发起讨论。 模板引用数量会自动更新。 |
用法
[编辑]本模板需在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}}: 根据代码被“取代”与否决定呼出值。