Template:Tag: Difference between revisions

From Vigyanwiki
Template>Sardanaphalus
(Restored "type" and "name" (parameter –names– that must've been removed accidentally), corrected code heading)
m (1 revision imported)
 
(16 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<code class="nowrap" style="{{#switch:{{{style|}}} |plain|plainer=border:none;background:transparent; |{{{style|}}}}}"><!--
{{#if:{{{plain|}}}|
Opening tag
|<code class="mw-highlight" style="{{#if:{{{wrap|}}}||white-space:nowrap}}">
-->{{#switch:{{{type|{{{2|pair}}}}}}
}}{{#switch:{{{2|pair}}}
  |c|close =
|c|close = <!--nothing-->
  |s|single
|s|single
  |o|open
|o|open
  |p|pair = &lt;{{{name|{{{1|tag}}}}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
|p|pair   = {{#tag:span|&lrm;&lt;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
}}<!--
}}{{#switch:{{{2|pair}}}
Content before/after/between tag/s
|c|close = {{{content|}}}
-->{{#switch:{{{type|{{{2|pair}}}}}}
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}
  |c|close = {{{content|}}}
|o|open   = {{#tag:span|&gt;|class="p"}}{{{content|}}}
  |s|single = &#32;&#47;&gt;
|p|pair   = {{#tag:span|&gt;|class="p"}}{{{content|...}}}
  |o|open = &gt;{{{content|}}}
}}{{#switch:{{{2|pair}}}
  |p|pair = {{#ifeq:{{{name|{{{1|tag}}}}}}|!--||&gt;}}{{{content|...}}}
|s|single
}}<!--
|o|open   = <!--nothing-->
Closing tag
|c|close
-->{{#switch:{{{type|{{{2|pair}}}}}}
|p|pair   = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}
  |s|single
}}{{#if:{{{plain|}}}|
  |o|open =
|</code>
  |c|close
}}<noinclude>
  |p|pair = {{#ifeq:{{{name|{{{1|tag}}}}}}|!--|--&gt;|&lt;&#47;{{{name|{{{1|tag}}}}}}&gt;}}
}}<!--
--></code><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 18:25, 18 September 2023

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

Template documentation