跳转到内容
打开/关闭菜单
  • 8 条目
  • 75 文件
  • 7 用户
  • 3.7万 编辑
Neodyland Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:Other date

模板页面
模板文档[ 查看 · 编辑 · 历史 · 清除缓存 ]
This documentation is transcluded from Template:Other date/doc.

(本说明文件的该部分只有有限数量的语言版本。)

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).

本模板自动设置以下分类:

用法

{{Other date |1= |2= }}

模板参数

参数描述默认值状态
1typeType 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.empty必需
2date 1A 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.empty必需
3date 2Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details.empty可选
eraera empty可选
certaintycertaintyCertainty 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.empty可选
langlanguageLanguage code (only needs to be provided if the language shall be fixed and independent of the user's preferences)(language code of the user language)可选
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

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).

模板参数[编辑模板数据]

此模板首选参数不换行的行内格式。

参数描述类型状态
type1

Type of date notation. See examples on the template's page for list of allowed options.

单行文本必需
date 12

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.

单行文本必需
date 23

Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details.

单行文本可选
certaintycertainty

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.

单行文本可选
eraera

Era: BC (Before Christ), BCE (Before Common Era), CE (Common Era), AD (Anno Domini), BP (Before Present) or AH (Anno Hegirae – Islamic calendar)

单行文本可选
languagelang

