Difference between revisions of "Template:CategorySummary"

From Wikispooks
Jump to navigation Jump to search
(raw format better for maths)
m (Text replacement - "WikiSpooks" to "Wikispooks")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>'''This template was coded expressly for [[WikiSpooks:To Do]].'''[[Category:WikiSpooks Templates]]<br/>
+
<noinclude>'''This template was coded expressly for [[Wikispooks:To Do]].'''[[Category:Wikispooks Templates]]<br/>
{{TemplateProblem|This is behaving inconsistently for empty categories. The desired behaviour is to not print anything if a category is empty.}}
 
 
It makes an appropriately entitled subsection for categories of pages which are non-empty.<br/>
 
It makes an appropriately entitled subsection for categories of pages which are non-empty.<br/>
 
<br/>
 
<br/>
Line 10: Line 9:
 
|titles=Template with Problems
 
|titles=Template with Problems
 
|titlep=Templates with Problems
 
|titlep=Templates with Problems
<nowiki>}}</nowiki></poem></font></noinclude><includeonly>{{#if: {{PAGESINCAT:{{{category|}}}|R}}>0|
+
<nowiki>}}</nowiki></poem></font></noinclude><includeonly>{{#ifeq: {{PAGESINCAT:{{{category|}}}|R}}|0||
==={{PAGESINCAT:{{{category|}}}}} {{spz|{{PAGESINCAT:{{{category|}}}}}|{{{titles|}}}|{{{titlep|}}}| ''(Currently empty...<!--Why does this show?... -->)''}}===
+
==={{PAGESINCAT:{{{category|}}}}} {{spz|{{PAGESINCAT:{{{category|}}}|R}}|{{{titles|}}}|{{{titlep|}}}| ''(Currently empty...<!--Why does this show?... -->)''}}===
 
[[image:{{#if: {{{image|}}}|{{{image}}}|UnsourcedDocs.png}}|47px|left|link=:category:{{{category|}}}]]
 
[[image:{{#if: {{{image|}}}|{{{image}}}|UnsourcedDocs.png}}|47px|left|link=:category:{{{category|}}}]]
 
{{{description|}}}}}</includeonly>
 
{{{description|}}}}}</includeonly>

Latest revision as of 17:10, 14 October 2018

This template was coded expressly for Wikispooks:To Do.
It makes an appropriately entitled subsection for categories of pages which are non-empty.

Usage example:

{{CategorySummary
|image=bug1.jpg
|description=Wikispooks has a [[:Category:Templates with Problems|list of templates which are not working properly]]. These are all in active use, so would be a great help to the site if you can fix [[Help:templates |templates]].
|category=Templates with Problems
|titles=Template with Problems
|titlep=Templates with Problems
}}