Difference between revisions of "Template:Tag"

From Summertime Saga Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none; background:transparent; |{{{style|}}}}}"><!--
 
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none; background:transparent; |{{{style|}}}}}"><!--
 
  Opening tag
 
  Opening tag
-->{{#switch:{{{2|pair}}}
+
-->{{#switch:{{{2|pair}}}|close=|empty|single|void|open|pair=&lt;{{#if:{{{link|}}}|[[wikipedia:HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
  |close =
 
  |empty|single|void
 
  |open
 
  |pair = &lt;{{#if:{{{link|}}}|[[wikipedia:HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
 
 
  }}<!--
 
  }}<!--
 
  Content between tags
 
  Content between tags
-->{{#switch:{{{2|pair}}}
+
-->{{#switch:{{{2|pair}}}|close={{{content|}}}|empty|single|void=&#32;&#47;&gt;|open=&gt;{{{content|}}}|pair={{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|}}}
  |close = {{{content|}}}
 
  |empty|single|void = &#32;&#47;&gt;
 
  |open = &gt;{{{content|}}}
 
  |pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
 
 
  }}<!--
 
  }}<!--
 
  Closing tag
 
  Closing tag
-->{{#switch:{{{2|pair}}}
+
-->{{#switch:{{{2|pair}}}|empty|single|void|open=|close|pair={{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
  |empty|single|void
+
  }}</code><noinclude>[[Category:Templates]]</noinclude>
  |open =
 
  |close
 
  |pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
 
  }}<!--
 
--></code><noinclude>[[Category:Templates]]</noinclude>
 

Revision as of 22:21, 21 July 2020

<tag>…</tag>