Шаблон:Tag: відмінності між версіями

Матеріал з Релігія в огні
Додано вміст Вилучено вміст
(These are called attributes; no one who does HTML calls them "parameters".)
 
(Undo revision 693723104 by 165.154.228.59 (talk))
Рядок 1: Рядок 1:
{{#if:{{{plain|}}}|
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
|<code class="mw-highlight" style="{{#if:{{{wrap|}}}||white-space:nowrap}}">
Opening tag
-->{{#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}}}
}}<!--
|c|close = {{{content|}}}
Content between tags
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}
-->{{#switch:{{{2|pair}}}
|c|close = {{{content|}}}
|o|open = {{#tag:span|&gt;|class="p"}}{{{content|}}}
|p|pair = {{#tag:span|&gt;|class="p"}}{{{content|...}}}
|e|empty|s|single|v|void = &#32;&#47;&gt;
|o|open = &gt;{{{content|}}}
}}{{#switch:{{{2|pair}}}
|s|single
|p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|o|open = <!--nothing-->
}}<!--
|c|close
Closing tag
|p|pair = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}
-->{{#switch:{{{2|pair}}}
}}{{#if:{{{plain|}}}|
|e|empty|s|single|v|void
|</code>
|o|open =
}}<noinclude>
|c|close
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}<!--
--></code><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Версія за 08:11, 3 жовтня 2022

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