Difference between revisions of "Template:Tag"

From BESA® Wiki
Jump to: navigation, search
(Also show content with open and close)
(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>

Revision as of 14:37, 23 January 2011

<tag></tag> Script error