Template:Documentation: Difference between revisions

From Danno's Rocket Wiki
(merging: copy from sandbox; new content & sandbox-testcases parameters, better sandbox testcases links)
(copy from sandbox: {{SUBJECTPAGENAME}}/doc -> {{Documentation/docname}})
Line 15: Line 15:
   #if: {{{heading|Documentation}}}
   #if: {{{heading|Documentation}}}
   |<!-- has heading --><div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">{{
   |<!-- has heading --><div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">{{
     #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
     #ifexist: {{{1|{{Documentation/docname}}}}}
     |<!-- /doc exists -->[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}}} view]] [[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit}} edit]]
     |<!-- /doc exists -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} view]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
     |<!-- no /doc -->{{
     |<!-- no /doc -->{{
       #if: {{{content|}}}
       #if: {{{content|}}}
       |<!-- has content -->
       |<!-- has content -->
       |<!-- no content -->[[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} edit]]
       |<!-- no content -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload=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 27: Line 27:
   #ifeq: {{{transcluded|show}}} | show
   #ifeq: {{{transcluded|show}}} | show
   |<!-- transcluded show -->{{
   |<!-- transcluded show -->{{
     #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}}
     #ifexist: {{{1|{{Documentation/docname}}}}}
     |<!-- /doc exists -->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{SUBJECTPAGENAME}}/doc}}}]]. <small style="font-style: normal">([[{{{1|{{SUBJECTPAGENAME}}/doc}}}|view]] &#124; [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=history}} history])</small><br />
     |<!-- /doc exists -->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([[{{{1|{{Documentation/docname}}}}}|view]] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} history])</small><br />
     |<!-- no /doc -->
     |<!-- no /doc -->
   }}
   }}
Line 54: Line 54:
   }}
   }}
}}</div>
}}</div>
{{{content|{{ {{ #ifexist: {{{1|{{SUBJECTPAGENAME}}/doc}}} | {{{1|{{SUBJECTPAGENAME}}/doc}}} | ns:0 }} }}}}}
{{{content|{{ {{ #ifexist: {{{1|{{Documentation/docname}}}}} | {{{1|{{Documentation/docname}}}}} | ns:0 }} }}}}}
</div>
</div>

Revision as of 02:08, 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 }} }}