Template:Other date/testcases

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search


date notations with two dates

[edit]
{{{1}}} parameter Example Code Output
- {{other date/sandbox|-|1999|2000}}
{{other date/sandbox|-|1999-01|2000-02}}
{{other date/sandbox|-|1999-01-01|2000-02-01}}

from 1999 until 2000
from January 1999 until February 2000
from 1 January 1999 until 1 February 2000

between {{other date/sandbox|between|1999|2000}}
{{other date/sandbox|between|1999-02|2000-03}}
{{other date/sandbox|between|1999-02-01|2000-03-01}}
between 1999 and 2000
between February 1999 and March 2000
between 1 February 1999 and 1 March 2000
~
ca
circa
{{other date/sandbox|~|1999|2000}}
{{other date/sandbox|ca|1999-05|2000-06}}
{{other date/sandbox|circa|1999-05-01|2000-06-1}}
between circa 1999 and circa 2000
between circa May 1999 and circa June 2000
between circa 1 May 1999 and circa 1 June 2000
century {{other date/sandbox|century|3era=BC}}
{{other date/sandbox|century|18}}
3rd century BC
date QS:P,-250-00-00T00:00:00Z/7

18th century
date QS:P, 1750-00-00T00:00:00Z/7
or {{other date/sandbox|or|1999|2000}}
{{other date/sandbox|or|1999-06|2000-07}}
{{other date/sandbox|or|1999-06-01|2000-07-1}}
1999 or 2000
June 1999 or July 2000
1 June 1999 or 1 July 2000
and
&
{{other date/sandbox|&|1999|2000}}
{{other date/sandbox|and|1999-06|2000-07}}
{{other date/sandbox|and|1999-06-01|2000-07-01}}
1999 and 2000
June 1999 and July 2000
1 June 1999 and 1 July 2000
Julian {{other date/sandbox|Julian|1865-01-19|1865-01-07}} 19 January 1865 (7 January 1865 in Julian calendar)
Islamic {{other date/sandbox|islamic|1486|892}}
{{other date/sandbox|islamic|1486}}
1486 AD (892 AH)
1486 AD (891 AH)
era parameter {{other date/sandbox|or|999|1000|era=BC}} 999 or 1000 BC

date notations with single date

[edit]
{{{1}}} parameter Example Code Output Example Code with era Output with era
<
b
before
{{other date/sandbox|<|2000}}
{{other date/sandbox|b|2000-03}}
{{other date/sandbox|before|2000-03-01}}
before 2000
date QS:P, 2000-00-00T00:00:00Z/7,P1326, 2000-00-00T00:00:00Z/9

before March 2000
date QS:P, 2000-03-00T00:00:00Z/7,P1326, 2000-03-00T00:00:00Z/10

before 1 March 2000
date QS:P, 2000-03-01T00:00:00Z/7,P1326, 2000-03-01T00:00:00Z/11
{{other date/sandbox|<|99|era=BC}} before 99 BC
>
a
after
{{other date/sandbox|>|1999}}
{{other date/sandbox|a|1999-04}}
{{other date/sandbox|after|1999-04-01}}
after 1999
date QS:P, 1999-00-00T00:00:00Z/7,P1319, 1999-00-00T00:00:00Z/9

after April 1999
date QS:P, 1999-04-00T00:00:00Z/7,P1319, 1999-04-00T00:00:00Z/10

after 1 April 1999
date QS:P, 1999-04-01T00:00:00Z/7,P1319, 1999-04-01T00:00:00Z/11
{{other date/sandbox|>|99|era=BC}} after 99 BC
by {{other date/sandbox|by|1999}}
{{other date/sandbox|by|1999-04}}
{{other date/sandbox|by|1999-04-01}}
by 1999
date QS:P, 1999-00-00T00:00:00Z/7,P1326, 1999-00-00T00:00:00Z/9

