Template:Tag: Difference between revisions

add plain
(add 'wrap' for long samples)
 
(add plain)
Line 1:
{{#if:{{{plain|}}}|
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
|<code style="white-space:nowrap">
Opening tag
-->}}{{#switch:{{{2|pair}}}
|c|close = <!--nothing-->
|s|single
|o|open
|p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
-->}}{{#switch:{{{2|pair}}}
}}<!--
|c|close = {{{content|}}}
Content between tags
|s|single = &#32;&#47;&gt;
-->{{#switch:{{{2|pair}}}
|co|closeopen = &gt;{{{content|}}}
|p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|s|single = &#32;&#47;&gt;
|o|open = &gt;}}{{#switch:{{{content2|pair}}}
|s|single
|p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|o|open = <!--nothing-->
}}<!--
|c|close
Closing tag
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
-->{{#switch:{{{2|pair}}}
}}{{#if:{{{plain|}}}|
|s|single
|</code>
|o|open =
--></code>}}<noinclude>
|c|close
{{documentation}}
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}<!--
--></code><noinclude>
{{Documentation}}
</noinclude>
Anonymous user