Template:Substitute/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 5: Line 5:
{{tlx|substitute}} should be placed on the {{w|Wikipedia:Template documentation|documentation}} {{w|subpage|s=wp}} of any template that requires [[mw:help:substitution|substitution]] rather than [[mw:help:transclusion|transclusion]] (i.e. not on the template's own page itself).
{{tlx|substitute}} should be placed on the {{w|Wikipedia:Template documentation|documentation}} {{w|subpage|s=wp}} of any template that requires [[mw:help:substitution|substitution]] rather than [[mw:help:transclusion|transclusion]] (i.e. not on the template's own page itself).


Pages that include <code>{{<nowiki />substitute|always}}</code> are added to [[:Category:Substituted templates]].
Templates that should always be substituted must be added to [[:Category:Substituted templates]].


==== Parameters ====
==== Parameters ====
; <code>{{{<nowiki />1}}}</code> (required)
; <code>{{{<nowiki />1}}}</code> (required)
: Set this to <code>always</code> if the template ''should always'' be substituted, <code>no</code> if the template ''should not'' be substituted, or <code>maybe</code> if the template can be either substituted or transcluded.
: Set this to <code>always</code> if the template ''should always'' be substituted, <code>no</code> if the template ''should not'' be substituted, or <code>maybe</code> if the template can be either substituted or transcluded.

Revision as of 18:00, 19 May 2025

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

Usage

{{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 maybe if the template can be either substituted or transcluded.