Template:Tag: Difference between revisions

Jump to navigation Jump to search
Created page with "<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!-- Opening tag -->{{#switch:{{{2|pair}}} |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:{{{link|}}}|tag}}}|{{{1|tag}}}|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}| {{{params|{{{attribs}}}}}}}} }}<!-- Content between tags -->{{#switch:{{{2|pair}}} |c|close = {{{content|}}} |..."
(6 revisions imported from mw:Template:Tag)
(Created page with "<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!-- Opening tag -->{{#switch:{{{2|pair}}} |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:{{{link|}}}|tag}}}|{{{1|tag}}}|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}| {{{params|{{{attribs}}}}}}}} }}<!-- Content between tags -->{{#switch:{{{2|pair}}} |c|close = {{{content|}}} |...")
Line 1: Line 1:
{{#if:{{{plain|}}}|
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
|<code class="mw-highlight" style="{{#if:{{{wrap|}}}||white-space:nowrap}}">
Opening tag
}}{{#switch:{{{2|pair}}}
-->{{#switch:{{{2|pair}}}
|c|close = <!--nothing-->
  |c|close =
|s|single
  |e|empty|s|single|v|void
|o|open
  |o|open
|p|pair   = {{#tag:span|&lrm;&lt;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
  |p|pair = &lt;{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
}}{{#switch:{{{2|pair}}}
}}<!--
|c|close = {{{content|}}}
Content between tags
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}
-->{{#switch:{{{2|pair}}}
|o|open   = {{#tag:span|&gt;|class="p"}}{{{content|}}}
  |c|close = {{{content|}}}
|p|pair   = {{#tag:span|&gt;|class="p"}}{{{content|...}}}
  |e|empty|s|single|v|void = &#32;&#47;&gt;
}}{{#switch:{{{2|pair}}}
  |o|open = &gt;{{{content|}}}
|s|single
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|o|open   = <!--nothing-->
}}<!--
|c|close
Closing tag
|p|pair   = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}
-->{{#switch:{{{2|pair}}}
}}{{#if:{{{plain|}}}|
  |e|empty|s|single|v|void
|</code>
  |o|open =
}}<noinclude>
  |c|close
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}<!--
--></code><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Navigation menu