Difference between revisions of "Template:Tag"

From Timelines
Jump to: navigation, search
(fix)
(add 'wrap' for long samples)
 
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<tt>{{#switch:{{{3|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:{{{3|pair}}}
+
  |p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
|open
+
}}<!--
|close
+
Content between tags
|single   =
+
-->{{#switch:{{{2|pair}}}
|pair
+
  |c|close = {{{content|}}}
|#default = {{{2|}}}
+
  |s|single = &#32;&#47;&gt;
}}{{#switch:{{{3|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:{{{3|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 12:37, 17 February 2015

<tag>...</tag>

Template documentation[create]