Template:Documentation: Difference between revisions

From Danno's Rocket Wiki
No edit summary
No edit summary
Line 17: Line 17:
   Start load the /doc content:
   Start load the /doc content:
   Note: The line break between this comment and the next line is necessary
   Note: The line break between this comment and the next line is necessary
   so an  "=== Heading ===" at the start of doc subpage is interpreted.
   so an  "=== Heading ===" at start of doc subpage is correctly interpreted.
-->
-->
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{Documentation/docspace}}:{{Documentation/template page}}/doc|1|0}}
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{Documentation/docspace}}:{{Documentation/template page}}/doc|1|0}}
Line 27: Line 27:
   End load the /doc content:
   End load the /doc content:
   Note: The line break between this comment and the next line is necessary
   Note: The line break between this comment and the next line is necessary
   so an "=== Heading ===" at the start of doc box trailer is interpreted.
   so an "=== Heading ===" at end of doc subpage is correctly interpreted.
-->
-->
{{Documentation/end box2
{{Documentation/end box2

Revision as of 09:03, 27 October 2013

{{#ifeq: Documentation | sandbox |

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