Template:Documentation/start box and Template:Documentation/start box2: Difference between pages

From nonlocal pde
(Difference between pages)
Jump to navigation Jump to search
imported>RayAYang
m (1 revision: Wikipedia citation templates)
 
imported>Plastikspork
(trim)
 
Line 1: Line 1:
<!--
{{documentation/start box
  Start of green doc box
| preload = {{{preload|}}}   <!--Allow custom preloads-->
--><div id="template-documentation" class="template-documentation iezoomfix"><!--
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
  Add the heading at the top of the doc box:
| heading-style = {{{heading-style|}}}
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty-->
| content = {{{content|}}}
| <!--"heading=", do nothing-->
 
| <div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;">{{
| docpage =  
  #if: {{{content|}}}
  {{#if: {{{1|}}}
  |
  | {{{1|}}}
   | <!--Add the [edit][purge] or [create] links-->
  | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc
    <span class="editsection plainlinks" id="doc_editlinks">{{
   }}
    #if: {{{doc exist|yes}}}
 
    | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [{{purge|purge}}]
| doc exist =  
    | <!--/doc doesn't exist-->
  {{#ifexist:
      [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
    {{#if: {{{1|}}}
        #if: {{{preload|}}}  
    | {{{1|}}}   <!--Other docname fed-->
        | {{urlencode:{{{preload}}}}}
    | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc
        | {{#ifeq: {{SUBJECTSPACE}} | {{ns:File}}
          | Template:Documentation/preload-filespace
          | Template:Documentation/preload
          }} }} }} create]]
    }}</span>
   }} <span style="{{#if: {{{heading-style|}}}
  | {{{heading-style|}}}
  | {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}
    | font-weight: bold; font-size: 125%
    | font-size: 150%
     }}
     }}
   }}">{{#switch: {{{heading|¬}}}
   | yes
  | ¬ = 
   }}
    <!--"heading" not defined in this or previous level-->
 
    {{#switch: {{SUBJECTSPACE}}
}}<noinclude>
    | {{ns:Template}} = [[Image:Template-info.svg|50px|alt=]] Template documentation
    | {{ns:File}} = Summary
    | #default = Documentation
    }}
   | #default =
    <!--"heading" has data or is empty but defined-->
    {{{heading|}}}
  }}</span></div>
}}<noinclude><!-- close the div --></div>


{{pp-template}}
{{pp-template}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 18:53, 13 November 2010

[create] File:Template-info.svg Template documentation