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

Материал из in.wiki
Перейти к навигации Перейти к поиску
>Mark Arsten
м (Changed protection level of Template:Tag: Allowing Protected Template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
 
м (1 версия импортирована: Импорт из Википедии)
 
(не показано 14 промежуточных версий 4 участников)
Строка 1: Строка 1:
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
+
{{#vardefine:txt = {{#switch:{{{2|open}}}
 
  |c|close  = <!--nothing-->
 
  |c|close  = <!--nothing-->
 
  |s|single
 
  |s|single
 
  |o|open
 
  |o|open
  |p|pair  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
+
  |p|pair  = &lt;{{lc:{{#regex:{{{1|tag}}}|/^Справка:/ui=}}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
}}{{#switch:{{{2|pair}}}
+
}}{{#switch:{{{2|open}}}
 
  |c|close  = {{{content|}}}
 
  |c|close  = {{{content|}}}
 
  |s|single = &#32;&#47;&gt;
 
  |s|single = &#32;&#47;&gt;
 
  |o|open  = &gt;{{{content|}}}
 
  |o|open  = &gt;{{{content|}}}
 
  |p|pair  = &gt;{{{content|...}}}
 
  |p|pair  = &gt;{{{content|...}}}
}}{{#switch:{{{2|pair}}}
+
}}{{#switch:{{{2|open}}}
 
  |s|single
 
  |s|single
 
  |o|open  = <!--nothing-->
 
  |o|open  = <!--nothing-->
 
  |c|close
 
  |c|close
  |p|pair  = &lt;&#47;{{{1|tag}}}&gt;
+
  |p|pair  = &lt;&#47;{{lc:{{#regex:{{{1|tag}}}|/^Справка:/ui=}}}}&gt;
}}</code><noinclude>
+
}}}}<code style="white-space:nowrap;">{{#if:{{{без ссылки|}}}|{{#var: txt}}|[[{{#regex:{{{1|tag}}}|/^(Справка:)?/i = Справка:}}|{{#var: txt}}]]}}</code><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Текущая версия от 09:01, 16 ноября 2023

<tag>