Build initial re-usable template for infobox #29

Open
opened 2020-01-17 11:30:08 +01:00 by decentral1se · 2 comments
decentral1se commented 2020-01-17 11:30:08 +01:00 (Migrated from github.com)

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.

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.

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 commented 2020-01-23 20:15:25 +01:00 (Migrated from github.com)

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.

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](https://www.wikidata.org/wiki/Wikidata: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](https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua) shows all available functionality for speaking to wikidata. This [example of fetching data](https://www.wikidata.org/wiki/Wikidata:Infobox_Tutorial#Fetching_information_from_Wikidata) 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.
nickdickinson added this to the WASHWeb-2019 project 2023-11-14 10:49:54 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: WASHWeb/WASHWeb-2019#29
No description provided.