Template:Always substitute: Difference between revisions
Template page
More actions
Content deleted Content added
m Spacing. |
m Added update to allow 'can' to be 'yesnomaybe' and to stabilize parameter input. The switch now lower-cases 'yesnomaybe' when comparing. |
||
| Line 4: | Line 4: | ||
| name = Subst only |
| name = Subst only |
||
| type = notice |
| type = notice |
||
| text = This template <strong>{{#switch:{{{yesnomaybe|}}}|may= |
| text = This template <strong>{{#switch:{{lc:{{{yesnomaybe|}}}}}|can|may={{lc:{{{yesnomaybe}}}}} be [[Help:Substitution|substituted]]</strong> by using <!-- |
||
-->{{{actualtemplate|{{template other|{{ |
--><strong>{{{actualtemplate|{{template other|{{Tls|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|#default={{PAGENAME}}}}}}|{{Tlsu|{{FULLPAGENAME}}}}}}}}}</strong>|never=should <em>not</em> be [[Help:Substitution|substituted]]</strong> – use <!-- |
||
-->{{{actualtemplate|{{template other|{{ |
--><strong>{{{actualtemplate|{{template other|{{Tl|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|#default={{PAGENAME}}}}}}|{{tlu|{{FULLPAGENAME}}}}}}}}}</strong>|#default=should <em>always</em> be [[Help:Substitution|substituted]]</strong> – use <!-- |
||
--><strong>{{{actualtemplate|{{template other|{{Tls|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|#default={{PAGENAME}}}}}}|{{Tlsu|{{FULLPAGENAME}}}}}}}}}</strong>}}. <!-- |
|||
-->{{#if:{{yesno|{{{auto|no}}}}} |
-->{{#if:{{yesno|{{{auto|no}}}}}|Any accidental transclusions will be automatically substituted by a bot.{{{1|}}}{{#if:{{yesno|{{{nocat|}}}}}|<!--no categorization-->|{{#switch:{{SUBPAGENAME}}|doc|sandbox=|#default=[[Category:Wikipedia templates to be automatically substituted]]}}}}}} <!-- |
||
-->{{#if:{{{alt|}}} |For transcluding, use {{Tl|{{{alt|}}}}} instead.}} |
|||
-->{{#if:{{{alt|}}}|{{#ifeq:{{{auto|}}}|yes|<br/>}}For [[Help:Transclusion|transclusion]], use <strong>{{#ifeq:{{NAMESPACE:{{{alt}}}}}|Template|{{Tlu|{{PAGENAME:{{{alt}}}}}}}|{{Tlg|{{{alt}}}}}}}</strong> instead.}} |
|||
}}{{#if:{{yesno|{{{nocat|<noinclude>true</noinclude>}}}}}|<!--no categorization-->|{{#switch:{{SUBPAGENAME}}|doc|sandbox=|{{#switch:{{{yesnomaybe|}}} |
}}{{#if:{{yesno|{{{nocat|<noinclude>true</noinclude>}}}}}|<!--no categorization-->|{{#switch:{{SUBPAGENAME}}|doc|sandbox=|#default={{#switch:{{{yesnomaybe|}}} |
||
|never=[[Category:Wikipedia never-substituted templates]] |
|never=[[Category:Wikipedia never-substituted templates]] |
||
|may=<!--No applicable category--> |
|may=<!--No applicable category--> |
||
Revision as of 10:10, 23 July 2026
| This template should always be substituted – use {{subst:Always substitute}}. |