Template:Circa WD

From Wikidata
Jump to navigation Jump to search
Documentation icon Template documentation[view · edit · history · purge ]

Description

[edit]

Function to build a WD date string (the property given as parameter 1) and its qualifiers:

Dates may contain unknown value or a different expressed date precision. When the dates are expressed in the level of detail appropriate for the concept they reflect (day, date of birth / death, events, etc. / year, by a date of publication or creation of a work, etc. / decade or century, for a historical period, etc ..) there is no need to use these qualifiers. However, when it is not known precisely but with a certain approximation, it is when these qualifiers help us to adjust the value inaccurate.

The managed values ​​are
* parts, such as beginning of (Q40719727), middle of (Q40719748), and end of (Q40719766)
* halves, typically applicable to years, decades, or centuries first half (Q40719687) and second half (Q40719707)
* quarts, typically applicable to centuries or millennia: first quarter (Q40690303), second quarter (Q40719649), third quarter (Q40719662), and fourth quarter (Q40719674)
  • In the case of latest date (P1326) and earliest date (P1319) it is advisable that their value be expressed with precision of year or greater, since it would not make sense to use generic precision in a qualifier that aims to make specific.

Operation details:

  • The use of these qualifiers, as explained above, should not be used with high accuracy dates.
  • P1480 and P4241 qualifiers may co-exist together, but will not be displayed if data = unknown value .
  • Qualifiers latest date (P1326) and earliest date (P1319) may appear simultaneously or separately. If both appear, the value of data is not displayed
    • When using P1326 and / or P1319 the value of data may be unknown value or a specific value, such as century or decade. In the latter case, care must be taken to ensure that the date value is not inconsistent with the content of the qualifiers. Example : date = decade 1920 + before 1915 or after 1925
    • It makes no sense to use P1326 and P1319 to indicate the first and last year of the period that indicates the date. Example : date = decade 1920 + before 1929 + after 1920.
Multivalued Dates

Usually date properties have only one value, but in certain circumstances there are multivalued values ​​in these properties. The function can treat all values ​​that have a property (between 1 and n). In this case, the treatment of the qualifiers is made independent by each element of the list of values ​​with the qualifiers that each has. When you want to force only one value (the preferred or the first one in the list), use list = false .

Syntax

[edit]
 {{circa WD | Pnnn | item = Qnnnnnn | formatting = | separator = | conjunction = | list =}}
  • Pnnn = is the property of the date to be retrieved. It is positional.
  • item = WD item code to work on. Optional, if not reported, applies to the current article.
  • formatting = Optional. It allows you to indicate the format that you want to apply to the retrieved date (whether or not you have any of the qualifiers treated). See possible values ​​in Module:Wikidades/doc
  • separator = Optional. Separator to be applied between values, in case the property is multivalued. By default it is a comma.
  • conjunction = Optional. Separator between the last two values, if the property is multivalued. By default it is "and".
  • list = Optional. It can be list = false to indicate that it only deals with the first value in the list, list = firstrank to get the list of values ​​with the first highest rank. The default is list = true, which will handle all values of statement.

Examples of how to load WD

[edit]
Result code in WD. "date" refers to any date property (P569, P570, P585, etc.) Example
circa 495 BC date = 495 ECB +

sourcing circumstances (P1480) = circa (Q5727902)

date of death (P570) of Pythagoras (Q10261)
presumably second half of the 20th century date = 20. century +

sourcing circumstances (P1480) = presumably (Q18122778) +

refine date (P4241) = second half (Q40719707)

date of death (P570) of Ramonzuelo (Q2887662)
in discussion June 15, 967 date = June 15, 967 +

sourcing circumstances (P1480) = disputed (Q18912752)

date of death (P570) of Boleslaus I, Duke of Bohemia (Q360112)
then 741 data = unknown value +

earliest date (P1319) = 741

date of death (P570) of Swanachild (Q291747)
before the 140's data = unknown value +

latest date (P1326) = 140s

date of birth (P569) of Pius I (Q83198)
eleventh century, before 1030 date = 11. century +

latest date (P1326) = 1030

date of death (P570) of Tigrídia d'Oña (Q11951832)
between 586 and 569 BC data = unknown value +

earliest date (P1319) = 586 ECB + latest date (P1326) = 569 ECB

date of birth (P569) of Pythagoras (Q10261)
beginning of the eleventh century date = 11. century +

refine date (P4241) = beginning of (Q40719727)

date of birth (P569) of Paraskeva of the Balkans (Q6967370)
mid-18th century date = 18. century +

refine date (P4241) = middle of (Q40719748)

date of birth (P569) of Zlata of Meglen (Q2512266)
end April 2011 date = April 2011 +

refine date (P4241) = end of (Q40719766)

inception (P571) of Hoegaarden 0,0 (Q2198961)
first half decade of 1900 date = 1900s +

refine date (P4241) = first half (Q40719687)

floruit (P1317) of Monogrammist E. D. (Q40912154)