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

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
m (136 revisions imported)
 
m (26 revisions imported)
 
Line 1: Line 1:
<includeonly><!--
+
<includeonly>{{#switch:{{lc:{{SUBPAGENAME}}}}
-->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}}
+
              | Documentation subpage    <!--(allow template to operate on its own page -->
     | <!--(this template has been transcluded on a /doc or /{{{override}}} page)-->
+
              | {{{override|doc}}} =     <!-- else only on an /{{{override}}} or /doc page)
</includeonly><!--
+
--></includeonly><!--
 +
-->{{#ifeq:{{{doc-notice|show}}}|show    <!--
  
       -->{{#ifeq:{{{doc-notice|show}}} |show
+
       --------------------------- Message box ----------------------------
          | {{Mbox
+
-->| {{Mbox
            | type = notice
+
      | type = notice
            | style = margin-bottom:1.0em;
+
      | style = margin-bottom:1.0em;
            | image = [[File:Edit-copy green.svg|40px|alt=|link=]]
+
      | image = [[File:Edit-copy green.svg|40px|alt=|link=]]
            | text =
+
      | text = '''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br/><!--
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[Wikipedia:Categorization|categories]] 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}}}}}}}}.
+
          -->{{small|It contains usage information, [[Wikipedia:Categorization|categories]] and other content that is not part of the original <!--
            }}
+
          -->{{first nonempty |{{{text2|}}} |{{{text1|}}}
        }}<!--
+
              | {{#ifeq:{{SUBJECTSPACE}}|{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} template page
 +
                | {{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page |article}}}}
 +
  }}.}}     }} }}<!--z
  
      -->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!--
+
  ---------------- Categorization (unless {{{inhibit}}}ed) -----------------
 +
-->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!--
 +
-->{{#if:{{{inhibit|}}} |
 +
        |  <includeonly><!--
 +
            -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}
 +
                | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
 +
                | [[Category:Documentation subpages without corresponding pages]]
 +
                }}<!--
 +
        --></includeonly>
 +
      }}<!--
  
      -->{{#if:{{{inhibit|}}} |<!--(don't categorize)-->
+
  ---- If template not on a /doc, /{{{override}}} or its own page: ---->
          |  <includeonly><!--
+
<includeonly> | #default =
              -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}
+
}}</includeonly><noinclude>{{Documentation}}</noinclude>
                  | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
 
                  | [[Category:Documentation subpages without corresponding pages]]
 
                  }}<!--
 
          --></includeonly>
 
        }}<!--
 
 
 
(completing initial #ifeq: at start of template:)
 
--><includeonly>
 
    | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)-->
 
    }}<!--
 
--></includeonly><noinclude>{{Documentation}}</noinclude>