Difference between revisions of "Template:Always substitute"
Jump to navigation
Jump to search
(Shamelessly copied from wikipedia.org (pre-Lua version)) |
m (Fix links to Wikipedia (hopefully)) |
||
Line 2: | Line 2: | ||
| name = Subst only | | name = Subst only | ||
| type = notice | | type = notice | ||
| text = '''This template should always be | | text = '''This template should always be {{Wikipedia|Help:Substitution|substituted}}''' (i.e., use <!-- | ||
-->{{{actualtemplate|{{template other|{{Tlsp|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|{{PAGENAME}}}}}}|{{Tlsu|{{FULLPAGENAME}}}}}}}}}). <!-- | -->{{{actualtemplate|{{template other|{{Tlsp|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|{{PAGENAME}}}}}}|{{Tlsu|{{FULLPAGENAME}}}}}}}}}). <!-- | ||
-->{{#if:{{yesno|{{{auto|no}}}}} |Any accidental transclusions will be automatically substituted by a bot.{{{1|}}}{{#switch:{{SUBPAGENAME}}|doc|sandbox=|[[Category:Wikipedia templates to be automatically substituted]]}}}} <!-- | -->{{#if:{{yesno|{{{auto|no}}}}} |Any accidental transclusions will be automatically substituted by a bot.{{{1|}}}{{#switch:{{SUBPAGENAME}}|doc|sandbox=|[[Category:Wikipedia templates to be automatically substituted]]}}}} <!-- | ||
-->{{#if:{{{alt|}}} |For transcluding, use {{Tl|{{{alt|}}}}} instead.}} | -->{{#if:{{{alt|}}} |For transcluding, use {{Tl|{{{alt|}}}}} instead.}} | ||
}}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikipedia substituted templates]]}}<noinclude>{{Documentation}}</noinclude> | }}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikipedia substituted templates]]}}<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 15:09, 28 February 2024
This template should always be substituted (i.e., use {{{ subst:Always substitute}}). |
This documentation is transcluded from Template:Always substitute/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template should not be substituted. |
{{Always substitute}} produces the following notice:
This template should always be substituted (i.e., use {{subst:foo}}). |
(but {{Always substitute}} itself should not be substituted.)
Usage
{{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).
Pages that include {{Always substitute}} are added to Category:Wikipedia substituted templates.
Parameters
|auto =
- If set as "yes", the template to which the notice refers will be subst:ed automatically unless the |demo = yes parameter is set. The notice is amended to state this. Default is "no". Setting this parameter to "yes" places the template in Category:Wikipedia templates to be automatically substituted; see User:AnomieBOT/docs/TemplateSubster for more information.
|alt =
- Use to set an alternate and transcludable name for the template.
Redirects
- {{substed}}
- {{substitute}}
- {{substituted}}
- {{substonly}}
- {{subst only}}