Template:Require subst/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) m Remove stray brackets |
||
| Line 10: | Line 10: | ||
If a substituted template is transcluded instead of substituted, an error message is displayed. For example: | 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> | {{error|This template must be {{w|wp:Template substitution|substituted}}. Replace <nowiki>{{</nowiki>template name ...<nowiki>}} with {{</nowiki>subst:template name ...<nowiki>}}</nowiki>.}} | ||
Revision as of 21:18, 30 January 2026
- This template is a metatemplate. It is used to build other templates and should not be used standalone, except for testing or simple usage.
This is a metatemplate that can be wrapped around a template that requires substitution.
<includeonly>{{safesubst:require subst|template= [Name of template] |1=</includeonly>
... (normal template code) ...
<includeonly>}}</includeonly>
If a substituted template is transcluded instead of substituted, an error message is displayed. For example:
This template must be substituted. Replace {{template name ...}} with {{subst:template name ...}}.
