Difference between revisions of "Modèle:Documentation subpage"

From Wazeopedia
(fixing pagename parsing when in template namespace)
(Fixing basepagename bug)
Line 10: Line 10:
 
             | image = [[File:Edit-copy green.png|40px|alt=|link=]]
 
             | image = [[File:Edit-copy green.png|40px|alt=|link=]]
 
             | text =
 
             | text =
'''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}}}}}}}}.  
+
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{#titleparts: {{PAGENAME}} | -1 }}]]}}}'''.<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}}}}}}}}.  
 
             }}
 
             }}
 
         }}<!--
 
         }}<!--
Line 18: Line 18:
 
       -->{{#if:{{{inhibit|}}} |<!--(don't categorize)-->
 
       -->{{#if:{{{inhibit|}}} |<!--(don't categorize)-->
 
           |  <includeonly><!--
 
           |  <includeonly><!--
               -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}
+
               -->{{#ifexist:{{NAMESPACE}}:{{#titleparts: {{PAGENAME}} | -1 }}
 
                   | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
 
                   | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
 
                   | [[Category:Documentation subpages without corresponding pages]]
 
                   | [[Category:Documentation subpages without corresponding pages]]

Revision as of 07:54, 15 February 2015

This is a documentation subpage for [[:Modèle:]].
It contains usage information, categories and other content that is not part of the original modèle page.
Documentation icon Template documentation[create]
Please add categories to the /doc subpage.
Subpages of this template.