Difference between revisions of "Template:Documentation subpage"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(fix categorisation)
(restore pre-import version)
Line 1: Line 1:
<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
+
<includeonly>{{#ifeq: {{lc:{{#titleparts:{{PAGENAME}}||-1}}}} | {{{override|doc}}}
 
   | <!-- doc page -->
 
   | <!-- doc page -->
 
</includeonly>{{
 
</includeonly>{{
 
     #ifeq: {{{doc-notice|show}}} | show
 
     #ifeq: {{{doc-notice|show}}} | show
     | {{mbox
+
     | {{ombox
 
       | type = notice
 
       | type = notice
       | image = [[File:Edit-copy green.svg|40px]]
+
       | image = [[File:Edit-copy green.svg|40px|link=|alt=]]
 
       | text =  
 
       | text =  
'''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}}}}}}}}.  
+
'''This is a [[w:Wikipedia:Template documentation|documentation]] [[w:Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{#if:{{#titleparts:{{PAGENAME}}|-1}}|{{#titleparts:{{PAGENAME}}|-1}}|{{PAGENAME}}}}]]}}}''' <small>(see that page for the {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template | {{ #if: {{SUBJECTSPACE}} | {{lc:{{SUBJECTSPACE}}}} | article }}}}}} itself)</small>.<br />It contains usage information, categories, and other content that are 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}}}}}}}}.  
 
       }}
 
       }}
 
     }}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{
 
     }}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{
 
     #if: {{{inhibit|}}}
 
     #if: {{{inhibit|}}}
 
     | <!-- skip -->
 
     | <!-- skip -->
     | <includeonly>{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:{{
+
     | [[Category:{{
       #switch: {{SUBJECTSPACE}}
+
       #if: {{SUBJECTSPACE}}
       | Template  = Template
+
       | {{SUBJECTSPACE}}
       | User      = User
+
       | Article
      | #default  = Wikipedia
+
     }} documentation<noinclude>| </noinclude>]]
     }} documentation pages]]|[[Category:Documentation subpages without corresponding pages]]}}</includeonly>
 
 
   }}<includeonly>
 
   }}<includeonly>
 
| <!-- if not on a /doc subpage, do nothing -->
 
| <!-- if not on a /doc subpage, do nothing -->

Revision as of 13:12, 13 March 2012

Documentation icon Template documentation[create]