|
|
| (65 intermediate revisions by 31 users not shown) |
| Line 1: |
Line 1: |
| <noinclude>
| | <!-- |
| {{pp-semi-template|small=yes}}
| | Start of green doc box. |
| {{intricate}}
| | -->{{documentation/start box2 |
| <!-- Moved to: Template:Documentation, template | | | preload = {{{preload|}}} <!--Allow custom preloads--> |
| {{Mergingfrom|Template doc|date=November 2007}}
| | | heading = {{{heading|¬}}} <!--Empty but defined means no header--> |
| [[User:ConradPino]] 21:45, 9 November 2007 (UTC)
| | | heading-style = {{{heading-style|}}} |
| -->
| | | content = {{{content|}}} |
| </noinclude><div class="template-documentation">{{
| | |
| #if: {{{heading|Documentation}}}
| | <!--Some namespaces must have the /doc, /sandbox and /testcases |
| |<!-- 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">{{ | | in talk space--> |
| #ifexist: {{{1|{{Documentation/docname}}}}}
| | | docspace = {{documentation/docspace}} |
| |<!-- /doc exists -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} view]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
| | |
| |<!-- no /doc -->{{
| | | 1 = {{{1|}}} <!--Other docname, if fed--> |
| #if: {{{content|}}}
| | |
| |
| | <!--The namespace is added in /start box2--> |
| |<!-- only if no content, then -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload={{{preload-doc|Template:Documentation/preload}}}}} edit]]
| | | template page = {{documentation/template page}} |
| }}<!-- endif content, follows endifexist /doc -->
| | |
| }}</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div> | | }}<!-- Start content --><!-- |
| <!-- follows endif heading: if empty, all of the above is skipped -->
| | Start load the /doc content: |
| }}<div id="template_doc_page_transcluded" class="dablink plainlinks">{{
| | Note: The line breaks between this comment and the next line are necessary |
| #ifeq: {{{transcluded|show}}} | show
| | so "=== Headings ===" at the start and end of docs are interpreted. |
| |<!-- transcluded show -->{{
| | --> |
| #ifexist: {{{1|{{Documentation/docname}}}}}
| | {{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}} |
| |<!-- /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 />
| | | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 |
| }}<!-- endifexist /doc;
| | | 1111 = {{{content|}}} |
| follows
| | | 0110 | 0111 = {{ {{{1}}} }} |
| endif transcluded = show : if hide, this was skipped -->
| | | 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }} |
| }}{{ | | | 0000 | 0100 | 0010 | 0101 = |
| #switch: {{SUBPAGENAME}}
| | }} |
| |sandbox=<!-- sandbox -->
| | <!-- |
| |testcases=<!-- testcases -->
| | End load the /doc content: |
| |#default={{
| | Note: The line breaks between this comment and the previous line are necessary |
| #switch: {{SUBJECTSPACE}}/{{{sandbox-testcases|show}}}
| | so "=== Headings ===" at the start and end of docs are interpreted. |
| |{{ns:template}}/show
| | -->{{documentation/end box2 |
| | {{ns:user}}/show =<!-- show experiment subpages -->This template has {{
| | | preload = {{{preload|}}} <!--Allow custom preloads--> |
| #ifexist: {{ #rel2abs: /sandbox }}
| | | content = {{{content|}}} |
| |<!-- /sandbox -->a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit])</small> {{
| | | link box = {{{link box|}}} <!--So "link box=off" works--> |
| #ifexist: {{ #rel2abs: /testcases }}
| | |
| | and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>
| | <!--Some namespaces must have the /doc, /sandbox and /testcases |
| | but '''no''' [{{fullurl:{{ #rel2abs: /testcases }}|action=edit&preload={{{preload-testcases|Template:Documentation/preload/testcases}}}}} testcases]
| | in talk space--> |
| }}
| | | docspace = {{documentation/docspace}} |
| |<!-- no /sandbox -->'''no''' [{{fullurl:{{ #rel2abs: /sandbox }}|action=edit&preload={{{preload-sandbox|Template:Documentation/preload/sandbox}}}}} sandbox] {{
| | |
| #ifexist: {{ #rel2abs: /testcases }}
| | | 1 = {{{1|}}} <!--Other docname, if fed--> |
| |<!-- no /sandbox AND /testcases -->but has [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>
| | |
| |<!-- no /sandbox AND no /testcases -->and '''no''' [{{fullurl:{{ #rel2abs: /testcases }}|action=edit&preload={{{preload-testcases|Template:Documentation/preload/testcases}}}}} testcases]
| | <!--The namespace is added in /end box2--> |
| }}
| | | template page = {{documentation/template page}} |
| }} for editors to experiment.
| | |
| |<!-- hide experiment subpages: follow both endcases-->
| | }}<!-- |
| }}
| | End of green doc box |
| }}</div>
| | --><noinclude> |
| {{{content|{{ {{ #ifexist: {{{1|{{Documentation/docname}}}}} | {{{1|{{Documentation/docname}}}}} | ns:0 }} }}}}}
| | |
| </div> | | <!-- Add categories and interwikis to the /doc subpage, not here! --> |
| | </noinclude> |