Difference between revisions of "Template:Tag"

From BESA® Wiki
Jump to: navigation, search
(tweak)
m (45 revisions)
 
(23 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<tt>{{#switch:{{{2|pair}}}
+
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
|close
+
Opening tag
|single  = <!--nothing-->
+
-->{{#switch:{{{2|pair}}}
|open
+
  |c|close =
|pair
+
  |s|single
|#default = <nowiki><</nowiki>{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}<nowiki>></nowiki>
+
  |o|open
}}{{#switch:{{{2|pair}}}
+
  |p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
|open
+
}}<!--
|close
+
Content between tags
|single   = <!--nothing-->
+
-->{{#switch:{{{2|pair}}}
|pair
+
  |c|close = {{{content|}}}
|#default = {{{content|}}}
+
  |s|single = &#32;&#47;&gt;
}}{{#switch:{{{2|pair}}}
+
  |o|open = &gt;{{{content|}}}
|open
+
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|single  = <!--nothing-->
+
}}<!--
|close
+
Closing tag
|pair
+
-->{{#switch:{{{2|pair}}}
|#default = <nowiki></</nowiki>{{{1|tag}}}<nowiki>></nowiki>
+
  |s|single
}}{{#switch:{{{2|pair}}}
+
   |o|open =
|single  = <nowiki><</nowiki>{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}<nowiki>/></nowiki>
+
  |c|close
}}</tt><noinclude>
+
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
{{documentation}}
+
}}<!--
 +
--></code><noinclude>
 +
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:23, 8 April 2016

<tag>...</tag> Script error