Перейти к содержимому страницы
Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

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

Материал из Колыбели Солнца
Refactoring to reduce transclusion depth. Basically, split core2 into (start box2,end box2) and split core into (start box,end box), then move middle up two levels to top level template. See talk...
Try this to reduce the parser nesting depth
Строка 35: Строка 35:
   so  "=== Headings ===" at the start and end of docs are interpreted.
   so  "=== Headings ===" at the start and end of docs are interpreted.
-->
-->
{{#if: {{{content|}}}
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}}
| {{{content|}}}
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110
| {{#if: {{#ifexist:
| 1111 = {{{content|}}}
    {{#if: {{{1|}}}
| 0110 | 0111 = {{ {{{1}}} }}
    | {{{1|}}}  <!--Other docname fed-->
| 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }}
    | {{documentation/docspace}}:{{documentation/template page}}/doc
| 0000 | 0100 | 0010 | 0101 =
    }}
  | yes
  }}
  | {{ {{#if: {{{1|}}}
  | {{{1|}}}
  | {{documentation/docspace}}:{{documentation/template page}}/doc
  }} }}
  }}
}}
}}
<!--
<!--

Версия от 07:52, 21 ноября 2010

{{#ifeq: Documentation | sandbox

|

Шаблон:Template sandbox notice

}}Шаблон:Template otherШаблон:Documentation/start box2 {{#switch: {{#if:|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:Шаблон:Documentation/docspace:Шаблон:Documentation/template page/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = | 0110 | 0111 = {{ {{{1}}} }} | 0001 | 0011 = {{ Шаблон:Documentation/docspace:Шаблон:Documentation/template page/doc }} | 0000 | 0100 | 0010 | 0101 = }} Шаблон:Documentation/end box2