Template:Always substitute: Difference between revisions
Template page
More actions
Content deleted Content added
Fix categorization for "yesnomaybe=may". These pages should not go in Category:Wikipedia substituted templates, since that category is for templates that should *always* be substituted. Make a new category if desired. |
|||
| Line 1: | Line 1: | ||
{{{{{|safesubst:}}}#invoke:Unsubst|main|$B= |
{{{{{|safesubst:}}}#invoke:Unsubst|main|$B= |
||
{{Ombox |
{{Ombox |
||
| name |
| name = Subst only |
||
| type |
| type = notice |
||
| text |
| text = This template <strong>{{#switch:{{{yesnomaybe|}}}|may=may be [[Help:Substitution|substituted]]</strong>|never=should <em>not</em> be [[Help:Substitution|substituted]]</strong>||#default=should always be [[Help:Substitution|substituted]]</strong> – use <!-- |
||
-->{{{actualtemplate|{{template other|{{Tlsp|code=yes|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|{{PAGENAME}}}}}}|{{Tlsu|code=yes|{{FULLPAGENAME}}}}}}}}}}}. <!-- |
-->{{{actualtemplate|{{template other|{{Tlsp|code=yes|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|{{PAGENAME}}}}}}|{{Tlsu|code=yes|{{FULLPAGENAME}}}}}}}}}}}. <!-- |
||
-->{{#if:{{yesno|{{{auto|no}}}}} |Any accidental transclusions will be automatically substituted by a bot.{{{1|}}}{{#if:{{yesno|{{{nocat|}}}}}|<!--no categorization-->|{{#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|}}}{{#if:{{yesno|{{{nocat|}}}}}|<!--no categorization-->|{{#switch:{{SUBPAGENAME}}|doc|sandbox=|[[Category:Wikipedia templates to be automatically substituted]]}}}}}} <!-- |
||
| Line 10: | Line 10: | ||
|never=[[Category:Wikipedia never-substituted templates]] |
|never=[[Category:Wikipedia never-substituted templates]] |
||
|may=<!--No applicable category--> |
|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]] |
|||
}}}}}}}}<includeonly>__EXPECTUNUSEDTEMPLATE__</includeonly><noinclude>{{Documentation}}</noinclude> |
}}}}}}}}<includeonly>__EXPECTUNUSEDTEMPLATE__</includeonly><noinclude>{{Documentation}}</noinclude> |
||
Revision as of 07:02, 21 February 2026
| This template should always be substituted – use Template:Tlsp. |