Difference between revisions of "Template:Dtag/doc"
m (Typo fixing, replaced: the the → the using AWB (8853)) |
m (1 revision) |
(No difference)
|
Latest revision as of 14:39, 23 January 2013
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
This template should always be substituted – use {{subst:Dtag/doc}}. |
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
Should be substituted only within an <includeonly />
block.
{{Dtag/doc|tag|attributes=attribs|content}}
- tag is the name of the tag, to be enclosed in angled brackets.
- attribs is 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"
- content is the code to be enclosed between the start and end tags. Can be omitted to create a
<self-closing />
tag.
See also
- Metatemplating
- Dtag
- Eval
- Includeonly, Noinclude, and Nowiki
- Tft
- Sibling
- TEMPLATENAME and TEMPLATENAMEE
- !
- =
- (( and ))
- ((( and )))