Build initial re-usable template for infobox #29
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: WASHWeb/WASHWeb-2019#29
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We talked about minimal set of fields, defining the public of the information and making it a re-usable template so that it can be dragged in from other pages for use. We also wanted to use it from a sandbox so that it can be experimented with from the "edit scanning" script that we'll also work on.
Just to confirm, I think we discussed so far the idea of using a subset version of the English template, translating that to French and then using smaller templates for each of the potential values. Those smaller template will need to use a language to be able to query the data from Wikidata (to be determined).
I will set up the sandbox template that is a subset of the original one and then perhaps we'll have to look together about how to pull the values out of Wikidata. I looked at this once before so I'll pull that up first.
There may be metadata such as the country code required to be able to do this. Looking ahead, this test is at national level but the idea is that code / geocode will need to be able to work at lower geographical levels in the future. We need to validate if there is a simple way to assign this code to the whole wikipage.
Sure, makes sense.
A Lua subset is the only scripting language that is supported as far as I can tell. Sections 5, 6 adn 7 of this infobox tutorial show the various approaches if you haven't already seen that. We'll want to weigh up the pros/cons on our approach: do we want editors to have to work directly with wikidata if we obscure the template on the page editing with references to the underlying lua module?
This Lua reference shows all available functionality for speaking to wikidata. This example of fetching data seems to show the parts that we'd need to wire up: the template definition, the page invocation and the Lua module.
Yep, I'd be up for that.