https://bugzilla.wikimedia.org/show_bug.cgi?id=24938

           Summary: Regression: PAGESINCATEGORY no longer accepts
                    {{PAGENAME}} as parameter
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Categories
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: verd...@wanadoo.fr


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to