跳转到内容
切換選單
  • 8 篇條目
  • 75 個檔案
  • 7 位使用者
  • 3.7萬 次編輯
Neodyland Wiki
切換偏好設定選單
切換個人選單
尚未登入
若您做出任何編輯,會公開您的 IP 位址。

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
中期
Cookies 幫助我們給予服務內容。依您有使用我們的服務,代表您同意我們使用 cookies。