Template:Tag: Difference between revisions

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