Changes
Jump to navigation
Jump to search
Module:Complex date/doc (view source)
Revision as of 00:46, 7 November 2018
, 00:46, 7 November 2018no edit summary
{{Module rating|release}}{{Module rating|protected}}
This module is intended for processing of date strings. It is used by:
*{{tl|Complex date}}
*{{tl|Other date}}
*{{tl|Era}}
*{{tl|Circa}}
*{{tl|Season}}
==Complex date==
This function is the engine behind {{tl|Complex date}}. Please see that template for full documentation
====Usage:====
:should not be used directly but only through {{tl|Other date}} and other templates
:<code><nowiki>{{#invoke:Complex_date|complex_date|adj1=|date1=|era1=|precision1=|conj=-|adj2=|date2=|era2=|precision2=|lang=}}</nowiki></code>
or
:<code><nowiki>{{#invoke:Complex_date|complex_date|1=|2=|3=|era=|lang=}}</nowiki></code>
====Parameters (simple syntax):====
;1
:option. See {{tl|Other date}}
;2
:date #1
;3
:date #2
====Parameters (advanced syntax):====
;conj
: in case the link between the two dates: "-" (from-until), between, or, and (see {{tl|Complex date}})
;adj1, adj2
: adjectives and prepositions used to describe single date. Possible values: ''early'', ''mid'', ''late'', ''spring, summer, fall, winter, 1st half, 2nd half, 1st quarter, 2nd quarter, 3rd quarter, 4th quarter'', etc. used for describing which part of date1 and date2 are involved (see {{tl|Complex date}})
;date1, date2
: the dates involved. Format: Number or whatever {{tl|ISOdate}} takes.
;precision1, precision1
: usually ''year'' or more precise (default), but can also be ''decade'', ''century'' or ''millennium'', then the dates involved are centuries or millennia rather than specific dates
;era1, era2
: the eras that those dates are from (see {{tl|Complex date}}) If parameter <code>era</code> is present, it overrides these two parameters.
The internationalization of the date formats can be found at [[Module:I18n/complex date]]
==See Also==
{{collapse|title=Modules related to internationalization (i18n) of dates|1={{DateRelatedModules}}}}
This module is intended for processing of date strings. It is used by:
*{{tl|Complex date}}
*{{tl|Other date}}
*{{tl|Era}}
*{{tl|Circa}}
*{{tl|Season}}
==Complex date==
This function is the engine behind {{tl|Complex date}}. Please see that template for full documentation
====Usage:====
:should not be used directly but only through {{tl|Other date}} and other templates
:<code><nowiki>{{#invoke:Complex_date|complex_date|adj1=|date1=|era1=|precision1=|conj=-|adj2=|date2=|era2=|precision2=|lang=}}</nowiki></code>
or
:<code><nowiki>{{#invoke:Complex_date|complex_date|1=|2=|3=|era=|lang=}}</nowiki></code>
====Parameters (simple syntax):====
;1
:option. See {{tl|Other date}}
;2
:date #1
;3
:date #2
====Parameters (advanced syntax):====
;conj
: in case the link between the two dates: "-" (from-until), between, or, and (see {{tl|Complex date}})
;adj1, adj2
: adjectives and prepositions used to describe single date. Possible values: ''early'', ''mid'', ''late'', ''spring, summer, fall, winter, 1st half, 2nd half, 1st quarter, 2nd quarter, 3rd quarter, 4th quarter'', etc. used for describing which part of date1 and date2 are involved (see {{tl|Complex date}})
;date1, date2
: the dates involved. Format: Number or whatever {{tl|ISOdate}} takes.
;precision1, precision1
: usually ''year'' or more precise (default), but can also be ''decade'', ''century'' or ''millennium'', then the dates involved are centuries or millennia rather than specific dates
;era1, era2
: the eras that those dates are from (see {{tl|Complex date}}) If parameter <code>era</code> is present, it overrides these two parameters.
The internationalization of the date formats can be found at [[Module:I18n/complex date]]
==See Also==
{{collapse|title=Modules related to internationalization (i18n) of dates|1={{DateRelatedModules}}}}