跳转到内容

模板:Extract/testcases

维基百科,自由的百科全书

Date

[编辑]
{{Extract|2015-11-12}}
{{Extract|2015-11-12}}
左右对比
{{Extract}}{{Extract/sandbox}}
12 November 2015 12 November 2015
{{Extract|juliandate|2451545}}
{{Extract|juliandate|2451545}}
左右对比
{{Extract}}{{Extract/sandbox}}
1 January 2000 1 January 2000
{{Extract|juliandate|julian|2451545}}
{{Extract|juliandate|julian|2451545}}
左右对比
{{Extract}}{{Extract/sandbox}}
19 December 1999 19 December 1999
{{Extract|currentdate}}
{{Extract|currentdate}}
左右对比
{{Extract}}{{Extract/sandbox}}
3 December 2024 3 December 2024
{{Extract|currentdatetime}}
{{Extract|currentdatetime}}
左右对比
{{Extract}}{{Extract/sandbox}}
01:12 3 December 2024 01:12 3 December 2024
{{Extract|julian|Feb 16, 2000|show=juliandate}}
{{Extract|julian|Feb 16, 2000|show=juliandate}}
左右对比
{{Extract}}{{Extract/sandbox}}
2451604 2451604
{{Extract|juliandate|2451604}}
{{Extract|juliandate|2451604}}
左右对比
{{Extract}}{{Extract/sandbox}}
29 February 2000 29 February 2000
{{Extract|juliandate|{{Extract|julian|16 Feb 2000|show=juliandate}}}}
{{Extract|juliandate|{{Extract|julian|16 Feb 2000|show=juliandate}}}}
左右对比
{{Extract}}{{Extract/sandbox}}
29 February 2000 29 February 2000

Add

[编辑]
{{Extract|2004-04-03|add=28d}}
{{Extract|2004-04-03|add=28d}}
左右对比
{{Extract}}{{Extract/sandbox}}
1 May 2004 1 May 2004
{{Extract|2004-04-03|add=3m 28d}}
{{Extract|2004-04-03|add=3m 28d}}
左右对比
{{Extract}}{{Extract/sandbox}}
31 July 2004 31 July 2004
{{Extract|2004-04-03|add=28d 3m}}
{{Extract|2004-04-03|add=28d 3m}}
左右对比
{{Extract}}{{Extract/sandbox}}
1 August 2004 1 August 2004
{{Extract|2004-04-03|add=-3d}}
{{Extract|2004-04-03|add=-3d}}
左右对比
{{Extract}}{{Extract/sandbox}}
31 March 2004 31 March 2004
{{Extract|2004-04-03|add=-912345d}}
{{Extract|2004-04-03|add=-912345d}}
左右对比
{{Extract}}{{Extract/sandbox}}
5 May 495 BC 5 May 495 BC
{{Extract|2004-04-03|add=250h}}
{{Extract|2004-04-03|add=250h}}
左右对比
{{Extract}}{{Extract/sandbox}}
10:00 13 April 2004 10:00 13 April 2004
{{Extract|2004-04-03|add=-2.5h}}
{{Extract|2004-04-03|add=-2.5h}}
左右对比
{{Extract}}{{Extract/sandbox}}
21:30 2 April 2004 21:30 2 April 2004
{{Extract|2004-04-03|add=-2m}}
{{Extract|2004-04-03|add=-2m}}
左右对比
{{Extract}}{{Extract/sandbox}}
3 February 2004 3 February 2004
{{Extract|2004-04-03|add=2y 3m 4d}}
{{Extract|2004-04-03|add=2y 3m 4d}}
左右对比
{{Extract}}{{Extract/sandbox}}
7 July 2006 7 July 2006
{{Extract|2004-04-03|add=2y 3m 4d}}
{{Extract|2004-04-03|add=2y 3m 4d}}
左右对比
{{Extract}}{{Extract/sandbox}}
7 July 2006 7 July 2006
{{Extract|2004-04-03|add=5.75d}}
{{Extract|2004-04-03|add=5.75d}}
左右对比
{{Extract}}{{Extract/sandbox}}
18:00 8 April 2004 18:00 8 April 2004

Fix

[编辑]
{{Extract|2001|5|31|fix=on}}
{{Extract|2001|5|31|fix=on}}
左右对比
{{Extract}}{{Extract/sandbox}}
31 May 2001 31 May 2001
{{Extract|2001|5|0|fix=on}}
{{Extract|2001|5|0|fix=on}}
左右对比
{{Extract}}{{Extract/sandbox}}
30 April 2001 30 April 2001
{{Extract|2001|5|-1|fix=on}}
{{Extract|2001|5|-1|fix=on}}
左右对比
{{Extract}}{{Extract/sandbox}}
29 April 2001 29 April 2001
{{Extract|2001|125|-1000|fix=on}}
{{Extract|2001|125|-1000|fix=on}}
左右对比
{{Extract}}{{Extract/sandbox}}
3 August 2008 3 August 2008
{{Extract|2001|0|12|fix=on}}
{{Extract|2001|0|12|fix=on}}
左右对比
{{Extract}}{{Extract/sandbox}}
12 December 2000 12 December 2000
{{Extract|2016|3|0|fix=on}}
{{Extract|2016|3|0|fix=on}}
左右对比
{{Extract}}{{Extract/sandbox}}
29 February 2016 29 February 2016
{{Extract|June 30, 2001|show=dayofyear}}
{{Extract|June 30, 2001|show=dayofyear}}
左右对比
{{Extract}}{{Extract/sandbox}}
181 181
{{Extract|2001|1|0|fix=on|add=181d|show=mdy}}
{{Extract|2001|1|0|fix=on|add=181d|show=mdy}}
左右对比
{{Extract}}{{Extract/sandbox}}
June 30, 2001 June 30, 2001

