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>.
Description
Description
Status | Subtype | Assigned | Task | |
---|---|---|---|---|
· · · | ||||
Resolved | Lydia_Pintscher | T89594 Use the arbitrary access to Wikidata feature on Commons (tracking) | ||
Resolved | Jarekt | T89599 Convert Template:Institution to Lua and use Wikidata | ||
Resolved | None | T49930 [Epic] Allow accessing data from a Wikidata item not connected to the current page - arbitrary access | ||
· · · |
Event Timeline
Comment Actions
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.