Difference between revisions of "Template:Documentation"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
(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...) |
Aeverinezinn (talk | contribs) |
||
(32 intermediate revisions by 10 users not shown) | |||
Line 2: | Line 2: | ||
Automatically add {{template sandbox notice}} when on a /sandbox page. | Automatically add {{template sandbox notice}} when on a /sandbox page. | ||
-->{{#ifeq: {{SUBPAGENAME}} | sandbox | -->{{#ifeq: {{SUBPAGENAME}} | sandbox | ||
− | | <div style="clear: both;"></div>{{template sandbox notice}} | + | | <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}} |
}}<!-- | }}<!-- | ||
Automatically add {{pp-template}} to protected templates. | Automatically add {{pp-template}} to protected templates. | ||
Line 35: | Line 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}} |
− | | | + | | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 |
− | + | | 1111 = {{{content|}}} | |
− | + | | 0110 | 0111 = {{ {{{1}}} }} | |
− | + | | 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }} | |
− | + | | 0000 | 0100 | 0010 | 0101 = | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
<!-- | <!-- | ||
Line 55: | Line 47: | ||
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 18:59, 10 October 2018
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |