Difference between revisions of "Template:Documentation"

From Shadow of the Throne Wiki
Jump to: navigation, search
(copy from sandbox: {{SUBJECTPAGENAME}}/doc -> {{Documentation/docname}})
(complete preload support)
Line 20: Line 20:
 
       #if: {{{content|}}}
 
       #if: {{{content|}}}
 
       |<!-- has content -->
 
       |<!-- has content -->
       |<!-- no content -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload=Template:Documentation/preload}} edit]]
+
       |<!-- no content -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload={{{preload-doc|Template:Documentation/preload}}}}} edit]]
 
     }}
 
     }}
 
   }}</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div>
 
   }}</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div>
Line 43: Line 43:
 
         #ifexist: {{ #rel2abs: /testcases }}
 
         #ifexist: {{ #rel2abs: /testcases }}
 
         |<!-- /sandbox AND /testcases -->and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>
 
         |<!-- /sandbox AND /testcases -->and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>
         |<!-- /sandbox AND no /testcases -->but '''no''' [{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} testcases]
+
         |<!-- /sandbox AND no /testcases -->but '''no''' [{{fullurl:{{ #rel2abs: /testcases }}|action=edit&preload={{{preload-testcases|Template:Documentation/preload/testcases}}}}} testcases]
 
       }}
 
       }}
 
       |<!-- no /sandbox -->'''no''' [{{fullurl:{{ #rel2abs: /sandbox }}|action=edit&preload={{{preload-sandbox|Template:Documentation/preload/sandbox}}}}} sandbox] {{
 
       |<!-- no /sandbox -->'''no''' [{{fullurl:{{ #rel2abs: /sandbox }}|action=edit&preload={{{preload-sandbox|Template:Documentation/preload/sandbox}}}}} sandbox] {{

Revision as of 10:40, 12 November 2007

{{ #ifeq: Documentation | sandbox

 | Template:Template sandbox notice
 | Template:Pp-semi-template

}} Template:Intricate {{

 #ifeq: Template:Documentation | Template:Documentation |

}}

{{
 #if: Documentation
|
{{
   #ifexist: Template:Documentation/docname
   |[[{{fullurl:Template:Documentation/docname}} view]] [[{{fullurl:Template:Documentation/docname|action=edit}} edit]]
   |{{
     #if: 
     |
     |[[{{fullurl:Template:Documentation/docname|action=edit&preload=Template:Documentation/preload}} edit]]
   }}
}}
Documentation
 |
}}

{{ {{ #ifexist: Template:Documentation/docname | Template:Documentation/docname | ns:0 }} }}