Шаблон:Documentation — различия между версиями

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
м (rv (doesn't work on non-empty))
м (some minor tweaking)
Строка 1: Строка 1:
<div class="template-documentation"><!--
+
<noinclude>
 
+
{{#ifeq:{{SUBPAGENAME}}|sandbox|{{Template sandbox notice}}|{{pp-semi-template|small=yes}}}}
These are the literal class definitions in common.css:
+
{{intricate}}
+
</noinclude><div class="template-documentation" style="margin:0.5em;">
/* For template documentation */
+
{{#if: {{{heading|Documentation}}}
.template-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">{{#ifexist:{{{1|{{Documentation/docname}}}}}
    clear: both;
+
|<!-- /doc exists -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} view]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
    margin: 1em 0 0 0;
+
|<!-- no /doc -->{{#if:{{{content|}}}
    border: 1px solid #aaa;
+
|<!-- has content -->
    background-color: #ecfcf4;
+
|<!-- no content -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload={{{preload-doc|Template:Documentation/preload}}}}} edit]]
    padding: 5px;
+
}}}}</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div>
}
+
  |<!-- empty heading -->
 
+
}}<div id="template_doc_page_transcluded" class="dablink plainlinks">{{#ifeq:{{{transcluded|show}}}|show
 
+
|<!-- transcluded show -->{{#ifexist: {{{1|{{Documentation/docname}}}}}
-->{{#ifeq:{{{heading|μ}}}|<!--**DEFINED BUT EMPTY**-->
+
|<!-- /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 />
  |<!--**NOTHING**-->
+
  |<!-- no /doc -->
  |<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifeq:{{{content|μ}}}
+
}}
  |<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Documentation/docname}}}}}
+
  |<!-- transcluded hide -->
    |<!--**    /doc EXISTS**  -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
+
}}{{#switch:{{SUBPAGENAME}}
    |<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit&preload=Template:Documentation/preload}} create]]
+
|sandbox=<!-- sandbox -->
  }}</span>
+
|testcases=<!-- testcases -->
  }} <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>
+
|#default={{#switch:{{SUBJECTSPACE}}/{{{sandbox-testcases|show}}}
  }}<!--
+
|{{ns:template}}/show|{{ns:user}}/show=<!-- show /sandbox /testcases -->{{#ifexist:{{#rel2abs:/sandbox}}
 
+
|<!-- /sandbox -->This template has a [[/sandbox|sandbox]] <small style="font-style:normal">([{{fullurl:{{#rel2abs:/sandbox}}|action=edit}} edit])</small> {{#ifexist:{{#rel2abs:/testcases}}
--><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
+
|<!-- /sandbox AND /testcases -->and [[/testcases|testcases]] <small style="font-style:normal">([{{fullurl:{{#rel2abs:/testcases}}|action=edit}} edit])</small> for editors to experiment.
  -->{{#ifexist: {{{1|{{Documentation/docname}}}}}
+
|<!-- /sandbox AND no /testcases --> for editors to experiment.}}
  |<!--**/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] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} history])</small><br />
+
|<!-- no /sandbox -->{{#ifexist:{{ #rel2abs: /testcases }}
  }}<!--
+
|<!-- no /sandbox AND /testcases -->This template has [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{#rel2abs: /testcases }}|action=edit}} edit])</small> for editors to experiment.
 
+
  |<!-- no /sandbox AND  no /testcases -->}}}}
  -->{{#switch: {{SUBPAGENAME}}
+
|<!-- hide /sandbox /testcases -->}}
  |sandbox|testcases=<!--**DO NOT SHOW THESE LINKS ON THE SANDBOX/TESTCASES PAGES**-->
+
}}</div>
  |#default=
+
{{{content|{{ {{#ifexist:{{{1|{{Documentation/docname}}}}}|{{{1|{{Documentation/docname}}}}}|ns:0}} }}}}}
    {{#switch: {{SUBJECTSPACE}}
+
</div>
    |{{ns:template}}
+
    |{{ns:user}}=
+
      {{#ifexist: {{FULLPAGENAME}}/sandbox
+
      |This template has a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit])</small> <!--
+
        -->{{#ifexist: {{FULLPAGENAME}}/testcases
+
        |and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>}} for editors to experiment.
+
      |{{#ifexist: {{FULLPAGENAME}}/testcases
+
        |This template has [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small> for editors to experiment.}}
+
  }}}}}}
+
</div>
+
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
+
</div><noinclude>
+
 
+
{{pp-template|small=yes}}
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
</noinclude>
+

Версия 23:08, 28 сентября 2008

Шаблон:Pp-semi-template Шаблон:Intricate

[[{{fullurl:Шаблон:Documentation/docname|action=edit&preload=Template:Documentation/preload}} edit]] Documentation