Template:Tag: Difference between revisions
Content deleted Content added
import from enwp |
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}}}|!--|<!--|{{#tag:span|<|class=p}}{{#tag:span|{{{1|tag}}}|class=nt}}}}{{#if:{{{params|}}}| {{{params}}}}}
}}<!--
Content between tags
-->{{#switch:{{{2|pair}}}
|c|close = {{{content|}}}
|s|single =  {{#ifeq:{{{1|tag}}}|!--|-->|{{#tag:span|/>|class=p}}}}
|o|open = {{#ifeq:{{{1|tag}}}|!--||{{#tag:span|>|class=p}}}}{{{content|}}}
|p|pair = {{#ifeq:{{{1|tag}}}|!--||{{#tag:span|>|class=p}}}}{{{content|...}}}
}}<!--
Closing tag
Line 19 ⟶ 20:
|o|open =
|c|close
|p|pair = {{#ifeq:{{{1|tag}}}|!--|-->|{{#tag:span|</|class=p}}{{#tag:span|{{{1|tag}}}|class=nt}}{{#tag:span|>|class=p}}}}
}}<!--
-->{{#ifeq:{{{1|tag}}}|!--|</span>}}<!--
--></code><noinclude>
{{Documentation}}
|