Language code (only needs to be provided if the language shall be fixed and independent of the user's preferences)

默认值
(language code of the user language)
单行文本可选

附加信息

本模板可以用于以下名字空间: 所有名字空间

本模板可以被以下用户组使用: 所有用户

使用的模板:

另见

(本说明文件的该部分只有有限数量的语言版本。)

== 本地化 ==

(本说明文件的该部分只有有限数量的语言版本。)

Please note that phrases without translations into desired language will be shown in English using red font, to add translations please request an edit to Module:I18n/complex date

Examples

date notations with two dates

{{{1}}} parameter Example Code Output
-
from-until
{{other date|-|1999|2000}}
{{other date|-|1999-01|2000-02}}
{{other date|-|1999-01-01|2000-02-01}}

从1999年到2000年
从1999年1月到2000年2月
从1999年1月1日到2000年2月1日

? {{other date|?|1800|1825}}

未知日期[1]

between {{other date|between|1999|2000}}
{{other date|between|1999-02|2000-03}}
{{other date|between|1999-02-01|2000-03-01}}

在1999年到2000年之间
在1999年2月到2000年3月之间
在1999年2月1日到2000年3月1日之间

~
ca
circa
{{other date|~|1999|2000}}
{{other date|ca|1999-05|2000-06}}
{{other date|circa|1999-05-01|2000-06-1}}

约1999年~2000年间
约1999年5月~2000年6月间
约1999年5月1日~2000年6月1日间

or {{other date|or|1999|2000}}
{{other date|or|1999-06|2000-07}}
{{other date|or|1999-06-01|2000-07-1}}

1999年或2000年
1999年6月或2000年7月
1999年6月1日或2000年7月1日

and
&
{{other date|&|1999|2000}}
{{other date|and|1999-06|2000-07}}
{{other date|and|1999-06-01|2000-07-01}}

1999年和2000年
1999年6月和2000年7月
1999年6月1日和2000年7月1日

Julian {{other date|Julian|1865-01-19|1865-01-07}}

1865年1月19日(格里历1865年1月7日)

Islamic {{other date|islamic|1486|892}}
{{other date|islamic|1486}}
公元1486年 (伊斯兰历892年)
公元1486年 (伊斯兰历891年)
era parameter {{other date|or|985|986|era=BC}}

公元前985年或986年

date notations with single date

Date notations with single date can use the second date for era, like BC or AD.

{{{1}}} parameter Example Code Output Example Code with era Output with era
<
b
before
{{other date|<|2000}}
{{other date|b|2000-03}}
{{other date|before|2000-03-01}}
在2000年之前
date QS:P,+2000-00-00T00:00:00Z/7,P1326,+2000-00-00T00:00:00Z/9

在2000年3月之前
date QS:P,+2000-03-00T00:00:00Z/7,P1326,+2000-03-00T00:00:00Z/10

在2000年3月1日之前
date QS:P,+2000-03-01T00:00:00Z/7,P1326,+2000-03-01T00:00:00Z/11
{{other date|<|99|era=BC}} 公元前在99年之前
>
a
after
{{other date|>|1999}}
{{other date|a|1999-04}}
{{other date|after|1999-04-01}}
在1999年之后
date QS:P,+1999-00-00T00:00:00Z/7,P1319,+1999-00-00T00:00:00Z/9

在1999年4月之后
date QS:P,+1999-04-00T00:00:00Z/7,P1319,+1999-04-00T00:00:00Z/10

在1999年4月1日之后
date QS:P,+1999-04-01T00:00:00Z/7,P1319,+1999-04-01T00:00:00Z/11
{{other date|>|99|era=BC}} 公元前在99年之后
by {{other date|by|1999}}
{{other date|by|1999-04}}
{{other date|by|1999-04-01}}
1999年前后
date QS:P,+1999-00-00T00:00:00Z/7,P1326,+1999-00-00T00:00:00Z/9

1999年4月前后
date QS:P,+1999-04-00T00:00:00Z/7,P1326,+1999-04-00T00:00:00Z/10

1999年4月1日前后
date QS:P,+1999-04-01T00:00:00Z/7,P1326,+1999-04-01T00:00:00Z/11
{{other date|by|99|era=BC}} 公元前99年前后
from {{other date|from|1999}}
{{other date|from|1999-04}}
{{other date|from|1999-04-01}}
自1999年
date QS:P,+1999-00-00T00:00:00Z/7,P580,+1999-00-00T00:00:00Z/9

自1999年4月
date QS:P,+1999-04-00T00:00:00Z/7,P580,+1999-04-00T00:00:00Z/10

自1999年4月1日
date QS:P,+1999-04-01T00:00:00Z/7,P580,+1999-04-01T00:00:00Z/11
{{other date|from|99|era=BC}} 公元前自99年
until {{other date|until|1999}}
{{other date|until|1999-04}}
{{other date|until|1999-04-01}}
直到1999年
date QS:P,+1999-00-00T00:00:00Z/7,P582,+1999-00-00T00:00:00Z/9

直到1999年4月
date QS:P,+1999-04-00T00:00:00Z/7,P582,+1999-04-00T00:00:00Z/10

直到1999年4月1日
date QS:P,+1999-04-01T00:00:00Z/7,P582,+1999-04-01T00:00:00Z/11
{{other date|until|99|era=BC}} 公元前直到99年
~
ca
circa
{{other date|~|1999}}
{{other date|ca|1999-05}}
{{other date|circa|1999-05-01}}
约1999年
date QS:P,+1999-00-00T00:00:00Z/9,P1480,Q5727902

约1999年5月
date QS:P,+1999-05-00T00:00:00Z/10,P1480,Q5727902

约1999年5月1日
date QS:P,+1999-05-01T00:00:00Z/11,P1480,Q5727902
{{other date|~|99|era=BC}} 公元前约99年
s
decade
{{other date|s|1960}}
{{other date|decade|1800}}
1960年代
date QS:P,+1960-00-00T00:00:00Z/8

1800年代
date QS:P,+1800-00-00T00:00:00Z/8
{{other date|s|960|era=BCE}} 公元前960年代
date QS:P,-960-00-00T00:00:00Z/8
century {{other date|century|1}}
{{other date|century|20}}
1世纪
date QS:P,+050-00-00T00:00:00Z/7

20世纪
date QS:P,+1950-00-00T00:00:00Z/7
{{other date|century|1|era=BC}} 公元前1世纪
date QS:P,-050-00-00T00:00:00Z/7
millennium {{other date|millennium|1}} 第1千年
date QS:P,+0500-00-00T00:00:00Z/6
{{other date|millennium|2|era=BC}} 公元前第2千年
date QS:P,-1500-00-00T00:00:00Z/6
turn of the decade {{other date|turn of the decade|1920}}
{{other date|turn of the decade|1800}}
1910年代末1920年代初
1790年代末1800年代初
{{other date|turn of the decade|920|era=BC}} 公元前920年代末910年代初
turn of the century {{other date|turn of the century|2}}
{{other date|turn of the century|20}}
1世纪末第2世纪初
19世纪末第20世纪初
{{other date|turn of the century|2|era=BC}} 公元前2世纪末第1世纪初
turn of the year {{other date|turn of the year|1992}} 1991年年末1992年年初 {{other date|turn of the year|922|era=BC}} 公元前922年年末921年年初
spring {{other date|spring|1999}} 1999年年春季
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720559
{{other date|spring|99|era=AD}} 公元99年年春季
summer {{other date|summer|1999}} 1999年年夏季
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720564
{{other date|summer|99|era=BC}} 公元前99年年夏季
fall
autumn
{{other date|fall|1999}}
{{other date|autumn|1999}}
1999年年秋季
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720568

1999年年秋季
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720568
{{other date|fall|99|era=AD}} 公元99年年秋季
winter {{other date|winter|1999}} 1999年年冬季
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40720553
{{other date|winter|99|era=BC}} 公元前99年年冬季
beginning
early
{{other date|early|1999-08}}
{{other date|beginning|1999}}
1999年8月早期
date QS:P,+1999-08-00T00:00:00Z/10,P4241,Q40719727

1999年早期
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719727
{{other date|early|99|era=BC}} 公元前99年早期
mid
middle
{{other date|mid|1999-10}}
{{other date|middle|1999}}
1999年10月中期
date QS:P,+1999-10-00T00:00:00Z/10,P4241,Q40719748

1999年中期
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719748
{{other date|mid|99|era=BC}} 公元前99年中期
end
late
{{other date|end|1999-11}}
{{other date|late|1999}}
1999年11月晚期
date QS:P,+1999-11-00T00:00:00Z/10,P4241,Q40719766

1999年晚期
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719766
{{other date|end|99|era=BCE}} 公元前99年晚期
firsthalf
1half
1sthalf
first half
1st half
{{other date|firsthalf|1999-11}}
{{other date|1half|1999}}
1999年11月上半期
date QS:P,+1999-11-00T00:00:00Z/10,P4241,Q40719687

1999年上半期
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719687
{{other date|firsthalf|99|era=BC}} 公元前99年上半期
secondhalf
2half
2ndhalf
second half
2nd half
{{other date|secondhalf|1999-11}}
{{other date|2half|1999}}
1999年11月下半期
date QS:P,+1999-11-00T00:00:00Z/10,P4241,Q40719707

1999年下半期
date QS:P,+1999-00-00T00:00:00Z/9,P4241,Q40719707
{{other date|secondhalf|99|era=BCE}} 公元前99年下半期
1quarter
quarter1
1stquarter
1st quarter
{{other date|1quarter|1815-09}}
{{other date|1quarter|1815}}
1815年9月第一季度
date QS:P,+1815-09-00T00:00:00Z/10,P4241,Q40690303

1815年第一季度
date QS:P,+1815-00-00T00:00:00Z/9,P4241,Q40690303
{{other date|1quarter|99|era=BC}} 公元前99年第一季度
2quarter
quarter2
2ndquarter
2nd quarter
{{other date|2quarter|1815-09}}
{{other date|2quarter|1815}}
1815年9月第二季度
date QS:P,+1815-09-00T00:00:00Z/10,P4241,Q40719649

1815年第二季度
date QS:P,+1815-00-00T00:00:00Z/9,P4241,Q40719649
{{other date|2quarter|99|era=BC}} 公元前99年第二季度
3quarter
quarter3
3rdquarter
3rd quarter
{{other date|3quarter|1815-09}}
{{other date|3quarter|1815}}
1815年9月第三季度
date QS:P,+1815-09-00T00:00:00Z/10,P4241,Q40719662

1815年第三季度
date QS:P,+1815-00-00T00:00:00Z/9,P4241,Q40719662
{{other date|3quarter|99|era=BC}} 公元前99年第三季度
4quarter
quarter4
4thquarter
4th quarter
{{other date|4quarter|1815-09}}
{{other date|4quarter|1815}}
1815年9月第四季度
date QS:P,+1815-09-00T00:00:00Z/10,P4241,Q40719674

1815年第四季度
date QS:P,+1815-00-00T00:00:00Z/9,P4241,Q40719674
{{other date|4quarter|99|era=BC}} 公元前99年第四季度
BC
BCE
{{other date|BC|44-03-15}}
{{other date|BCE|44}}
公元前44年3月15日
公元前44年
AD
CE
{{other date|AD|944-03}}
{{other date|CE|944}}
公元944年3月
公元944年
? {{other date|?|2015}} 未知日期[1] {{other date|?|2015|era=BC}} 公元前未知日期[1]

date notations without date

{{{1}}} parameter Example Code Output Example Code with era Output with era
?
unknown
{{other date|?}}
{{other date|unknown}}
未知日期
未知日期
{{other date|?||era=BC}} 公元前未知日期
year unknown {{other date|year unknown}} 年份未知 {{other date|year unknown|era=BC}} 公元前年份未知

compound constructions

Example Code Output Example Code with era Output with era
{{Other date|2half|{{Other date|century|15}}}} 15世纪
date QS:P,+1450-00-00T00:00:00Z/7
下半期
{{Other date|2half|{{Other date|century|15}}|era=BC}} 公元前15世纪
date QS:P,+1450-00-00T00:00:00Z/7
下半期
{{otherdate|mid|{{otherdate|decade|1980}}}} 1980年代
date QS:P,+1980-00-00T00:00:00Z/8
中期
{{otherdate|mid|{{otherdate|decade|1980}}|era=BC}} 公元前1980年代
date QS:P,+1980-00-00T00:00:00Z/8
中期
我们为您提供服务需要使用Cookie。使用我们的服务即表示您同意我们使用Cookie。