Template:Never substitute/doc: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Created documentation.)
 
(Updated template documentation and added TemplateData.)
Line 1: Line 1:
{{Documentation subpage}}
Use {{tlx|Never substitute}} at the top of the documentation for a template that must be [[MW:Transclusion|transcluded]] and not be [[MW:Substituted|substituted]].
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{hatnote|The following also '''applies''' to this template, so this template should '''never''' be substituted:}}
* {{tlx|Never substitute}}
{{Never substitute}}
{{Never substitute}}


=== Usage ===
== TemplateData ==
<code><nowiki>{{Never substitute}}</nowiki></code>
<templatedata>
 
{
This template should be placed on the <big>[[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpage|subpage]]</big> (not the template page itself) of any template that should '''not''' be substituted (and [[Wikipedia:Transclusion|transcluded]] instead).
"params": {},
 
"description": "This template creates a notice on a template's documentation telling editors that the template should be transcluded and not be substituted.",
{{List of subst helper templates}}
"format": "inline"
 
}
<includeonly>{{sandbox other||
</templatedata>
<!-- Categories below this line, please; interwikis at Wikidata -->
{{DEFAULTSORT:Substitute, Never}}
[[Category:Documentation header templates]]
 
}}</includeonly>

Revision as of 15:33, 30 November 2024

Use {{Never substitute}} at the top of the documentation for a template that must be transcluded and not be substituted.

TemplateData

This template creates a notice on a template's documentation telling editors that the template should be transcluded and not be substituted.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified