Difference between revisions of "Template:Number of pages"
From EncyclopAtys
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{NAMESPACE}}|Category|{{formatnum:{{PAGESINCATEGORY:{{PAGENAME}}}}}} pages|[[:Category:{{#titleparts: {{BASEPAGENAME}} | 1 }}/Related articles|{{formatnum:{{PAGESINCATEGORY:{{#titleparts: {{BASEPAGENAME}} | 1 }}/Related pages}}}} pages]]}}</includeonly><noinclude>[[Category:Templates]]</noinclude> | <includeonly>{{#ifeq:{{NAMESPACE}}|Category|{{formatnum:{{PAGESINCATEGORY:{{PAGENAME}}}}}} pages|[[:Category:{{#titleparts: {{BASEPAGENAME}} | 1 }}/Related articles|{{formatnum:{{PAGESINCATEGORY:{{#titleparts: {{BASEPAGENAME}} | 1 }}/Related pages}}}} pages]]}}</includeonly><noinclude>[[Category:Templates]]</noinclude> | ||
+ | |||
+ | '''Template in test, pleause WIP, no touch!!! ''(searching for a bug)'' ''' | ||
+ | |||
+ | {{#ifeq:{{NAMESPACE}}| Category| alors {{NAMESPACE}} = Category et: {{formatnum:{{PAGESINCATEGORY:{{PAGENAME}}}}}} pages|[[:Category:{{#titleparts: {{BASEPAGENAME}} | 1 }}/Related articles|alors {{NAMESPACE}} ≠ Category et: {{formatnum:{{PAGESINCATEGORY:{{#titleparts: {{BASEPAGENAME}} | 1 }}/Related pages}}}} pages]]}} | ||
+ | |||
+ | NAMESPACE: {{NAMESPACE}} | ||
+ | |||
+ | PAGENAME: {{PAGENAME}} | ||
+ | |||
+ | BASEPAGENAME: {{BASEPAGENAME}} | ||
+ | |||
+ | PAGESINCATEGORY: {{PAGENAME}}: {{PAGESINCATEGORY: {{PAGENAME}}}} | ||
+ | |||
+ | {{formatnum: | ||
+ | {{PAGESINCATEGORY: {{PAGENAME}} | ||
+ | }} | ||
+ | |||
+ | {{#titleparts: | ||
+ | {{BASEPAGENAME}} | ||
+ | }} | ||
+ | |||
+ | {{formatnum: | ||
+ | {{PAGESINCATEGORY: | ||
+ | {{#titleparts: | ||
+ | {{BASEPAGENAME}} | ||
+ | }}/Related pages | ||
+ | }} |
Revision as of 08:23, 5 April 2018
Template in test, pleause WIP, no touch!!! (searching for a bug)
alors Template ≠ Category et: 0 pages
NAMESPACE: Template
PAGENAME: Number of pages
BASEPAGENAME: Number of pages
PAGESINCATEGORY: Number of pages: 0
{{formatnum: 0
Number of pages
{{formatnum:
0