Page MenuHomePhabricator

Build a Multilingual tag alternative in LUA using data from Wikidata
Closed, ResolvedPublic

Description

Commons currently has a lot of multilingual tags, see https://commons.wikimedia.org/wiki/Category:Multilingual_tags . The tags convert a word to other languages and sometimes add a link. See for example the one for Berlin at https://commons.wikimedia.org/w/index.php?title=Template:Berlin&action=edit

This is a lot of duplicate information. The template should be reduced to:

{{#invoke:Multilingual tag|Multilingual tag

wikidata = Q64
nolink = {{{nolink }}}
lang = {{lang{{{1}}}}}}

}}

(or maybe even less)

Event Timeline

Multichill raised the priority of this task from to Medium.
Multichill updated the task description. (Show Details)
Restricted Application added a subscriber: Matanya. · View Herald Transcript

Looks like this got implemented last year, see for example https://commons.wikimedia.org/w/index.php?title=Template%3AHaarlem&type=revision&diff=203187005&oldid=194727911 . I just did https://commons.wikimedia.org/w/index.php?title=Template:Van_Gogh_Museum&diff=prev&oldid=246089967 and that seems to work fine. A bot seems to have converted most locations.

When I look for templates not yet converted I see a lot of museums, see https://petscan.wmflabs.org/?psid=1055665 . Probably a bit more should be bot converted and the whole lot better documented?

Yes I wrote Module:Wikidata label last September and converted several hundred templates associated with template:City, to use it. Now also all the Creator templates use that module to display persons name, if Wikidata q-code is present. I will slowly remove "name" fields from creator templates with Wikidata, while doing other edits. it would be great if someone converted other template using {{LangSwitch}} to link to articles on different wikipedias.

Multichill assigned this task to Jarekt.