Page MenuHomePhabricator

Commonscat.py can't recognize wikidata properties
Open, NormalPublic

Description

It will see

{{Commonscat|Foobar}}

fine, but not the wikidata equivalent,

{{Commonscat|{{#property:P373}}}}

on a given category

It also does the same thing with {{Commonscat|{{PAGENAME}}}} that some editors like to use.

u"%s contains illegal char(s) %s" % (repr(t), repr(m.group(0))))
pywikibot.exceptions.InvalidTitle: u'{{' contains illegal char(s) u'{'
<class 'pywikibot.exceptions.InvalidTitle'>

Event Timeline

Avicennasis raised the priority of this task from to Normal.
Avicennasis updated the task description. (Show Details)
Avicennasis added a project: Pywikibot-Commons.
Avicennasis added a subscriber: Avicennasis.
Restricted Application added subscribers: Steinsplitter, Aklapper. · View Herald TranscriptSep 5 2015, 10:06 PM
Restricted Application added a subscriber: pywikibot-bugs-list. · View Herald TranscriptMay 29 2018, 5:33 PM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptMar 23 2019, 10:16 PM