Template:Tag: Difference between revisions

m
56 revisions imported from templatewiki:Template:Tag
(fix)
m (56 revisions imported from templatewiki:Template:Tag)
 
(36 intermediate revisions by 11 users not shown)
Line 1:
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
<tt>{{#switch:{{{3|pair}}
Opening tag
|close
<tt-->{{#switch:{{{32|pair}}}
|single = <!--nothing-->
|c|close =
|open
|e|empty|s|single|v|void
|pair
|o|open
|#default = <nowiki><</nowiki>{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}<nowiki>></nowiki>
|p|pair = &lt;{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
}}{{#switch:{{{3|pair}}}
}}<!--
|open
Content between tags
|close
}}-->{{#switch:{{{32|pair}}}
|single =
|c|close = {{{content|}}}
|pair
|e|empty|s|single|v|void = &#32;&#47;&gt;
|#default = {{{2|}}}
}}{{#switch: |o|open = &gt;{{{3content|pair}}}
|p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|open
}}<!--
|single = <!--nothing-->
Closing tag
|close
}}-->{{#switch:{{{32|pair}}}
|pair
|e|empty|s|single|v|void
|#default = <nowiki></</nowiki>{{{1|tag}}}<nowiki>></nowiki>
|o|open =
}}{{#switch:{{{3|pair}}}
|c|close
|single = <nowiki></</nowiki>{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}<nowiki> /></nowiki>
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}</tt><noinclude>
}}<!--
{{documentation}}
}}--></ttcode><noinclude>
{{Documentation}}
</noinclude>