Template:Substitute/doc

From Xenharmonic Wiki
Jump to navigation Jump to search
This template should not be substituted.
<div class="wikibanner">
<div class="wikibanner-image">[[File:Wikipedia-logo.png|44px|none|link=|alt=]]</div>
<div class="wikibanner-text">English [[Wikipedia:Main Page|Wikipedia]] has articles on:
<div>'''{{wlink|Template:Always substitute}}'''</div>
<div>'''{{wlink|Template:Never substitute}}'''</div>
<div>'''{{wlink|Template:May be substituted}}'''</div>
</div>{{clear}}</div>'"`UNIQ--templatestyles-00000002-QINU`"'

This template is used as a header to show whether a template should be substituted or not.

{{substitute}} should be placed on the documentation subpage of any template that requires substitution rather than transclusion (i.e. not on the template's own page itself).

Templates that should always be substituted must be added to Category:Substituted templates.

Parameters

{{{1}}} (required)
Set this to always if the template should always be substituted, no if the template should not be substituted, or both if the template can be either substituted or transcluded.

Usage

Templates that must be substituted

Equivalent to Wikipedia's Template:Always substitute

{{substitute|always}}
This template should always be substituted (i.e. use {{subst:[Template name]}}).

Templates that must not be substituted

Equivalent to Wikipedia's Template:Never substitute.

{{substitute|no}}
This template should not be substituted.

Templates that can be substituted or transcluded

Equivalent to Wikipedia's Template:May be substituted.

{{substitute|both}}
This template may be substituted.