Template:Documentation: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(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...)
m (Protected "Template:Documentation" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--
<!--
  Automatically add {{template sandbox notice}} when on a /sandbox page.
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
| <div style="clear: both;"></div>{{template sandbox notice}}
}}<!--
  Automatically add {{pp-template}} to protected templates.
-->{{template other
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
  | {{pp-template|docusage=yes}}
  | {{#if: {{PROTECTIONLEVEL:edit}}
    | {{pp-template|docusage=yes}}
    | <!--Not protected, or only semi-move-protected-->
    }}
  }}
}}<!--
   Start of green doc box.
   Start of green doc box.
-->{{documentation/start box2
-->{{documentation/start box2
Line 35: Line 21:
   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
  }} }}
  }}
}}
}}
<!--
<!--
Line 55: Line 33:
   so  "=== Headings ===" at the start and end of docs are interpreted.
   so  "=== Headings ===" at the start and end of docs are interpreted.
-->{{documentation/end box2
-->{{documentation/end box2
| preload = {{{preload|}}}  <!--Allow custom preloads-->
| content = {{{content|}}}
| content = {{{content|}}}
| link box = {{{link box|}}}  <!--So "link box=off" works-->
| link box = {{{link box|}}}  <!--So "link box=off" works-->

Latest revision as of 20:38, 27 July 2013

[edit] Template documentation