Module:Wikidata label/documentation

Documentation
The module provides functions to fetch from Wikidata labels, aliases or sitelinks for specific item in specific language. Each function can be called both from Lua and from Wikitext templates. Used by Wikidata label template.

getLabel
This function returns a label translated to the desired language and linking to desired project, created based on Wikidata.


 * Call from template
 * Calls from Lua


 * Inputs

sitelinks
This function returns a list of sitelinks for a single project organized by language


 * Call from template


 * Calls from Lua


 * Inputs


 * Output:
 * for sitelinks a comma separated list
 * for _sitelinks a lua table

aliases
This function returns a list of aliases for a single language


 * Call from template


 * Calls from Lua


 * Inputs


 * Output:
 * for aliases a comma separated list
 * for _aliases a lua table