Template:Documentation: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
en>Happy-melon add check-pages to test for usage of obscure parameters |
en>Happy-melon complete rewrite, removing most optional parameters (I've checked every transclusion: they're all unused) and incorporating code from Template:Documentation, template, which can now be redirected |
||
Line 1: | Line 1: | ||
⚫ | |||
<noinclude>{{ |
|||
#ifeq: |
-->{{#ifeq:{{{heading|μ}}}|<!--**DEFINED BUT EMPTY**--> |
||
|<!--**NOTHING**--> |
|||
| {{Template sandbox notice}} |
|||
⚫ | |||
}} |
|||
⚫ | |||
⚫ | |||
|<!--** /doc EXISTS** -->[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} <span style="{{#if:{{{heading-style|}}}|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{heading|}}}|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|[[Image:Template-info.svg|50px]] Template documentation|Documentation}}}}</span></div> |
|||
⚫ | |||
}}<!-- |
|||
|<!-- no /doc -->{{ |
|||
#if: {{{content|}}} |
|||
⚫ | |||
| |
|||
-->{{#ifexist: {{{1|{{Documentation/docname}}}}} |
|||
⚫ | |<!--**/doc EXISTS**-->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit] | [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} history])</small><br /> |
||
}} |
|||
}}<!-- |
|||
}}</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div> |
|||
}}<!-- endif heading --> |
|||
⚫ | |||
⚫ | |||
|sandbox|testcases=<!--**DO NOT SHOW THESE LINKS ON THE SANDBOX/TESTCASES PAGES**--> |
|||
#ifeq: {{{transcluded|show}}} | show |
|||
⚫ | |||
|<!-- transcluded show -->{{ |
|||
# |
{{#switch: {{SUBJECTSPACE}} |
||
|{{ns:template}} |
|||
⚫ | |||
}} |
|{{ns:user}}= |
||
⚫ | |||
|<!-- transcluded hide --> |
|||
⚫ | |||
}}{{ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
|sandbox=<!-- sandbox --> |
|||
| |
|{{#ifexist: {{FULLPAGENAME}}/testcases |
||
⚫ | |||
⚫ | |||
}}}}}} |
|||
#switch: {{SUBJECTSPACE}}/{{{sandbox-testcases|show}}} |
|||
</div> |
|||
| {{ns:template}}/show | {{ns:user}}/show =<!-- show /sandbox /testcases -->{{ |
|||
⚫ | |||
⚫ | |||
</div> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
|<!-- /sandbox BUT no /testcases -->}} for editors to experiment. |
|||
|<!-- no /sandbox -->{{ |
|||
#ifexist: {{ #rel2abs: /testcases }} |
|||
⚫ | |||
}} |
|||
}} |
|||
|<!-- hide /sandbox /testcases --> |
|||
}} |
|||
⚫ | |||
⚫ | |||
</div><span style="display:none">{{#if:{{{heading|}}}|[[Template:Documentation/exists/heading]]}}{{#if:{{{heading-padding|}}}|[[Template:Documentation/exists/heading-padding]]}}{{#if:{{{heading-margin|}}}|[[Template:Documentation/exists/heading-margin]]}}{{#if:{{{content|}}}|[[Template:Documentation/exists/content]]}}{{#if:{{{preload-doc|}}}|[[Template:Documentation/exists/preload-doc]]}}{{#if:{{{heading-style|}}}|[[Template:Documentation/exists/heading-style]]}}{{#if:{{{transcluded|}}}|[[Template:Documentation/exists/transcluded]]}}{{#if:{{{sandbox-testcases|}}}|[[Template:Documentation/exists/sandbox-testcases]]}}</span> |