Template:Extract/testcases
![]() | 这是Template:Extract及其沙盒的测试样例。刷新本页以更新内容。 如果这里有许多复杂的模板的用例,可能会因为MediaWiki的技术限制而出错。 您还可以用Special:展开模板来测试模板的使用效果。 您可以通过以下链接测试本模板在不同皮肤下的效果: |
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}} |
---|---|
7 September 2024 | 7 September 2024 |
{{Extract|currentdatetime}}
{{Extract|currentdatetime}}
{{Extract}} | {{Extract/sandbox}} |
---|---|
15:35 7 September 2024 | 15:35 7 September 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 BCE | <span style="border:1px solid;display:inline;" class="sortkey">7005881367500000000♠</span>2300 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> |