Изменения

972 байта добавлено ,  3 года назад
стилизация на основе Модуль:Template call code/styles.css
Строка 1: Строка 1: −
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
+
{{#ifeq: {{{style|}}} | regular | <templatestyles src="Модуль:Template call code/styles.css" /> }}<{{#ifeq: {{{style|}}} | regular | span | code }} class="{{#ifeq: {{{wrap|}}} | yes | wrap | nowrap }}" style="{{#switch: {{{style|}}}
 +
| plain = border:none; background:transparent;
 +
| regular =
 +
| {{{style|}}}
 +
}}"><!--
 
  Opening tag
 
  Opening tag
-->{{#switch:{{{2|pair}}}
+
-->{{#switch: {{#if: {{{2|}}} | {{{2|}}} | pair }}
 
   |c|close =
 
   |c|close =
   |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 = {{#ifeq: {{{1|tag}}}
 +
    | !--
 +
    | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">&lt;!--</span> | &lt;!-- }}
 +
    | {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">&lt;</span> | &lt; }}{{{1|tag}}}{{#if: {{{params|{{{p|}}}}}} | &#32;{{{params|{{{p|}}}}}} }}
 +
    }}
 
  }}<!--
 
  }}<!--
 
  Content between tags
 
  Content between tags
-->{{#switch:{{{2|pair}}}
+
-->{{#switch: {{#if: {{{2|}}} | {{{2|}}} | pair }}
   |c|close = {{{content|}}}
+
   |c|close = {{{content|{{{c|}}}}}}
   |e|empty|s|single|v|void = &#32;&#47;&gt;
+
   |s|single = &#32;{{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">/&gt;</span> | /&gt; }}
   |o|open = &gt;{{{content|}}}
+
   |o|open = {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">&gt;</span> | &gt; }}{{{content|{{{c|}}}}}}
   |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
+
   |p|pair = {{#ifeq: {{{1|tag}}} | !-- || {{#ifeq: {{{style|}}} | regular | <span class="ts-templateCallCode-weak">&gt;</span> | &gt; }} }}{{{content|{{{c|}}}}}}
 
  }}<!--
 
  }}<!--
 
  Closing tag
 
  Closing tag
-->{{#switch:{{{2|pair}}}
+
-->{{#switch: {{#if: {{{2|}}} | {{{2|}}} | pair }}
   |e|empty|s|single|v|void
+
   |s|single
 
   |o|open =
 
   |o|open =
 
   |c|close
 
   |c|close
   |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
+
   |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; }}
 +
    }}
 
  }}<!--
 
  }}<!--
--></code><noinclude>
+
--></{{#ifeq: {{{style|}}} | regular | span | code }}><noinclude>{{doc}}</noinclude>
{{Documentation}}
  −
</noinclude>
 
Анонимный участник