Difference between pages "Template:Documentation" and "Template:Documentation/subpage"

From Harding Wiki
(Difference between pages)
Jump to navigationJump to search
Page 1
Page 2
(Created page with '<!-- Automatically add {{template sandbox notice}} when on a /sandbox page. -->{{#ifeq: {{SUBPAGENAME}} | sandbox | <div style="clear: both;"></div>{{template sandbox notice}} ...')
 
(Created page with '<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}} | <!-- doc page --> </includeonly>{{ #ifeq: {{{doc-notice|show}}} | show | {{mbox | type = notic...')
 
Line 1: Line 1:
<!--
<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
  Automatically add {{template sandbox notice}} when on a /sandbox page.
   | <!-- doc page -->
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
</includeonly>{{
| <div style="clear: both;"></div>{{template sandbox notice}}
    #ifeq: {{{doc-notice|show}}} | show
}}<!--
    | {{mbox
  Automatically add {{pp-template}} to protected templates.
      | type = notice
-->{{template other
      | image = [[File:Edit-copy green.svg|40px]]
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
      | text =  
  | {{pp-template|docusage=yes}}
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[Wikipedia:Categorization|categories]], [[Help:Interlanguage links|interlanguage links]] and other content that is not part of the original {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template page | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}.
   | {{#if: {{PROTECTIONLEVEL:edit}}
      }}
    | {{pp-template|docusage=yes}}
    }}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{
    | <!--Not protected, or only semi-move-protected-->
    #if: {{{inhibit|}}}
    }}
    | <!-- skip -->
  }}
    | <includeonly>[[Category:{{
}}<!--
      #if: {{SUBJECTSPACE}}
  Start of green doc box.
      | {{SUBJECTSPACE}}
-->{{documentation/start box2
      | Article
| preload = {{{preload|}}}   <!--Allow custom preloads-->
     }} documentation {{#ifeq:{{SUBJECTSPACE}}|Template|pages}}]]</includeonly>
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
  }}<includeonly>
| heading-style = {{{heading-style|}}}
| <!-- if not on a /doc subpage, do nothing -->
| content = {{{content|}}}
}}</includeonly><noinclude>
 
{{documentation}}
<!--Some namespaces must have the /doc, /sandbox and /testcases
    in talk space-->
| docspace = {{documentation/docspace}}
 
| 1 = {{{1|}}}  <!--Other docname, if fed-->
 
<!--The namespace is added in /start box2-->
| template page = {{documentation/template page}}
 
}}<!-- Start content --><!--
  Start load the /doc content:
  Note: The line breaks between this comment and the next line are necessary
  so  "=== Headings ===" at the start and end of docs are interpreted.
-->
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}}
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110
| 1111 = {{{content|}}}
| 0110 | 0111 = {{ {{{1}}} }}
| 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }}
| 0000 | 0100 | 0010 | 0101 =
}}
<!--
  End load the /doc content:
  Note: The line breaks between this comment and the previous line are necessary
  so  "=== Headings ===" at the start and end of docs are interpreted.
-->{{documentation/end box2
| preload = {{{preload|}}}   <!--Allow custom preloads-->
| content = {{{content|}}}
| link box = {{{link box|}}}   <!--So "link box=off" works-->
 
<!--Some namespaces must have the /doc, /sandbox and /testcases
     in talk space-->
| docspace = {{documentation/docspace}}
 
| 1 = {{{1|}}}   <!--Other docname, if fed-->
 
<!--The namespace is added in /end box2-->
| template page = {{documentation/template page}}
 
}}<!--
  End of green doc box
--><noinclude>
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>