by April 1999
date QS:P, 1999-04-00T00:00:00Z/7,P1326, 1999-04-00T00:00:00Z/10

by 1 April 1999
date QS:P, 1999-04-01T00:00:00Z/7,P1326, 1999-04-01T00:00:00Z/11
{{other date/sandbox|by|99|era=BC}} by 99 BC
from {{other date/sandbox|from|1999}}
{{other date/sandbox|from|1999-04}}
{{other date/sandbox|from|1999-04-01}}
from 1999
date QS:P, 1999-00-00T00:00:00Z/7,P580, 1999-00-00T00:00:00Z/9

from April 1999
date QS:P, 1999-04-00T00:00:00Z/7,P580, 1999-04-00T00:00:00Z/10

from 1 April 1999
date QS:P, 1999-04-01T00:00:00Z/7,P580, 1999-04-01T00:00:00Z/11
{{other date/sandbox|from|99|era=BC}} from 99 BC
~
ca
circa
{{other date/sandbox|~|1999}}
{{other date/sandbox|ca|1999-05}}
{{other date/sandbox|circa|1999-05-01}}
circa 1999
date QS:P, 1999-00-00T00:00:00Z/9,P1480,Q5727902

circa May 1999
date QS:P, 1999-05-00T00:00:00Z/10,P1480,Q5727902

circa 1 May 1999
date QS:P, 1999-05-01T00:00:00Z/11,P1480,Q5727902
{{other date/sandbox|~|99|era=BC}} circa 99 BC
s
decade
{{other date/sandbox|s|1960}}
{{other date/sandbox|s|1800}}
1960s
date QS:P, 1960-00-00T00:00:00Z/8

1800s
date QS:P, 1800-00-00T00:00:00Z/8
{{other date/sandbox|s|960|era=BCE}} 960s BC
date QS:P,-960-00-00T00:00:00Z/8
century {{other date/sandbox|century|1}}
{{other date/sandbox|century|20}}
1st century
date QS:P, 050-00-00T00:00:00Z/7

20th century
date QS:P, 1950-00-00T00:00:00Z/7
{{other date/sandbox|century|1|era=BC}} 1st century BC
date QS:P,-050-00-00T00:00:00Z/7
turn of the century {{other date/sandbox|turn of the century|19}} turn of the 18/19th century {{other date/sandbox|turn of the century|9|era=BC}} turn of the 9/8th century BC
turn of the decade {{other date/sandbox|turn of the decade|1790}}
{{other date/sandbox|turn of the decade|1800}}
{{other date/sandbox|turn of the decade|1810}}
late 1780s and early 1790s
late 1790s and early 1800s
late 1800s and early 1810s
{{other date/sandbox|turn of the decade|990|era=BC}}
{{other date/sandbox|turn of the decade|1000|era=BC}}
{{other date/sandbox|turn of the decade|1010|era=BC}}
late 990s and early 980s BC
late 1000s and early 990s BC
late 1010s and early 1000s BC
turn of the year {{other date/sandbox|turn of the year|1992}} late 1991 and early 1992 {{other date/sandbox|turn of the year|922|era=BC}} late 922 and early 921 BC
spring {{other date/sandbox|spring|1999}} Spring 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40720559
{{other date/sandbox|spring|99|era=AD}} Spring 99 AD
summer {{other date/sandbox|summer|1999}} Summer 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40720564
{{other date/sandbox|summer||99|era=BC}} Summer 99 BC
fall
autumn
{{other date/sandbox|fall|1999}}
{{other date/sandbox|autumn|1999}}
Autumn 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40720568

Autumn 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40720568
{{other date/sandbox|fall|99|era=AD}} Autumn 99 AD
winter {{other date/sandbox|winter|1999}} Winter 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40720553
{{other date/sandbox|winter|99|era=BC}} Winter 99 BC
beginning
early
{{other date/sandbox|early|1999-08}}
{{other date/sandbox|beginning|1999}}
early August 1999
date QS:P, 1999-08-00T00:00:00Z/10,P4241,Q40719727

