![]() | This is the template test cases page for the sandbox of Template:Countdown. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Plain template
edit- Main
{{countdown}}
Error: year, month, and day must be specified
- Sandbox
{{countdown/sandbox}}
Error: year, month, and day must be specified
Test 2
edit- Main
{{countdown|year={{#time:Y|+3 years}}|month={{#time:m}}|day={{#time:j}}|hour=0|minute=0|second=0|duration=1|duration unit=week|event=the event starts|eventstart=STARTED|eventend=ENDED|color=#4000FF}}
There are 2 years, 363 days, 13 hours, 27 minutes and 14 seconds until the event starts. (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y|+3 years}}|month={{#time:m}}|day={{#time:j}}|hour=0|minute=0|second=0|duration=1|duration unit=week|event=the event starts|eventstart=STARTED|eventend=ENDED|color=#4000FF}}
Error: year, month, and day must be specified
Test 3
edit- Main
{{countdown|year={{#time:Y|-1 month}}|month={{#time:m|-1 month}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t|-1 month}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
ENDED (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y|-1 month}}|month={{#time:m|-1 month}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t|-1 month}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 4
edit- Main
{{countdown|year={{#time:Y}}|month={{#time:m}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
STARTED (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y}}|month={{#time:m}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 5
edit- Main
{{countdown|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t|+1 month}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 13 days, 1 hour, 5 minutes and 38 seconds until the event starts. (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t|+1 month}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 6
edit- Main
{{countdown|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration=1440|duration unit=minutes|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 13 days, 1 hour, 5 minutes and 38 seconds until the event starts. (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration=1440|duration unit=minutes|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 7
edit- Main
{{countdown|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration=48|duration unit=hours|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 13 days, 1 hour, 5 minutes and 38 seconds until the event starts. (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration=48|duration unit=hours|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 8
edit- Main
{{countdown|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|+1 month}}|duration unit=days|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 13 days, 1 hour, 5 minutes and 38 seconds until the event starts. (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|+1 month}}|duration unit=days|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 9
edit- Main
{{countdown|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration=4|duration unit=weeks|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 13 days, 1 hour, 5 minutes and 38 seconds until the event starts. (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration=4|duration unit=weeks|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 10
edit- Main
{{countdown|year={{#time:Y}}|month={{#time:m}}|day=1|hour=0|minute=0|second=0|duration=3|duration unit=months|event=the event starts|eventstart=STARTED|eventend=ENDED}}
STARTED (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y}}|month={{#time:m}}|day=1|hour=0|minute=0|second=0|duration=3|duration unit=months|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 11
edit- Main
{{countdown|year={{#time:Y|-1 year}}|month={{#time:m}}|day=1|hour=0|minute=0|second=0|duration=1|duration unit=year|event=the event starts|eventstart=STARTED|eventend=ENDED}}
ENDED (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y|-1 year}}|month={{#time:m}}|day=1|hour=0|minute=0|second=0|duration=1|duration unit=year|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 12
edit- Main
{{countdown|year={{#time:Y|-1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t|-1 month}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 13 days, 1 hour, 5 minutes and 38 seconds until the event starts. (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y|-1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t|-1 month}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
Test 13
edit- Main
{{countdown|year={{#time:Y}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 13 days, 1 hour, 5 minutes and 38 seconds until the event starts. (refresh)
- Sandbox
{{countdown/sandbox|year={{#time:Y}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#expr:{{#time:t}}*60*60*24}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Error: year, month, and day must be specified
A bunch of tests from thwikisource
editTEST 2022-02-06-17 has started. (refresh)
TEST 2022-03-20-17 has started. (refresh)
TEST 2022-06-01-17 has started. (refresh)
TEST 2023-03-20-17 has started. (refresh)