Template:Subst only: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
| name = Subst only |
| name = Subst only |
||
| type = notice |
| type = notice |
||
| text = '''This template should always be [[Help:Substitution|substituted]]''' (i.e., use <!-- |
| 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}}|[[Wikipedia:Category:Wikipedia substituted templates]]}}}}<noinclude>{{Documentation}}</noinclude> |
||
Latest revision as of 13:36, 22 October 2020
| This template should always be substituted (i.e., use {{subst:Subst only}}). |
Wikipedia:Category:Wikipedia substituted templates
| This template should not be substituted. |
{{Subst only}} produces the following notice:
| This template should always be substituted (i.e., use {{subst:foo}}). |
(but {{Subst only}} itself should not be substituted.)
Usage
{{Subst only}}
{{Subst only}} 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 {{Subst only}} are added to Wikipedia: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=yesparameter is set. The notice is amended to state this. Default is "no". Setting this parameter to "yes" places the template in Wikipedia:Category:Wikipedia templates to be automatically substituted; see Wikipedia:User:AnomieBOT/docs/TemplateSubster for more information.
|alt=
- Use to set an alternate and transcludable name for the template.
Redirects
- {{substed}}
- {{substitute}}
- {{substituted}}
- {{substonly}}