early 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40719727
{{other date/sandbox|early|99|era=BC}} early 99 BC
mid
middle
{{other date/sandbox|mid|1999-10}}
{{other date/sandbox|middle|1999}}
mid October 1999
date QS:P, 1999-10-00T00:00:00Z/10,P4241,Q40719748

mid 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40719748
{{other date/sandbox|mid|99|era=BC}} mid 99 BC
end
late
{{other date/sandbox|end|1999-11}}
{{other date/sandbox|late|1999}}
late November 1999
date QS:P, 1999-11-00T00:00:00Z/10,P4241,Q40719766

late 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40719766
{{other date/sandbox|end|99|era=BCE}} late 99 BC
firsthalf
1half
1sthalf
{{other date/sandbox|firsthalf|1999-11}}
{{other date/sandbox|1half|1999}}
first half of November 1999
date QS:P, 1999-11-00T00:00:00Z/10,P4241,Q40719687

first half of 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40719687
{{other date/sandbox|firsthalf|99|era=BC}} first half of 99 BC
secondhalf
2half
2ndhalf
{{other date/sandbox|secondhalf|1999-11}}
{{other date/sandbox|2half|1999}}
second half of November 1999
date QS:P, 1999-11-00T00:00:00Z/10,P4241,Q40719707

second half of 1999
date QS:P, 1999-00-00T00:00:00Z/9,P4241,Q40719707
{{other date/sandbox|secondhalf|99|era=BCE}} second half of 99 BC
BC
BCE
{{other date/sandbox|era=BC|44-03-15}}
{{other date/sandbox|BC|44}}
15 March 44 BC
44 BC
CE
AD
{{other date/sandbox|AD|944-03}}
{{other date/sandbox|CE|944}}
March 944 AD
944 AD
?
unknown
{{other date/sandbox|?}}
{{other date/sandbox|unknown}}
Unknown date
Unknown date
{{other date/sandbox|?|era=BC}} Unknown date BC
year unknown {{other date/sandbox|year unknown}} year unknown {{other date/sandbox|year unknown|era=BC}} year unknown BC

More test

[edit]
Code {{Other date/sandbox}} output {{Other date}} output
{{other date/sandbox|adj1=early|date1=1999-08}} early August 1999
date QS:P, 1999-08-00T00:00:00Z/10,P4241,Q40719727
{{other date/sandbox|adj1=early|precision1=century|date1=1}} early 1st century
date QS:P, 050-00-00T00:00:00Z/7,P4241,Q40719727
early 1st century
date QS:P, 050-00-00T00:00:00Z/7
{{other date/sandbox|adj1=late|precision1=century|date1=1|era1=AD}} late 1st century AD
date QS:P, 050-00-00T00:00:00Z/7,P4241,Q40719766
late 1st century AD
date QS:P, 050-00-00T00:00:00Z/7
{{other date/sandbox|conj=or|adj1=late|precision1=century|date1=1|era1=AD| date2=1999 }} late 1st century AD or 1999 late 1st century AD
date QS:P, 050-00-00T00:00:00Z/7
or 1999
{{other date/sandbox|conj=and|adj1=century|date1=1| date2=1999|era1=AD }} 1st century AD and 1999 1st century AD
date QS:P, 050-00-00T00:00:00Z/7
and 1999
{{other date/sandbox|conj=between|adj1=late|precision1=century|date1=3|era1=AD| precision2=decade|date2=250|era2=AD }} between late 3rd century and 250s AD between late 3rd century
date QS:P, 250-00-00T00:00:00Z/7
and 250s AD
date QS:P, 250-00-00T00:00:00Z/8
{{other date/sandbox|conj=bad name|date1=130|date2=250}} Error in Module:Complex date: bad name is not recognized. Error in Module:Complex date: bad name is not recognized.