0

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?

BrianFreud
  • 7,094
  • 6
  • 33
  • 50

2 Answers2

1

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

BrianFreud
  • 7,094
  • 6
  • 33
  • 50
-1

You should use colon before the category name, for example:

[[:Category:foo]]

And this will work!.

ASammour
  • 865
  • 9
  • 12
  • That's how you link to a Category within MediaWiki. I'm asking about DPL queries. – BrianFreud Aug 24 '16 at 11:09
  • Ah, Since DPL uses Perl syntax; you can use backslash "\" to escape the colon. See this for more info: http://semeb.com/dpldemo/index.php?title=DPL:Manual_-_General_Usage_and_Invocation_Syntax#Characters_with_special_meaning – ASammour Aug 24 '16 at 12:00