Page MenuHomePhabricator

Regression: PAGESINCATEGORY no longer accepts {{PAGENAME}} as parameter
Closed, ResolvedPublic

Description

This is a regression bug. The PAGESINCATEGORY builtin function no longer processes its parameter.

The typical parameter is <nowiki>{{PAGENAME}}</nowiki> and it is used like this in common templates displaying a category redirect, in order to recategorize the redirected category (where the template is used) within a specified category, as long as it contains pages.

See [[fr:Catégorie:Norme d'affichage]] which is redirected now to [[fr:Catégorie:Format d'affichage vidéo]] with {{Catégorie redirigée|Format d'affichage vidéo}}. There's no way now to specify a parameter for {{PAGESINCATEGORY:}} that may be variable, so the tempalte no longer works as expected, and the redirected category now becomes compltely orphan, instead of having its articles still accessible from within the target category.

Here:

  • "{{PAGENAME}}" returns "Norme d'affichage"
  • "{{PAGESINCATEGORY:Norme d'affichage}}" returns "4", which is correct.
  • "{{PAGESINCATEGORY:{{PAGENAME}}}}" returns "0", which is wrong !

This is a recent regression. This has worked since several years.


Version: unspecified
Severity: major

Details

Reference
bz24938

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:06 PM
bzimport set Reference to bz24938.
bzimport added a subscriber: Unknown Object (MLST).

Note that the same feature was also used since long to also catégorize (in a hidden maintenance category) those redirected categories that still contains pages.

This means that it is no longer possible to maintain non-empty redirected categories: ALL these redirected categories have to be visited systematically each time now to check if they have content and see which pages listed there need to be edited. This is a huge problem for major wikis that have lots of categories, whose structure is not evident and is progressively tuned according to the contents found. Many of these categories may have synonyms, so there will be many redirected categories.

Being able to NOT loose the link between the redirected category and the target category is important for maintaining the pages they contain, however these pages will all be within an orphaned category (or only a category listed in a generic category listing ALL redirected categories.)

Note: this is NOT a feature request. and NOT an enhancement.

This is really a MAJOR REGRESSION BUG.

This only affects pages with apostrophe.

  • This bug has been marked as a duplicate of bug 16474 ***