Template:Tag: Difference between revisions

From Pantonian Republic Wiki
Jump to navigation Jump to search
(These are called attributes; no one who does HTML calls them "parameters".)
 
m (1 revision imported)
 
(2 intermediate revisions by the same user not shown)
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>

Latest revision as of 18:45, 18 May 2023