Partial

[编辑]
{{Extract|2001|5|partial=on}}
{{Extract|2001|5|partial=on}}
左右对比
{{Extract}}{{Extract/sandbox}}
May 2001 May 2001
{{Extract|2016|partial=on|show=isleapyear}}
{{Extract|2016|partial=on|show=isleapyear}}
左右对比
{{Extract}}{{Extract/sandbox}}
1 1

Show

[编辑]
{{Extract|1 Feb 2001}}
{{Extract|1 Feb 2001}}
左右对比
{{Extract}}{{Extract/sandbox}}
1 February 2001 1 February 2001
{{Extract|FEB 1 2001}}
{{Extract|FEB 1 2001}}
左右对比
{{Extract}}{{Extract/sandbox}}
1 February 2001 1 February 2001
{{Extract|2001-2-1}}
{{Extract|2001-2-1}}
左右对比
{{Extract}}{{Extract/sandbox}}
1 February 2001 1 February 2001
{{Extract|1 Feb 2001|show=format}}
{{Extract|1 Feb 2001|show=format}}
左右对比
{{Extract}}{{Extract/sandbox}}
dmy dmy
{{Extract|FEB 1 2001|show=format}}
{{Extract|FEB 1 2001|show=format}}
左右对比
{{Extract}}{{Extract/sandbox}}
mdy mdy
{{Extract|2001-2-1|show=format}}
{{Extract|2001-2-1|show=format}}
左右对比
{{Extract}}{{Extract/sandbox}}
ymd ymd
{{Extract|2001-2-29|show=format}}
{{Extract|2001-2-29|show=format}}
左右对比
{{Extract}}{{Extract/sandbox}}
error error
{{Extract|1 Feb 2001|show=mdy}}
{{Extract|1 Feb 2001|show=mdy}}
左右对比
{{Extract}}{{Extract/sandbox}}
February 1, 2001 February 1, 2001
{{Extract|1 Feb 2001|show=ymd}}
{{Extract|1 Feb 2001|show=ymd}}
左右对比
{{Extract}}{{Extract/sandbox}}
2001-02-01 2001-02-01
{{Extract|June 30, 2001|show=dayname}}
{{Extract|June 30, 2001|show=dayname}}
左右对比
{{Extract}}{{Extract/sandbox}}
Saturday Saturday
{{Extract|June 30, 2001|show=dayofyear}}
{{Extract|June 30, 2001|show=dayofyear}}
左右对比
{{Extract}}{{Extract/sandbox}}
181 181
{{Extract|2001-2-1|show=monthname}}
{{Extract|2001-2-1|show=monthname}}
左右对比
{{Extract}}{{Extract/sandbox}}
February February
{{Extract|2001-2-1|show=a %{dayname} in %{monthname} }}
{{Extract|2001-2-1|show=a %{dayname} in %{monthname} }}
左右对比
{{Extract}}{{Extract/sandbox}}
a Thursday in February a Thursday in February
{{Extract|2001|partial=on|show=juliandate}}
{{Extract|2001|partial=on|show=juliandate}}
左右对比
{{Extract}}{{Extract/sandbox}}
juliandate juliandate
{{Extract|2001|partial=on|show=monthname}}
{{Extract|2001|partial=on|show=monthname}}
左右对比
{{Extract}}{{Extract/sandbox}}
monthname monthname

Sortable

[编辑]
{{Extract|1 Jan 2001|sortable=on}}
{{Extract|1 Jan 2001|sortable=on}}
左右对比
{{Extract}}{{Extract/sandbox}}
<span style="display:none" class="sortkey">7006245191050000000♠</span>1 January 2001 <span style="display:none" class="sortkey">7006245191050000000♠</span>1 January 2001
{{Extract|1 Jan 2001|sortable=on|show=hide}}
{{Extract|1 Jan 2001|sortable=on|show=hide}}
左右对比
{{Extract}}{{Extract/sandbox}}
<span style="display:none" class="sortkey">7006245191050000000♠</span> <span style="display:none" class="sortkey">7006245191050000000♠</span>
{{Extract|2300 BCE|partial=on|sortable=debug}}
{{Extract|2300 BCE|partial=on|sortable=debug}}
左右对比
{{Extract}}{{Extract/sandbox}}
<span style="border:1px solid;display:inline;" class="sortkey">7005881367500000000♠</span>2300&nbsp;BCE <span style="border:1px solid;display:inline;" class="sortkey">7005881367500000000♠</span>2300&nbsp;BCE
{{Extract|1 Jan 2001|sortable=debug}}
{{Extract|1 Jan 2001|sortable=debug}}
左右对比
{{Extract}}{{Extract/sandbox}}
<span style="border:1px solid;display:inline;" class="sortkey">7006245191050000000♠</span>1 January 2001 <span style="border:1px solid;display:inline;" class="sortkey">7006245191050000000♠</span>1 January 2001
{{Extract|1 Jan 2001|sortable=debug|show=hide}}
{{Extract|1 Jan 2001|sortable=debug|show=hide}}
左右对比
{{Extract}}{{Extract/sandbox}}
<span style="border:1px solid;display:inline;" class="sortkey">7006245191050000000♠</span> <span style="border:1px solid;display:inline;" class="sortkey">7006245191050000000♠</span>
{{Extract|00:12 1 Jan 2001|sortable=debug|show=hide}}
{{Extract|00:12 1 Jan 2001|sortable=debug|show=hide}}
左右对比
{{Extract}}{{Extract/sandbox}}
<span style="border:1px solid;display:inline;" class="sortkey">7006245191050833333♠</span> <span style="border:1px solid;display:inline;" class="sortkey">7006245191050833333♠</span>