Jump to content

Template:Documentation: Difference between revisions

From IdeaWazaWiki
wikademia>Davidgothberg
Moved {{pp-semi-template|small=yes}} and {{intricate template}} to the doc subpage instead, since they are not part of the template code and it looks better too.
wikademia>Wikademia
m 121 revisions
 
(27 intermediate revisions by 17 users not shown)
Line 1: Line 1:
<noinclude>{{
<div class="template-documentation"><!--
#ifeq: {{SUBPAGENAME}} | sandbox
 
  | {{Template sandbox notice}}
These are the literal class definitions in common.css:
}}
</noinclude><div class="template-documentation">{{
/* For template documentation */
  #if: {{{heading|Documentation}}}
.template-documentation {
   |<div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">{{
    clear: both;
    #ifexist: {{{1|{{Documentation/docname}}}}}
    margin: 1em 0 0 0;
     |<!-- /doc exists -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
    border: 1px solid #aaa;
    |<!-- no /doc -->{{
    background-color: #ecfcf4;
      #if: {{{content|}}}
    padding: 5px;
      |
}
      |<!-- no content -->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit&preload={{{preload-doc|Template:Documentation/preload}}}}} create]]
 
    }}
 
   }}</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div>
-->{{#ifeq:{{{heading|μ}}}|<!--**DEFINED BUT EMPTY**-->
}}<!-- endif heading -->
  |<!--**NOTHING**-->
<div id="template_doc_page_transcluded" class="dablink plainlinks">{{
   |<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifeq:{{{content|μ}}}|μ
  #ifeq: {{{transcluded|show}}} | show
  |<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Documentation/docname}}}}}
  |<!-- transcluded show -->{{
     |<!--**    /doc EXISTS**  -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]] [{{purge|purge}}]
    #ifexist: {{{1|{{Documentation/docname}}}}}
    |<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit&preload=Template:Documentation/preload}} create]]
    |<!-- /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 />
  }}</span>
  }}
   }} <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>
  |<!-- transcluded hide -->
}}<!--
}}{{
 
  #switch: {{SUBPAGENAME}}
--><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
  |sandbox=<!-- sandbox -->
  -->{{#ifexist: {{{1|{{Documentation/docname}}}}}
  |testcases=<!-- testcases -->
  |<!--**/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 />
  |#default={{
}}<!--
    #switch: {{SUBJECTSPACE}}/{{{sandbox-testcases|show}}}
 
    | {{ns:template}}/show | {{ns:user}}/show =<!-- show /sandbox /testcases -->{{
-->{{#switch: {{SUBPAGENAME}}
      #ifexist: {{ #rel2abs: /sandbox }}
  |sandbox|testcases=<!--**DO NOT SHOW THESE LINKS ON THE SANDBOX/TESTCASES PAGES**-->
      | This template has a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit])</small> {{
  |#default=
        #ifexist: {{ #rel2abs: /testcases }}
    {{#switch: {{SUBJECTSPACE}}
        |<!-- /sandbox AND /testcases --> and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>
    |{{ns:template}}
        |<!-- /sandbox BUT no /testcases -->}} for editors to experiment.
    |{{ns:user}}=
      |<!-- no /sandbox -->{{
      {{#ifexist: {{FULLPAGENAME}}/sandbox
        #ifexist: {{ #rel2abs: /testcases }}
      |This template has a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit])</small> <!--
         | This template has [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small> for editors to experiment.
        -->{{#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
    |<!-- hide /sandbox /testcases -->
         |This template has [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small> for editors to experiment.}}
  }}
}}}}}}
}}</div>
</div>
{{{content|{{ {{ #ifexist: {{{1|{{Documentation/docname}}}}} | {{{1|{{Documentation/docname}}}}} | ns:0 }} }}}}}
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
</div>
<div style="clear: both;"></div>
</div><noinclude>
 
{{pp-template|small=yes}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 17:37, 20 April 2009

[create] Template documentation