Template:Always substitute/doc
| This is a documentation subpage for Template:Always substitute It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
| This template should not be substituted – use {{Always substitute}}. |
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
{{Always substitute}} produces the following notice:
Template:Quote
(but {{Always substitute}} itself should not be substituted.)
Usage
[edit source]{{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, oralways. Setting it toneverwill display a notice stating that the template "should not be substituted". Setting it tocanormaywill display a notice stating that the template "can be substituted" or "may be substituted", respectively. The default isalwaysand 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=yesparameter is set. The notice is amended to state this. Setting this parameter toyesalso 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 isno. |alt=- Set this parameter to a page title or location, without square brackets or braces (such as
Template:ExampleorExample), 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.