Template:Substitute: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
| type = notice | | type = notice | ||
| text = <span style{{=}}"font-size: 16px;">'''This template {{#switch: {{{1|}}} | | text = <span style{{=}}"font-size: 16px;">'''This template {{#switch: {{{1|}}} | ||
| always = should always be [[mw:help:substitution|substituted]]''' (i.e. use <code><nowiki>{{</nowiki>subst:{{PAGENAME}}<nowiki>}}</nowiki></code>). | | always = should always be [[mw:help:substitution|substituted]]''' (i.e. use <code><nowiki>{{</nowiki>subst:{{PAGENAME}}<nowiki>}}</nowiki></code>). | ||
| no = should ''not'' be [[mw:help:substitution|substituted]].''' | | no = should ''not'' be [[mw:help:substitution|substituted]].''' | ||
| may = may be [[mw:help:substitution|substituted]].''' | | may = may be [[mw:help:substitution|substituted]].''' |
Revision as of 17:59, 19 May 2025
This template is used to indicate that a template can be substituted. This template itself, however, should never be substituted.
{{substitute}}
should be placed on the documentation subpage of any template that can be used with substitution rather than transclusion (i.e. not on the template's own page itself).
Templates that should always be substituted are automatically added to Category:Substituted templates.
Parameters
{{{1}}}
(required)- Set this to
always
if the template should always be substituted orno
if the template should not be substituted. Leave it blank if the template can be either substituted or transcluded.
Usage
Templates that can be substituted
Equivalent to Wikipedia's Template:May be substituted. This is the default option, indicating that a template works either way.
{{substitute}}
Templates that must be substituted
Equivalent to Wikipedia's Template:Always substitute.
{{substitute|always}}
![]() |
This template should always be substituted (i.e. use {{subst:Substitute}} ).
|
Templates that must not be substituted
Equivalent to Wikipedia's Template:Never substitute.
{{substitute|no}}
![]() |
This template should not be substituted. |