Difference between revisions of "Template:Tag"

From Timelines
Jump to: navigation, search
(add comment)
(add 'wrap' for long samples)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifeq: {{{1|}}}|comment|<code class="nowrap">&lt;!--{{{content|...}}}--&gt;
+
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
|<code class="nowrap">{{#switch:{{{2|pair}}}
+
Opening tag
|c|close = <!--nothing-->
+
-->{{#switch:{{{2|pair}}}
|s|single
+
  |c|close =
|o|open
+
  |s|single
|p|pair   = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
+
  |o|open
}}{{#switch:{{{2|pair}}}
+
  |p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
|c|close = {{{content|}}}
+
}}<!--
|s|single = &#32;&#47;&gt;
+
Content between tags
|o|open   = &gt;{{{content|}}}
+
-->{{#switch:{{{2|pair}}}
|p|pair   = &gt;{{{content|...}}}
+
  |c|close = {{{content|}}}
}}{{#switch:{{{2|pair}}}
+
  |s|single = &#32;&#47;&gt;
|s|single
+
  |o|open = &gt;{{{content|}}}
|o|open   = <!--nothing-->
+
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|c|close
+
}}<!--
|p|pair   = &lt;&#47;{{{1|tag}}}&gt;
+
Closing tag
}}</code>
+
-->{{#switch:{{{2|pair}}}
}}<noinclude>
+
  |s|single
{{documentation}}
+
  |o|open =
 +
  |c|close
 +
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
 +
}}<!--
 +
--></code><noinclude>
 +
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:37, 17 February 2015

<tag>...</tag>

Template documentation[create]