Template:Tag: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(Improvement on last change)
(Update via sandbox/testcases (style option, code comprehensibility))
Line 1: Line 1:
<code class="nowrap">{{#switch:{{{2|pair}}}
<code class="nowrap" style="{{#switch:{{{style|}}} |plain=border:none;background:transparent; |{{{style|}}} }}"><!--

|c|close = <!--nothing-->
Opening tag
|s|single
-->{{#switch:{{{2|<!--(else default:)-->pair}}}
|o|open
|c|close =
|p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
|s|single
}}{{#switch:{{{2|pair}}}
|o|open
|c|close = {{{content|}}}
|p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
|s|single = &#32;&#47;&gt;
}}<!--
|o|open = &gt;{{{content|}}}

|p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
Content between tags
}}{{#switch:{{{2|pair}}}
-->{{#switch:{{{2|pair}}}
|s|single
|c|close = {{{content|}}}
|o|open = <!--nothing-->
|s|single = &#32;&#47;&gt;
|c|close
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
|o|open = &gt;{{{content|}}}
|p|pair = {{#ifeq:{{{1|tag}}}|!-- | |&gt;}}{{{content|...}}}
}}</code><noinclude>
}}<!--
{{documentation}}

Closing tag
-->{{#switch:{{{2|pair}}}
|s|single
|o|open =
|c|close
|p|pair = {{#ifeq:{{{1|tag}}}|!-- |--&gt; |&lt;&#47;{{{1|tag}}}&gt;}}
}}<!--

--></code><noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 12:14, 14 December 2014

<tag>...</tag>