Template:Tag: Difference between revisions

Content deleted Content added
import from enwp
ExE Boss (talk | contribs)
Include <syntaxhighlight> classes (match mw:Template:Tag)
Line 1:
<code class="mw-highlight {{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
Opening tag
-->{{#ifeq:{{{1|tag}}}|!--|<span class=c>}}<!--
-->{{#switch:{{{2|pair}}}
|c|close =
|s|single
|o|open
|p|pair = {{#ifeq:{{{1|tag}}}|!--|&lt;!--|{{#tag:span|&lt;|class=p}}{{#tag:span|{{{1|tag}}}|class=nt}}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
}}<!--
Content between tags
-->{{#switch:{{{2|pair}}}
|c|close = {{{content|}}}
|s|single = &#32;{{#ifeq:{{{1|tag}}}|!--|--&gt;|{{#tag:span|&#47;&gt;|class=p}}}}
|o|open = {{#ifeq:{{{1|tag}}}|!--||{{#tag:span|&gt;|class=p}}}}{{{content|}}}
|p|pair = {{#ifeq:{{{1|tag}}}|!--||{{#tag:span|&gt;|class=p}}}}{{{content|...}}}
}}<!--
Closing tag
Line 19 ⟶ 20:
|o|open =
|c|close
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|{{#tag:span|&lt;&#47;|class=p}}{{#tag:span|{{{1|tag}}}|class=nt}}{{#tag:span|&gt;|class=p}}}}
}}<!--
-->{{#ifeq:{{{1|tag}}}|!--|</span>}}<!--
--></code><noinclude>
{{Documentation}}