Page MenuHomePhabricator

Support Creator namespace in Commons link constraint
Closed, ResolvedPublic

Description

It looks like the Commons link constraint type doesn’t support the Creator namespace. Example statement: https://www.wikidata.org/wiki/Q468214#P1472, with the value “Ludolf Bakhuizen” and the namespace “Creator” on the constraint. I suspect this might be because we use a TitleParser configured on wikidatawiki, where there’s no Creator namespace. But perhaps it works if we have the TitleParser parse commons:Creator:Ludolf Bakhuizen instead of just Creator:Ludolf Bakhuizen?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 16 2017, 9:03 PM

But perhaps it works if we have the TitleParser parse commons:Creator:Ludolf Bakhuizen…?

Nope. The way the MediaWiki config for Wikimedia’s sites is set up, wikidatawiki just doesn’t know anything about commonswiki’s namespaces (or any other site-specific config). I’m afraid we’ll just have to hardcode this. (It’s not like CommonsLinkChecker is particularly suited for other wikis anyways right now… if we ever get around to T169538: Make “Commons link” constraint configurable, then we can also make the extra namespaces configurable, but for now, hardcoding will do.)

Change 378944 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseQualityConstraints@master] Fix CommonsLinkChecker for Creator namespace

https://gerrit.wikimedia.org/r/378944

Change 378944 merged by Lucas Werkmeister (WMDE):
[mediawiki/extensions/WikibaseQualityConstraints@master] Fix CommonsLinkChecker for Creator namespace

https://gerrit.wikimedia.org/r/378944

Lucas_Werkmeister_WMDE closed this task as Resolved.Sep 20 2017, 11:54 AM
Lucas_Werkmeister_WMDE claimed this task.