Template:Substitute/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{dochead}}{{wikipedia|Template:Always substitute|Template:Never substitute|Template:May be substituted}} | {{dochead}}{{wikipedia|Template:Always substitute|Template:Never substitute|Template:May be substituted}} | ||
This template is used | This template is used to indicate that a template can be substituted. '''This template itself, however, should never be substituted.''' | ||
{{tlx|substitute}} should be placed on the {{w|Wikipedia:Template documentation|documentation}} {{w|subpage|s=wp}} of any template that | {{tlx|substitute}} should be placed on the {{w|Wikipedia:Template documentation|documentation}} {{w|subpage|s=wp}} of any template that can be used with {{w|substitution|s=mw:help}} rather than {{w|transclusion|s=mw:help}} (i.e. not on the template's own page itself). | ||
Templates that should always be substituted are automatically added to [[:Category:Substituted templates]]. | Templates that should always be substituted are automatically added to [[:Category:Substituted templates]]. | ||
Line 11: | Line 11: | ||
=== Usage === | === Usage === | ||
==== Templates that ''can be substituted | ==== Templates that ''can'' be substituted ==== | ||
Equivalent to Wikipedia's {{w|Template:May be substituted}}. This is the default option, indicating that a template works either way. | Equivalent to Wikipedia's {{w|Template:May be substituted}}. This is the default option, indicating that a template works either way. | ||
<pre>{{substitute}}</pre> | <pre>{{substitute}}</pre> |