Difference between revisions of "Template:Documentation"
From Shadow of the Throne 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|{{ | + | #ifexist: {{{1|{{Documentation/docname}}}}} |
| − | |<!-- /doc exists -->[[{{fullurl:{{{1|{{ | + | |<!-- /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|{{ | + | |<!-- 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|{{ | + | #ifexist: {{{1|{{Documentation/docname}}}}} |
| − | |<!-- /doc exists -->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{ | + | |<!-- /doc exists -->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([[{{{1|{{Documentation/docname}}}}}|view]] | [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit] | [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} history])</small><br /> |
|<!-- no /doc --> | |<!-- no /doc --> | ||
}} | }} | ||
| Line 54: | Line 54: | ||
}} | }} | ||
}}</div> | }}</div> | ||
| − | {{{content|{{ {{ #ifexist: {{{1|{{ | + | {{{content|{{ {{ #ifexist: {{{1|{{Documentation/docname}}}}} | {{{1|{{Documentation/docname}}}}} | ns:0 }} }}}}} |
</div> | </div> | ||
Revision as of 08: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
|}}
{{
#ifeq: show | show
|{{
#ifexist: Template:Documentation/docname
|This documentation is transcluded from [[Template:Documentation/docname]]. ([[Template:Documentation/docname|view]] | [{{fullurl:Template:Documentation/docname|action=edit}} edit] | [{{fullurl:Template:Documentation/docname|action=history}} history])
|
}}
|
}}{{
#switch: Documentation
|sandbox=
|testcases=
|#default={{
#switch: Template/show
|Template/show|User/show=This template has {{
#ifexist: {{ #rel2abs: /sandbox }}
|a sandbox ([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit]) {{
#ifexist: {{ #rel2abs: /testcases }}
|and testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])
|but no [{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} testcases]
}}
|no [{{fullurl:{{ #rel2abs: /sandbox }}|action=edit&preload=Template:Documentation/preload/sandbox}} sandbox] {{
#ifexist: {{ #rel2abs: /testcases }}
|but has testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])
|and no [{{fullurl:{{ #rel2abs: /testcases }}|action=edit&preload=Template:Documentation/preload/testcases}} testcases]
}}
}} for editors to experiment.
|
}}
}}{{ {{ #ifexist: Template:Documentation/docname | Template:Documentation/docname | ns:0 }} }}