Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Build initial re-usable template for infobox #29

Open
decentral1se opened this issue Jan 17, 2020 · 2 comments
Open

Build initial re-usable template for infobox #29

decentral1se opened this issue Jan 17, 2020 · 2 comments
Assignees

Comments

@decentral1se
Copy link
Collaborator

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.

@nickdickinson
Copy link
Member

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.

@decentral1se
Copy link
Collaborator Author

Sure, makes sense.

Those smaller template will need to use a language to be able to query the data from Wikidata (to be determined).

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.

perhaps we'll have to look together about how to pull the values out of Wikidata.

Yep, I'd be up for that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants