Difference between revisions of "Template:Tag"

From Timelines
Jump to: navigation, search
(cite errors don't like this!)
(add 'wrap' for long samples)
 
(20 intermediate revisions by 6 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 = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}&gt;
+
   |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 = &lt;{{{1|tag}}}&gt;
+
  |s|single
}}{{#switch:{{{2|pair}}}
+
   |o|open =
|single  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}&gt;
+
  |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 12:37, 17 February 2015

<tag>...</tag>

Template documentation[create]