Community Wishlist Survey 2017/Wikidata/Further functionality for "statement" parser function
Appearance
Further functionality for "statement" parser function
- Problem: When a page on another Wikimedia project wants to use data from Wikidata, bespoke Lua scripts are needed for anything more complicated than getting the main object of a property. This has led to a proliferation of Lua scripts that do the same task in different Wikimedia projects.
- Who would benefit: Wikimedia projects that want to use Wikidata, particularly small Wikipedias
- Proposed solution: Extend the current {{#statements:}} parser function to accommodate qualifiers and sources. This will cover most standard use cases of Wikidata in infoboxes.
- More comments: See wm2017:Wikidata and infoboxes and Learning patterns/Using Wikidata on Wikipedia infoboxes for some documentation on the current state of affairs.
- Phabricator tickets:
- Proposer: Deryck C. 19:44, 10 November 2017 (UTC)
- Translations: none yet
Discussion
[edit]- I would love to not only support, but actually work on this. Unfortunately this issues description is extremely vague. What exactly do you mean when you write "accommodate qualifiers and sources"? Should the parser function also output qualifiers, references, or both? Should it accept them as filters? How do you expect this to look like in wikitext? --Thiemo Kreuz (WMDE) (talk) 16:42, 28 November 2017 (UTC)
- Comment I doubt you can squeeze more out of
{{#statement}}
, but I think we should have more Lua libraries shared among all the projects allowing access to Wikidata statements. For example my c:Module:Wikidata date is used on Commons for formatting date statements in any language. It would be good to share such modules across other projects, so more people can improve it. --Jarekt (talk) 14:06, 4 December 2017 (UTC)
Voting
[edit]- Support Tgr (talk) 09:47, 28 November 2017 (UTC)
- Support --Liuxinyu970226 (talk) 13:28, 28 November 2017 (UTC)
- Support Thomas Obermair 4 (talk) 23:15, 28 November 2017 (UTC)
- Support Donald Trung (Talk 🤳🏻) (My global lock 🔒) (My global unlock 🔓) 13:06, 29 November 2017 (UTC)
- Support Xaris333 (talk) 19:15, 29 November 2017 (UTC)
- Support Swpb (talk) 20:26, 29 November 2017 (UTC)
- Support Termininja (talk) 17:55, 2 December 2017 (UTC)
- Support Waldir (talk) 11:30, 3 December 2017 (UTC)
- Support — Luchesar • T/C 14:29, 11 December 2017 (UTC)