Jump to content

Template:Always substitute/doc

From Wikipedia

{{Always substitute}} produces the following notice: Template:Quote (but {{Always substitute}} itself should not be substituted.)

{{Always substitute}}

{{Always 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).

Parameters

[edit source]
|yesnomaybe=
Can be set to never, can, may, or always. Setting it to never will display a notice stating that the template "should not be substituted". Setting it to can or may will display a notice stating that the template "can be substituted" or "may be substituted", respectively. The default is always and will display a notice stating that the template "should always be substituted".
|auto=
If set to yes, the template referred to by this notice will be automatically substituted by a bot when it is transcluded, unless the |demo=yes parameter is set. The notice is amended to state this. Setting this parameter to yes also places the template referred to by this notice in Category:Wikipedia templates to be automatically substituted; see User:AnomieBOT/docs/TemplateSubster for more information. The default is no.
|alt=
Set this parameter to a page title or location, without square brackets or braces (such as Template:Example or Example), to use as the alternate and transcludable name for the template. This will display a notice with an amended statement to use this location for transclusion. If the location includes the "Template:" namespace at the beginning, the template will drop it and display a template to the direct location.
|nocat=true
Set this parameter to suppress automatic categorization.

Categorization

[edit source]

Pages that include {{Always substitute}} are added to Category:Wikipedia substituted templates.

Templates that subst a template name string onto the target page in hidden text are added to Category:Templates with matching hidden id if and only if the hidden template name string matches the name of the template. For example: Template:Uw-coi contains the token <!-- Template:Uw-coi -->, and since the token matches the Template name, Template:Uw-coi is a member of the category.

Template:List of subst helper templates