Template:Require subst/doc: Difference between revisions

ArrowHead294 (talk | contribs)
Documentation
 
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{dochead|header=metatemplate}}{{wikipedia}}
{{dochead|header=metatemplate}}{{wikipedia}}
This is a metatemplate that can be wrapped around a template that requires substitution. It alerts users if a substituted template is transcluded instead of substituted.
This is a metatemplate that can be wrapped around a template that requires substitution.


<syntaxhighlight lang="wikitext">
<syntaxhighlight lang="wikitext">
Line 7: Line 7:
<includeonly>}}</includeonly>
<includeonly>}}</includeonly>
</syntaxhighlight>
</syntaxhighlight>
If a substituted template is transcluded instead of substituted, an error message is displayed. For example:
{{error|This template must be {{w|wp:Template substitution|substituted}}. Replace <nowiki>{{</nowiki>template name ...<nowiki>}} with {{</nowiki>subst:template name ...<nowiki>}}</nowiki>}}.}}