Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tag: Difference between revisions

Template page
m 1 revision imported: Import "Template:Cite web" for better references and citations.
mediawiki>94rain
m Protected "Template:Tag": Highly visible page or template: 4798 transclusions ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
Line 1: Line 1:
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
{{#if:{{{plain|}}}|
Opening tag
|<code class="mw-highlight" style="{{#if:{{{wrap|}}}||white-space:nowrap}}">
-->{{#switch:{{{2|pair}}}
}}{{#switch:{{{2|pair}}}
  |c|close =
|c|close = <!--nothing-->
  |e|empty|s|single|v|void
|s|single
  |o|open
|o|open
  |p|pair = &lt;{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
|p|pair   = {{#tag:span|&lrm;&lt;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
}}<!--
}}{{#switch:{{{2|pair}}}
Content between tags
|c|close = {{{content|}}}
-->{{#switch:{{{2|pair}}}
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}
  |c|close = {{{content|}}}
|o|open   = {{#tag:span|&gt;|class="p"}}{{{content|}}}
  |e|empty|s|single|v|void = &#32;&#47;&gt;
|p|pair   = {{#tag:span|&gt;|class="p"}}{{{content|...}}}
  |o|open = &gt;{{{content|}}}
}}{{#switch:{{{2|pair}}}
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|s|single
}}<!--
|o|open   = <!--nothing-->
Closing tag
|c|close
-->{{#switch:{{{2|pair}}}
|p|pair   = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}
  |e|empty|s|single|v|void
}}{{#if:{{{plain|}}}|
  |o|open =
|</code>
  |c|close
}}<noinclude>
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}<!--
--></code><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 03:58, 5 December 2023

‎<tag>...‎</tag>