Template:Other date/doc: Difference between revisions
Template page
More actions
No edit summary |
Prefix language interwiki links with w: |
||
| (80 intermediate revisions by 28 users not shown) | |||
| Line 1: | Line 1: | ||
{{Intricate template}} | |||
{{Lua|Module:Complex date}} | |||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
|1d= | |1label-en=type | ||
|1d-en=Type of date notation. See examples below for list of allowed options. Pages using incorrect option will be added to [[:Category:Pages using Complex date template with incorrect parameter]]. | |||
|1d-td-en=Type of date notation. See examples on the template's page for list of allowed options. | |||
|1type=line | |||
|1stat=required | |1stat=required | ||
|2=2 | |2=2 | ||
|2d= | |2label-en=date 1 | ||
|2d-en=A date in [[:w:ISO 8601|ISO 8601]] format "YYYY-MM-DD", or "YYYY-MM", or "YYYY", e.g. "2006-01-15" for "15 January 2006" or a number for centuries and millennia. | |||
|2d-td-en=A date in ISO 8601 format "YYYY-MM-DD", or "YYYY-MM", or "YYYY", e.g. "2006-01-15" for "15 January 2006" or a number for centuries and millennia. | |||
|2type=line | |||
|2stat=required | |||
|3=3 | |3=3 | ||
|3d= | |3label-en=date 2 | ||
|3d-en=Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details. | |||
|3type=line | |||
|3stat=optional- | |3stat=optional- | ||
|4= | |||
| | |4=era | ||
| | |4label-en=era | ||
|4d-en=<nowiki /> | |||
* for dates before birth of [[:w:Jesus|Christ]] use ''BC'' (''Before Christ'') or ''BCE'' (''Before [[:w:Common Era|Common Era]]'') | |||
* for dates after birth of [[:w:Jesus|Christ]] use ''CE'' ([[:w:Common Era|Common Era]]) or ''AD'' ([[:w:Anno Domini|Anno Domini]]) (if you would like era to be specified) | |||
* use ''BP'' for [[:w:Before Present|Before Present]] years | |||
* use ''AH'' for dates in [[:w:Islamic calendar|Islamic calendar]] | |||
|4d-td-en=Era: BC (Before Christ), BCE (Before Common Era), CE (Common Era), AD (Anno Domini), BP (Before Present) or AH (Anno Hegirae – Islamic calendar) | |||
|4type=line | |||
|4def= | |||
|4stat=optional- | |||
|5=certainty | |||
|5label-en=certainty | |||
|5d-en=Certainty of the statement. Supported values: possibly, probably, presumably and circa ("circa" can be also used as adjective). This parameter was added to allow compatibility with Wikidata's sourcing circumstances qualifier when used to describe a date. | |||
|5d-td-en=Certainty of the statement. Supported values: possibly, probably, presumably and circa ("circa" can be also used as adjective). This parameter was added to allow compatibility with Wikidata's P1480 qualifier when used to describe a date. | |||
|5type=line | |||
|5stat=optional- | |||
|6=lang | |||
|6label-en=language | |||
|6d=Language code (only needs to be provided if the language shall be fixed and independent of the user's preferences) | |||
|6type=line | |||
|6def=(language code of the user language) | |||
|6stat=optional- | |||
|name=Other date | |name=Other date | ||
|desc=This template allows to | |desc-en=This template allows translation (localization) of many non-trivial phrases related to date description. This template has similar but more limited capabilities than {{tl|Complex date}}. Please use {{tl|Complex date}} instead of nesting {{tl|Other date}} templates (calling {{tl|Other date}} with inputs being other {{tl|Other date}} templates). | ||
|desc-td-en=<nowiki>This template allows translation (localization) of many non-trivial phrases related to date description. This template has similar but more limited capabilities than {{Complex date}}. Please use {{Complex date}} instead of nesting {{Other date}} templates (calling {{Other date}} with inputs being other {{Other date}} templates).</nowiki> | |||
|namespace=all | |namespace=all | ||
|usergroup=all | |usergroup=all | ||
|usage-notes= | |usage-notes= | ||
|type=formatting | |type=formatting | ||
|example= | |example= | ||
|i18n-method= | |i18n-method= | ||
|i18n-desc= | |i18n-desc=Please note that phrases without translations into desired language will be shown in <span style="color:red">English using red font</span>, to add translations please request an edit to [[Module:I18n/complex date]] | ||
|seealso= | |seealso={{tl|Complex date}}, {{tl|Lifetime date}} | ||
|setscats= | |setscats= | ||
* [[:Category:Pages using Complex date template with incorrect parameter]] (when errors are detected) | |||
* [[:Category:Unknown date]] (when dates are unknown, see also [[Template:Unknown]]) | |||
* [[:Category:Pages using Other date template with era]] | |||
|lines=one | |lines=one | ||
|shorthand= | |shorthand= | ||
|relieson= | |relieson= | ||
* [[Module:Complex date]] | |||
|useTemplateData=1 | |||
}} | }} | ||
== Examples == | |||
{{Other date/examples}} | |||
<includeonly> | |||
[[Category:Time, date and calendar templates|{{PAGENAME}}]] | |||
[[Category:User interface language dependent templates|{{PAGENAME}}]] | |||
[[Category:Lua-based templates|{{PAGENAME}}]] | |||
</includeonly> | |||