Template:Tag: Difference between revisions

95 bytes removed ,  13 years ago
parameter shortcuts, optimize
m>Edokter
(Also show content with open and close)
m>Edokter
(parameter shortcuts, optimize)
Line 1: Line 1:
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
  |close
  |c|close  = <!--nothing-->
  |single  = <!--nothing-->
  |s|single
  |open
  |o|open
  |pair
  |p|pair  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
  |#default = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}&gt;
}}{{#switch:{{{2|pair}}}
}}{{#switch:{{{2|pair}}}
  |single   = <!--nothing-->
  |c|close  = {{{content|}}}
  |open
|s|single = &#32;&#47;&gt;
  |close
  |o|open
|pair
  |p|pair   = &gt;{{{content|}}}
|#default = {{{content|}}}
}}{{#switch:{{{2|pair}}}
}}{{#switch:{{{2|pair}}}
  |open
  |s|single
  |single   = <!--nothing-->
  |o|open   = <!--nothing-->
  |close
  |c|close
  |pair
  |p|pair   = &lt;&#47;{{{1|tag}}}&gt;
|#default = &lt;&#47;{{{1|tag}}}&gt;
}}{{#switch:{{{2|pair}}}
|single  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}&#32;&#47;&gt;
}}</code><noinclude>
}}</code><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>
Anonymous user