Issue:Category=*somecategory combined with ordermethod=category,sortkey does not list subpages

From FollowTheScore
Jump to: navigation, search
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