Módulo:Wikidata date/doc

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:
 * Module:ISOdate (also used by ISOdate)
 * Module:Complex date (also used by Complex date and Other date)

Properties
Module recognizes several qualifiers, by themselves and in groups:
 * maps to Complex date's from option
 * maps to Complex date's until option
 * and maps to Complex date's from-until option
 * maps to Complex date's after option
 * maps to Complex date's before option
 * and maps to Complex date's between option
 * with following items:, , , maps to Complex date's certainty parameter with corresponding value (introduced in September 2018; circa was possible as an adjective already before)
 * with following items:, , , , , , , , , , , , , maps to Complex date with corresponding option

Calling from templates

 * 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.