Шаблон:Tag: различия между версиями

Материал из in.wiki
Перейти к навигации Перейти к поиску
(стилизация на основе Модуль:Template call code/styles.css)
м (11 версий импортировано: Импорт из traditio.wiki)
Строка 1: Строка 1:
{{#ifeq: {{{style|}}} | regular | <templatestyles src="Модуль:Template call code/styles.css" /> }}<{{#ifeq: {{{style|}}} | regular | span | code }} class="{{#ifeq: {{{wrap|}}} | yes | wrap | nowrap }}" style="{{#switch: {{{style|}}}
+
{{#vardefine:txt = {{#switch:{{{2|open}}}
| plain = border:none; background:transparent;
+
|c|close  = <!--nothing-->
| regular =
+
|s|single
| {{{style|}}}
+
|o|open
}}"><!--
+
|p|pair   = &lt;{{lc:{{#regex:{{{1|tag}}}|/^Справка:/ui=}}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
Opening tag
+
}}{{#switch:{{{2|open}}}
-->{{#switch: {{#if: {{{2|}}} | {{{2|}}} | pair }}
+
|c|close = {{{content|}}}
  |c|close =
+
|s|single = &#32;&#47;&gt;
  |s|single
+
|o|open   = &gt;{{{content|}}}
  |o|open
+
|p|pair   = &gt;{{{content|...}}}
  |p|pair = {{#ifeq: {{{1|tag}}}
+
}}{{#switch:{{{2|open}}}
    | !--
+
|s|single
    | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">&lt;!--</span> | &lt;!-- }}
+
|o|open   = <!--nothing-->
    | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">&lt;</span> | &lt; }}{{{1|tag}}}{{#if: {{{params|{{{p|}}}}}} | &#32;{{{params|{{{p|}}}}}} }}
+
|c|close
    }}
+
|p|pair   = &lt;&#47;{{lc:{{#regex:{{{1|tag}}}|/^Справка:/ui=}}}}&gt;
}}<!--
+
}}}}<code style="white-space:nowrap;">{{#if:{{{без ссылки|}}}|{{#var: txt}}|[[{{#regex:{{{1|tag}}}|/^(Справка:)?/i = Справка:}}|{{#var: txt}}]]}}</code><noinclude>
Content between tags
+
{{documentation}}
-->{{#switch: {{#if: {{{2|}}} | {{{2|}}} | pair }}
+
</noinclude>
  |c|close = {{{content|{{{c|}}}}}}
 
  |s|single = &#32;{{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">/&gt;</span> | /&gt; }}
 
  |o|open = {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">&gt;</span> | &gt; }}{{{content|{{{c|}}}}}}
 
  |p|pair = {{#ifeq: {{{1|tag}}} | !-- || {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">&gt;</span> | &gt; }} }}{{{content|{{{c|}}}}}}
 
}}<!--
 
Closing tag
 
-->{{#switch: {{#if: {{{2|}}} | {{{2|}}} | pair }}
 
  |s|single
 
  |o|open =
 
  |c|close
 
  |p|pair = {{#ifeq: {{{1|tag}}}
 
    | !--
 
    | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">--&gt;</span> | --&gt; }}
 
    | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">&lt;/</span>{{{1|tag}}}<span class="ts-templateCallCode-weak">&gt;</span> | &lt;/{{{1|tag}}}&gt; }}
 
    }}
 
}}<!--
 
--></{{#ifeq: {{{style|}}} | regular | span | code }}><noinclude>{{doc}}</noinclude>
 

Версия от 00:08, 11 августа 2023

<tag>