[Story] create demo infoboxes
Open, HighPublic


We need a number of demo infoboxes to show how the property parser function and Lua can be used. We should have examples showing:

  • parameter-less template
  • using values from Wikidata only if no local value is available
  • showing data from Wikidata based on the type of reference it has on Wikidata
  • adding a page to categories based on checks against Wikidata
Lydia_Pintscher updated the task description. (Show Details)
Lydia_Pintscher raised the priority of this task from to Normal.
Lydia_Pintscher changed Security from none to None.
Lydia_Pintscher added subscribers: Lydia_Pintscher, hoo.
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher raised the priority of this task from Normal to High.Dec 15 2014, 1:50 PM
Snipre added a subscriber: Snipre.Jan 7 2015, 3:21 PM
HenkvD added a subscriber: HenkvD.Jan 18 2015, 7:14 PM
Ainali added a subscriber: Ainali.Mar 13 2015, 11:01 PM
Prod added a subscriber: Prod.Apr 28 2015, 12:20 AM
putnik added a subscriber: putnik.May 10 2015, 2:43 AM
JanZerebecki lowered the priority of this task from High to Normal.May 16 2015, 5:21 PM
Lydia_Pintscher raised the priority of this task from Normal to High.May 17 2015, 11:12 AM

Some examples already exists and they are some users who can write some infoboxes based on lua and using WD. But the main questions is to define good practice in coding and espacially to avoid bad codes (too long, too many requests,...)

Jonas added a subscriber: Jonas.Jul 21 2015, 2:26 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 21 2015, 2:26 PM
Jonas renamed this task from create demo infoboxes to [Story] create demo infoboxes.Sep 10 2015, 7:34 PM
Lucie added a subscriber: Lucie.Dec 15 2015, 3:09 PM
Qgil added a subscriber: Qgil.Mar 31 2016, 9:34 AM

The Wikimedia-Hackathon-2016 starts tomorrow and this task is featured at T119703. We want to use T130776: Wikimedia Hackathon 2016 Opening Session to promote these projects and help recruiting volunteers to work for them.

If this task is ripe for hackathon work, please follow these instructions. If it is not ready, remove it from T119703 in order to avoid volunteers' frustration. Thank you!

jeblad added a subscriber: jeblad.Apr 1 2016, 2:10 PM

Some of the rows in the infobox biography at nowiki has both use of the property parser function and of Lua modules. It also has a lot of discussions about how to use (and not use) Wikidata and why and how it should be filtered and so forth. There are more discussions about this at Tinget (Cathedral) and Torget (Bazaar), check out this link.

Typical problems are use of property parser function where a single claim is expected, but several are returned. Also some specific ordering are expected but the actual order is mangled. Some entries might also be assumed to be "wrong" in some way given a specific context. Often the user complaining has some expectation about the entry which is not fulfilled, usually because the person has done additional work (like being born, having kids, and behold having a dayjob) that comes as a surprise to the user.

Qgil removed a subscriber: Qgil.Apr 2 2016, 12:33 PM

@Lydia_Pintscher added a project: Epic Jun 23 2015, 17:43

Please either remove Epic (title mentions story) or remove Story and retitle to epic. Thanks.

Could be useful, here's the list of infoboxes using Wikidata on the French Wikipédia : Modèle d'infobox utilisant Wikidata (53 right now)

  • Most could be parameter-less template,
  • (I didn't check but they should) all use Wikidata only if there isn't a local value,
  • All have some check categories.
Tobias1984 added a comment.EditedJun 20 2016, 9:32 AM

Will work on this on Wikimania 2016 Wednesday Hackathon (22. June). I would especially like to create some demo infoboxes for Wikisource.

Started here:


Work in progress and help wanted.

RexxS added a subscriber: RexxS.Jun 30 2016, 3:59 PM
RexxS added a comment.Jun 30 2016, 4:17 PM

On English Wikipedia we have https://en.wikipedia.org/wiki/Module:Wikidata and https://en.wikipedia.org/wiki/Module:WikidataIB as examples of using Lua to get values from Wikidata. Each of them deals with multiple values for a property reasonably well in most cases, particularly when the values represent items that are internally wiki-linked.

The Wikidata module contains calls for use in upgrading infoboxes where the absence of a locally-supplied value causes a value to be fetched from Wikidata ("opt-out")

The WikidataIB module is intended for use in upgrading infoboxes where consensus is that they should only fetch Wikidata once enabled in an article. The operate in conjunction with a whitelist and a blacklist of fields, editable on a per-article basis.

Base added a subscriber: Base.Aug 8 2016, 5:33 PM
Danny_B removed a subscriber: Danny_B.Aug 8 2016, 6:12 PM

@Andrei_Stroe has done some tremendously useful things on the Romanian Wikipedia using wikidata and LUA

Thanks, @Strainu for the praise and for letting me know of this discussion.
By now, we have many infoboxes that have been refactored into working both in parameter-less mode, and with local override.

I had to heavily enhance https://ro.wikipedia.org/wiki/Modul:Wikidata in order to make it expose some functions that provide exactly what is needed in an infobox starting from an item, such as getOneValue (returns one value from those with the highest rank), getOneValueNoRef (same without reference), getValueListWithSeparator, getTimestampedValueListWithSeparator, getDateValue, getPreferredValue.

An example of infobox that uses these functions is https://ro.wikipedia.org/wiki/Format:Infocaseta_Joc_video

Other infoboxes were rewritten in LUA, such as https://ro.wikipedia.org/wiki/Format:Infocaseta_A%C8%99ezare and https://ro.wikipedia.org/wiki/Format:Infocaseta_Fotbalist

https://ro.wikipedia.org/wiki/Format:Infocaseta_Biografie was rewritten in LUA as a basic infobox for biographies (and takes multiple biographical data from Wikidata, such as birth date and place, occupation etc.). It can, however, be extended into more specific biography infoboxes, both in LUA, such as https://ro.wikipedia.org/wiki/Format:Infocaseta_Om_politic for politicians and https://ro.wikipedia.org/wiki/Format:Infocaseta_Actor for actors; and with basic parameters, such as https://ro.wikipedia.org/wiki/Format:Infocaseta_Artist for painters and other visual artists.

I avoided creating infoboxes for use with Wikidata that are separate from those with specified parameters in order to push the move towards Wikidata. The only example of such infobox is https://ro.wikipedia.org/wiki/Format:Taxobox-wd (LUA-based, only works with Wikidata as a parameter-less infobox) that is different than https://ro.wikipedia.org/wiki/Format:Taxobox (which still works with parameters only) - this is a complex infobox in a field of which I know little (biological taxonomy), so I wanted to avoid intruding in such an area.

I hope this is useful, just tag me if there is more I can do in this area.

MKar added a subscriber: MKar.Oct 23 2016, 6:38 AM