Template:Always substitute: Difference between revisions
Template page
More actions
Content deleted Content added
m Added update to allow 'can' to be 'yesnomaybe' and to stabilize parameter input. The switch now lower-cases 'yesnomaybe' when comparing. |
Make <strong> and </strong> tags balanced. Categorize "yesnomaybe=can" the same way as "yesnomaybe=may". |
||
| Line 4: | Line 4: | ||
| name = Subst only |
| name = Subst only |
||
| type = notice |
| type = notice |
||
| text = This template |
| text = This template {{#switch:{{lc:{{{yesnomaybe|}}}}}|can|may=<strong>{{lc:{{{yesnomaybe}}}}} be [[Help:Substitution|substituted]]</strong> by using <!-- |
||
--><strong>{{{actualtemplate|{{template other|{{Tls|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|#default={{PAGENAME}}}}}}|{{Tlsu|{{FULLPAGENAME}}}}}}}}}</strong><!-- |
|||
-->|never=<strong>should <em>not</em> be [[Help:Substitution|substituted]]</strong> – use <!-- |
|||
--><strong>{{{actualtemplate|{{template other|{{Tl|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|#default={{PAGENAME}}}}}}|{{tlu|{{FULLPAGENAME}}}}}}}}}</strong><!-- |
|||
-->|#default=<strong>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:{{{alt|}}}|{{#ifeq:{{{auto|}}}|yes|<br/>}}For [[Help:Transclusion|transclusion]], use <strong>{{#ifeq:{{NAMESPACE:{{{alt}}}}}|Template|{{Tlu|{{PAGENAME:{{{alt}}}}}}}|{{Tlg|{{{alt}}}}}}}</strong> 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=|#default={{#switch:{{{yesnomaybe|}}} |
}}{{#if:{{yesno|{{{nocat|<noinclude>true</noinclude>}}}}}|<!--no categorization-->|{{#switch:{{SUBPAGENAME}}|doc|sandbox=|#default={{#switch:{{lc:{{{yesnomaybe|}}}}} |
||
|never=[[Category:Wikipedia never-substituted templates]] |
|never=[[Category:Wikipedia never-substituted templates]] |
||
|may=<!--No applicable category--> |
|can|may=<!--No applicable category--> |
||
|#default=[[Category:Wikipedia substituted templates]]{{#ifexpr: 0{{Find page text |text=<!%-%- *{{NAMESPACE}}:[{{lc:{{str left|{{Lua escape|{{{1|{{PAGENAME}}}}}}}|1}}}}{{uc:{{str left|{{Lua escape|{{{1|{{PAGENAME}}}}}}}|1}}}}]{{str right|{{Lua escape|{{{1|{{PAGENAME}}}}}}}|1}} *%-%-> |title={{FULLPAGENAME}} |plain=f}} > 0 | [[Category:Templates with matching hidden id]]}} |
|#default=[[Category:Wikipedia substituted templates]]{{#ifexpr: 0{{Find page text |text=<!%-%- *{{NAMESPACE}}:[{{lc:{{str left|{{Lua escape|{{{1|{{PAGENAME}}}}}}}|1}}}}{{uc:{{str left|{{Lua escape|{{{1|{{PAGENAME}}}}}}}|1}}}}]{{str right|{{Lua escape|{{{1|{{PAGENAME}}}}}}}|1}} *%-%-> |title={{FULLPAGENAME}} |plain=f}} > 0 | [[Category:Templates with matching hidden id]]}} |
||
}}}}}}}}<includeonly>__EXPECTUNUSEDTEMPLATE__</includeonly>< |
}}}}}}}}<includeonly>__EXPECTUNUSEDTEMPLATE__</includeonly><noinclude> |
||
{{Documentation}} |
|||
</noinclude> |
|||
Revision as of 16:22, 6 August 2026
| This template should always be substituted – use {{subst:Always substitute}}. |