Template:Tag: Difference between revisions

From Vigyanwiki
Template>Sardanaphalus
({{{name}}} and {{{type}}} alternatives (to {{{1}}}, {{{2}}}))
m (1 revision imported)
 
(19 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<code class="nowrap" style="{{#switch:{{{style|}}} |plain=border:none;background:transparent; |{{{style|}}} }}"><!--
{{#if:{{{plain|}}}|
 
|<code class="mw-highlight" style="{{#if:{{{wrap|}}}||white-space:nowrap}}">
Opening tag
}}{{#switch:{{{2|pair}}}
-->{{#switch:{{{type|{{{2|<!--(else default:)-->pair}}}}}}
|c|close = <!--nothing-->
    |c|close =
|s|single
    |s|single
|o|open
    |o|open
|p|pair   = {{#tag:span|&lrm;&lt;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
    |p|pair = &lt;{{{name|{{{1|tag}}}}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
}}{{#switch:{{{2|pair}}}
    }}<!--
|c|close = {{{content|}}}
 
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}
Content between tags
|o|open   = {{#tag:span|&gt;|class="p"}}{{{content|}}}
-->{{#switch:{{{type|{{{2|pair}}}}}}
|p|pair   = {{#tag:span|&gt;|class="p"}}{{{content|...}}}
    |c|close = {{{content|}}}
}}{{#switch:{{{2|pair}}}
    |s|single = &#32;&#47;&gt;
|s|single
    |o|open = &gt;{{{content|}}}
|o|open   = <!--nothing-->
    |p|pair = {{#ifeq:{{{name|{{{1|-}}}}}}|!-- | |&gt;}}{{{content|...}}}
|c|close
    }}<!--
|p|pair   = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}
 
}}{{#if:{{{plain|}}}|
Closing tag
|</code>
-->{{#switch:{{{type|{{{2|pair}}}}}}
}}<noinclude>
    |s|single
    |o|open =
    |c|close
    |p|pair = {{#ifeq:{{{name|{{{1|-}}}}}}|!-- |--&gt; |&lt;&#47;{{{1|tag}}}&gt;}}
    }}<!--
 
--></code><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 18:25, 18 September 2023

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

Template documentation