Template:Tag: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(fix single tag XHTML)
m (56 revisions imported from templatewiki:Template:Tag)
 
(27 intermediate revisions by 10 users not shown)
Line 1: 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
-->{{#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-->
|c|close = {{{content|}}}
|pair
|e|empty|s|single|v|void = &#32;&#47;&gt;
|#default = {{{content|}}}
}}{{#switch:{{{2|pair}}}
|o|open = &gt;{{{content|}}}
|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>
</noinclude>

Latest revision as of 18:06, 6 September 2020

<tag>...</tag>