Difference between revisions of "Template: Tag"

From wiki.pengtools.com
Jump to: navigation, search
(add plain)
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if:{{{plain|}}}|
+
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
|<code style="white-space:nowrap">
+
Opening tag
}}{{#switch:{{{2|pair}}}
+
-->{{#switch:{{{2|pair}}}
|c|close = <!--nothing-->
+
  |c|close =
|s|single
+
  |s|single
|o|open
+
  |o|open
|p|pair   = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
+
  |p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
}}{{#switch:{{{2|pair}}}
+
}}<!--
|c|close = {{{content|}}}
+
Content between tags
|s|single = &#32;&#47;&gt;
+
-->{{#switch:{{{2|pair}}}
|o|open   = &gt;{{{content|}}}
+
  |c|close = {{{content|}}}
|p|pair   = &gt;{{{content|...}}}
+
  |s|single = &#32;&#47;&gt;
}}{{#switch:{{{2|pair}}}
+
  |o|open = &gt;{{{content|}}}
|s|single
+
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|o|open   = <!--nothing-->
+
}}<!--
|c|close
+
Closing tag
|p|pair   = &lt;&#47;{{{1|tag}}}&gt;
+
-->{{#switch:{{{2|pair}}}
}}{{#if:{{{plain|}}}|
+
  |s|single
|</code>
+
  |o|open =
}}<noinclude>
+
  |c|close
{{documentation}}
+
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
 +
}}<!--
 +
--></code><noinclude>
 +
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:01, 24 March 2017

<tag>...</tag>

Template documentation[create]