Module:Wikidata date/doc
< Module:Wikidata date
Jump to navigation
Jump to search
Revision as of 00:04, 1 November 2018 by en>Marsupium (update reflecting further evaluation of sourcing circumstances (P1480) introduced with Special:Diff/321342538)
This is the documentation page for Module:Wikidata date
40x40px |
40x40px |
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:
- Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P580) maps to {{Complex date}}'s from option
- Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P582) maps to {{Complex date}}'s until option
- Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P580) and Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P582) maps to {{Complex date}}'s from-until option
- Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P1319) maps to {{Complex date}}'s after option
- Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P1326) maps to {{Complex date}}'s before option
- Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P1319) and Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P1326) maps to {{Complex date}}'s between option
- Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P1480) with following items: Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q5727902), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q56644435), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q18122778), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q30230067) maps to {{Complex date}}'s certainty parameter with corresponding value (introduced in September 2018; circa was possible as an adjective already before)
- Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (P4241) with following items: Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40719727), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40719748), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40719766), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40690303), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40719649), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40719662), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40719674), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40720559), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40720564), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40720568), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40720553), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40719687), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q40719707), Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value). (Q5727902) maps to {{Complex date}} with corresponding option
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.