Template:Tag: Difference between revisions

From Pantonian Republic Wiki
Jump to navigation Jump to search
m (1 revision imported)
m (1 revision imported)
Line 1: Line 1:
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
<includeonly><onlyinclude>{{ #if: {{{nocat|}}} || {{ #ifeq: {{FULLPAGENAME}} | Template:Tag || [[Category:Pages using a raw Tag Template]] }} }}<sup class="nowrap {{{class|}}}" title="{{#replace:{{delink|{{{2|}}}}}|"|'}}">&#91;<i>{{{1}}}</i>&#93;</sup></onlyinclude></includeonly>
Opening tag
-->{{#switch:{{{2|pair}}}
  |c|close =
  |e|empty|s|single|v|void
  |o|open
  |p|pair = &lt;{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
}}<!--
Content between tags
-->{{#switch:{{{2|pair}}}
  |c|close = {{{content|}}}
  |e|empty|s|single|v|void = &#32;&#47;&gt;
  |o|open = &gt;{{{content|}}}
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
}}<!--
Closing tag
-->{{#switch:{{{2|pair}}}
  |e|empty|s|single|v|void
  |o|open =
  |c|close
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}<!--
--></code><noinclude>
{{Documentation}}
</noinclude>

Revision as of 00:25, 13 May 2023