Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Other date/doc: Difference between revisions

Template page
mNo edit summary
Prefix language interwiki links with w:
 
(79 intermediate revisions by 28 users not shown)
Line 1: Line 1:
{{Intricate template}}
{{Lua|Module:Complex date}}
{{TemplateBox
{{TemplateBox
|1=1
|1=1
|1d=type of date notation
|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=depends on <nowiki>{{{1}}}</nowiki>
|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=depends on <nowiki>{{{1}}}</nowiki>
|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
 
|4d=language code (only needs to be provided if the language shall be fixed and independant from the user's preferences)
|4=era
|4def=value of <nowiki>{{int:Lang}}</nowiki>
|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 specify a range of non-trivial date notations in a format that is localizable.
|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=
Possible values for <nowiki>{{{1}}}</nowiki>:
* "<tt>-</tt>": between <nowiki>{{{2}}}</nowiki> and <nowiki>{{{3}}}</nowiki> (<nowiki>{{{2}}}</nowiki> and <nowiki>{{{3}}}</nowiki> can be ISO 8601 dates)
* "<tt>s</tt>": decade (<nowiki>{{{2}}}</nowiki>s), <nowiki>{{{2}}}</nowiki> must be a four-digit year (starting year of the decade)
* "<tt>century</tt>": century (<nowiki>{{{2}}}</nowiki>th century), <nowiki>{{{2}}}</nowiki> must be a two-digit number
* "<tt>ca</tt>": circa <nowiki>{{{2}}}</nowiki>
* "<tt>season</tt>": season <nowiki>{{{2}}}</nowiki> of the year <nowiki>{{{3}}}</nowiki> (can be "summer", "fall", "spring", "winter", <nowiki>{{{3}}}</nowiki> must be a four-digit year)
* "<tt>b</tt>": before <nowiki>{{{2}}}</nowiki> (<nowiki>{{{2}}}</nowiki> can be an ISO 8601 date)
* "<tt>a</tt>": after <nowiki>{{{2}}}</nowiki> (<nowiki>{{{2}}}</nowiki> can be an ISO 8601 date)
|type=formatting
|type=formatting
|example=
|example=
|i18n-method=switch
|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={{tl|ISOdate}}, {{tl|LangSwitch}}
|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>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.