Page MenuHomePhabricator

Rewrite the Wikidata Infobox on Commons in Lua - Microtask 2
Closed, ResolvedPublic

Description

This is the second microtask for T302098, Rewrite the Wikidata Infobox on Commons in Lua. The aim is to convert an existing ParserFunction call that is used in the infobox to Lua

  1. Register a Wikimedia account if you don't already have one. You can do so at https://www.wikidata.org/w/index.php?title=Special:CreateAccount
  2. Create a subpage of https://commons.wikimedia.org/wiki/Module:Sandbox with your username - for example, https://commons.wikimedia.org/wiki/Module:Sandbox/Mike_Peel (if you haven't already)
  3. This line fetches the "named after" value from Wikidata. Try to understand each part of this piece of code, and the different parameter options, and write a short Lua script that fetches the value from Wikidata for qid=Q1513315 (South Pole Telescope):
{{#invoke:Wikidata Infobox|formatLine | P138 | {{#invoke:WikidataIB | getValue | rank=best | P138 | name=P138 | linkprefix=":" | qlinkprefix=":" | list={{{liststyle|ubl}}} | qid={{{qid|}}} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}} | noicon={{{noicon|yes}}} | qual=ALL}} }}

Once you are happy, send me a message on Zulip (to Mike_Peel) with a link to your code. If you have any questions, please contact me at on Zulip, or ask below. You might find these pages useful: