Changes

Jump to navigation Jump to search
update reflecting further evaluation of sourcing circumstances (P1480) introduced with Special:Diff/321342538
{{Module rating|release}}{{Module rating|protected}}
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 {{tl|ISOdate}})
*[[Module:Complex date]] (also used by {{tl|Complex date}} and {{tl|Other date}})

===Properties ===
Module recognizes several qualifiers, by themselves and in groups:
*{{P|580}} maps to {{tl|Complex date}}'s ''from'' option
*{{P|582}} maps to {{tl|Complex date}}'s ''until'' option
*{{P|580}} and {{P|582}} maps to {{tl|Complex date}}'s ''from-until'' option
*{{P|1319}} maps to {{tl|Complex date}}'s ''after'' option
*{{P|1326}} maps to {{tl|Complex date}}'s ''before'' option
*{{P|1319}} and {{P|1326}} maps to {{tl|Complex date}}'s ''between'' option
*{{P|1480}} with following items: {{Item|5727902}}, {{Item|Q56644435}}, {{Item|Q18122778}}, {{Item|Q30230067}} maps to {{tl|Complex date}}'s ''certainty'' parameter with corresponding value <small>(introduced in September 2018; ''circa'' was possible as an adjective already before)</small>
*{{P|4241}} with following items: {{Item|40719727}}, {{Item|Q40719748}}, {{Item|Q40719766}}, {{Item|Q40690303}}, {{Item|Q40719649}}, {{Item|Q40719662}}, {{Item|Q40719674}}, {{Item|Q40720559}}, {{Item|Q40720564}}, {{Item|Q40720568}}, {{Item|Q40720553}}, {{Item|Q40719687}}, {{Item|Q40719707}}, {{Item|Q5727902}} maps to {{tl|Complex date}} with corresponding option

===Calling from templates===
<code><nowiki>{{#invoke:Wikidata date|date|item=Q5600|property=P569|lang=en}}</nowiki></code>

;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.
Anonymous user

Navigation menu