Module:Wikidata date/doc

From Dharmawiki
< Module:Wikidata date
Revision as of 22:22, 9 February 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Wikidata date

This Module handles pulling data type properties from Wikidata. It was mainly intended for calls from other Lua modules, but it can be also called directly from templates. The module can read and parse and display dates in all precision's (year, decade, century, millennium, ettc.) and calendars (Gregorian and Julian) used on Wikidata. It can also interpret all qualifiers used for wider range of dates. Dates are localized (displayed in the language of the user) using:

Properties

Module recognizes several qualifiers, by themselves and in groups:

Calling from templates

{{#invoke:Wikidata date|date|item=Q5600|property=P569|lang=en}}

Inputs
  • item - wikidata item ID
  • property - property to capture
  • lang - what language to display it in. If skipped than date will be shown in the language of the user.