Jump to content

Template:Dtag: Difference between revisions

From Wiki - Scioly.org
m Added categories
Pi-Bot (talk | contribs)
m Replacing old documentation reference with new Documentation template.
 
Line 1: Line 1:
<includeonly>{{subst:#if:{{{1|}}}|{{{|<}}}{{{1}}}{{subst:#if:{{{attributes|}}}| {{{attributes}}}}}{{subst:#if:{{{2|}}}|{{{|>}}}{{{2}}}{{{|<}}}/{{{1}}}{{{|>}}}|{{{| }}}/{{{|>}}}}}|<strong class="error">{{tl2|dtag}} requires at least one argument.</strong>}}</includeonly>
<includeonly>{{subst:#if:{{{1|}}}|{{{|<}}}{{{1}}}{{subst:#if:{{{attributes|}}}| {{{attributes}}}}}{{subst:#if:{{{2|}}}|{{{|>}}}{{{2}}}{{{|<}}}/{{{1}}}{{{|>}}}|{{{| }}}/{{{|>}}}}}|<strong class="error">{{tl2|dtag}} requires at least one argument.</strong>}}</includeonly>
<noinclude>
<noinclude>
{{Template:Dtag/doc}}
{{Documentation}}
</noinclude>
</noinclude>
<noinclude>
<noinclude>

Latest revision as of 22:54, 5 August 2020


Template documentation

The Dtag template is used to delay the evaluation of a tag. An example of a template that uses this template is Template:Nowiki.

Usage

{{Dtag|tag|attributes=...|content}}

tag - the tag that should be delayed
attributes - the attributes of the tag
content - the content that should be enclosed between the start and ending tags