Template:Require substitution: Difference between revisions
Appearance
imported>Deadfire Creation |
Tungstenchan (talk | contribs) m Text replacement - "BattleTechWiki" to "BattleIntelligence" |
||
| Line 3: | Line 3: | ||
| {{{1|}}} | | {{{1|}}} | ||
| {{ {{{|safesubst:}}}error | | {{ {{{|safesubst:}}}error | ||
| This template must be [[ | | This template must be [[BattleIntelligence:Substitution|substituted]]{{ | ||
#if:{{{template|}}} | #if:{{{template|}}} | ||
|. Replace <nowiki>{{</nowiki>{{{template}}} ...<nowiki>}} with {{</nowiki>subst:{{{template}}} ...<nowiki>}}</nowiki> | |. Replace <nowiki>{{</nowiki>{{{template}}} ...<nowiki>}} with {{</nowiki>subst:{{{template}}} ...<nowiki>}}</nowiki> | ||
}}.}} | }}.}} | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 01:14, 1 May 2025
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Usage
Metatemplate that can be wrapped around a template that requires substitution.
{{ {{{|safesubst:}}}require subst
| ... (normal template code) ...
}}List of subst helper templates
- {{require substitution}} – Prints an error unless substituted.
- {{always substitute}} – For the Template documentation of the above templates; prints a message asking for it be substituted.
- {{never substitute}} – The reverse of {{always substitute}}. For the doc of templates which should not be substituted; prints a message asking for it not to be substituted.
- {{may be substituted}} – For the doc of templates whose substitution is optional.
- {{substitution}} – Allows free-fill description of whether the template should be substituted and under what conditions.
- {{ifsubst}} – Forks if substituted or not.
- {{issubst}} – Returns "yes" if substituted.
- Module:Unsubst – Prevents substitution.
- Module:Unsubst-infobox – Prevents substitution for infoboxes, cleans up parameters.