Community Wishlist Survey 2017/Wikidata/Further functionality for "statement" parser function

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Random proposal ►

 ◄ Back to Wikidata  The survey has concluded. Here are the results!


  • 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.
  • Phabricator tickets:
  • Proposer: Deryck C. 19:44, 10 November 2017 (UTC)

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 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]