Search code examples
mediawikidpl

How to escape colons in category names for use by DPL?


I have several categories in a mediawiki which have colons in the name. With DPL, when I try either

category=Foo:bar

or

linksto=Category:Foo:bar

I get no results, even though that category when viewed actually shows several hundred pages. I presume it is due to the colons in the category name. Is there some way to escape the colon in a way that makes DPL happy?


Solution

  • The only working solution seems to be to use the categorymatch argument, rather than the category argument, using the % wildcard in place of the colons.

    So instead of

    |category=Foo:bar

    use

    |categorymatch=Foo%bar