Vorlage:Tag: Unterschied zwischen den Versionen

Adding |e and |empty, to use industry-standard terms from the specs, instead of just WP's own made-up labels that no one's apt to remember. And |closed ("close" as an adjective doesn't mean the same thing, it means "nearby")
KKeine Bearbeitungszusammenfassung
(Adding |e and |empty, to use industry-standard terms from the specs, instead of just WP's own made-up labels that no one's apt to remember. And |closed ("close" as an adjective doesn't mean the same thing, it means "nearby"))
Zeile 1: Zeile 1:
<code style="white-space:nowrap;">{{#if:{{{link|}}}|[{{{link}}} {{#switch:{{{2|pair}}}
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
|c|close = <!--nothing-->
Opening tag
|s|single
-->{{#switch:{{{2|pair}}}
|o|open
  |c|closed|close =
|p|pair   = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
  |e|empty|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|}}}
Content between tags
|p|pair   = &gt;{{{content|...}}}
-->{{#switch:{{{2|pair}}}
}}{{#switch:{{{2|pair}}}
  |c|closed|close = {{{content|}}}
|s|single
  |e|empty|s|single = &#32;&#47;&gt;
|o|open  = <!--nothing-->
  |o|open = &gt;{{{content|}}}
|c|close
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|p|pair  = &lt;&#47;{{{1|tag}}}&gt;
  }}<!--
}}]|{{#switch:{{{2|pair}}}
  Closing tag
  |c|close  = <!--nothing-->
-->{{#switch:{{{2|pair}}}
|s|single
  |e|empty|s|single
  |o|open
  |o|open =
|p|pair  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
   |c|closed|close
}}{{#switch:{{{2|pair}}}
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
|c|close  = {{{content|}}}
}}<!--
|s|single = &#32;&#47;&gt;
--></code><noinclude>
|o|open  = &gt;{{{content|}}}
{{Documentation}}
|p|pair   = &gt;{{{content|...}}}
}}{{#switch:{{{2|pair}}}
|s|single
|o|open  = <!--nothing-->
|c|close
|p|pair  = &lt;&#47;{{{1|tag}}}&gt;
}}}}</code><noinclude>
{{Dokumentation}}
</noinclude>
</noinclude>
Anonymer Benutzer