Template:Dtag
Appearance
| This template should always be substituted – use {{subst:Dtag}}. |
Delays the evaluation of a tag. A tag's text can be generated dynamically, and then evaluated after the next substitution. Unlike the code generated by {{#tag:}}, the tag will not be evaluated immediately.
Usage
[edit source]Should be substituted only within an <includeonly>...</includeonly> block.
<includeonly>...{{subst:Dtag|tag|attributes=attribs|content}}...</includeonly>
|tagis the name of the tag, to be enclosed in angled brackets.|attributes=attribsis a list of attribute names and values separated by equals signs, to be inserted within the first set of angled brackets.
Example:|attributes=class="error" style="font-weight: normal"|contentis the code to be enclosed between the start and end tags. Can be omitted to create a self-closing<tag />tag.