Module:Gratisdata label/doc

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.

getLabel
This function returns a label translated to desired language and linking to desired project, created based on wikidata. Used by Label template.


 * 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