Page MenuHomePhabricator

Support prefixed ID in WikidataCheck-template/module
Closed, ResolvedPublic

Description

WikidataCheck is a useful tool for bringing together Wikidata and WLM ID-templates on Commons.

It however assumed that the ID used in the template on Commons is identical to the value of the corresponding Propery on Wikidata, which isn't always true.

One common category of IDs where this is the case is that where the same Property is used for multiple types of ID-templates. Most promjnent of these is P2186 (WLM ID).

The ability to set a prefix in the template which is prepended to the identifier before looking for a match on Wikidata would significantly improve the situation.

Event Timeline

You can now pass a prefix to the template ; can you give me a test case @Lokal_Profil ?

You can now pass a prefix to the template ; can you give me a test case @Lokal_Profil ?

Thanks @JeanFred.

You can now pass a prefix to the template ; can you give me a test case @Lokal_Profil ?

See https://commons.wikimedia.org/wiki/Category:National_monuments_in_Chile_ID_and_Wikidata

See https://commons.wikimedia.org/wiki/Category:Fornminne_ID_and_Wikidata

Added that quickly − let me know if that looks good :)

How did I never get back to this one. Solution works perfectly. Many thanks!