Difference between revisions of "Issue:Category=*somecategory combined with ordermethod=category,sortkey does not list subpages"

From FollowTheScore
Jump to: navigation, search
(New page: {{Issue |Type = Bug / Change Request |Extension = DPL |Version = ? |Description = |Status = open }} == Problem == I have a template looking like this: <code><pr...)
 
m (Problem)
 
Line 28: Line 28:
 
| notcategory={{{exclude category 8|{{{13|}}}}}}
 
| notcategory={{{exclude category 8|{{{13|}}}}}}
 
| notcategory={{{exclude category 9|{{{14|}}}}}}
 
| notcategory={{{exclude category 9|{{{14|}}}}}}
}}</includeonly><noinclude>
+
}}
  
 
</nowiki></pre></code>
 
</nowiki></pre></code>

Latest revision as of 15:20, 2 July 2009

Description:
Extension / Version: DPL   /   ?
Type / Status: Bug / Change Request   /   open

Problem

I have a template looking like this:


{{#DPL:
| category=*{{{category|{{{1|}}}}}}
| {{#if: {{{notopcategory|{{{4|}}}}}} | category=-{{{category|{{{1|}}}}}} }}
| ordermethod=category,sortkey 
| headingmode=ordered
| namespace={{{namespace|{{{3|}}}}}}
| notcategory={{{exclude category|{{{5|}}}}}}
| notcategory={{{exclude category 1|{{{6|}}}}}}
| notcategory={{{exclude category 2|{{{7|}}}}}}
| notcategory={{{exclude category 3|{{{8|}}}}}}
| notcategory={{{exclude category 4|{{{9|}}}}}}
| notcategory={{{exclude category 5|{{{10|}}}}}}
| notcategory={{{exclude category 6|{{{11|}}}}}}
| notcategory={{{exclude category 7|{{{12|}}}}}}
| notcategory={{{exclude category 8|{{{13|}}}}}}
| notcategory={{{exclude category 9|{{{14|}}}}}}
}}

I'd expected that combining the asterisk form of category=*somecategory and the minus form of category=-*somecategory with ordermethod=category,sortkey would cause pages included in subcategories of somecategory to appear in the list under headings corresponding to the subcategories, but this doesn't happen: in order to appear in the list a page must be included both in the top category and in the subcategory. A fellow editor at our wiki has an issue with pages simultaneously belonging to both a top category and one of its subcategories and wants to remove the top category from such pages, which tends to break my nice DPL listings ☹ Melroch 13:19, 2 July 2009 (UTC)

Reply