Page MenuHomePhabricator

Convert Template:Institution to Lua and use Wikidata
Closed, ResolvedPublic

Description

https://commons.wikimedia.org/wiki/Template:Institution should be reimplemented as a Lua module at https://commons.wikimedia.org/wiki/Module:Institution. All current functionality should be kept. For each field a fallback to Wikidata should be implemented. This fallback should be used if the field is not set locally and the "wikidata" field is set to a Q<id>.

Event Timeline

Multichill raised the priority of this task from to Medium.
Multichill updated the task description. (Show Details)
Multichill added subscribers: Multichill, Aklapper.

It's not in Lua, but some work towards pushing data from wikidata through the existing Institution template can be found at
https://www.wikidata.org/wiki/Template:Institution/wrapper
with some test-cases at https://www.wikidata.org/wiki/Template:Institution/wrapper/test

There's a bit more red text than there used to be, because some of the Lua Wikidata convenience library calls I was using have been changed. And of course what I've written isn't in Lua. But possibly it may be of some use for comparison.

SamB renamed this task from Template:Institution to LUA and use Wikidata to Convert Template:Institution to Lua and use Wikidata.Apr 27 2015, 11:08 PM
SamB updated the task description. (Show Details)
SamB set Security to None.