Jump to content

Template:Countdown/testcases

From Wikipedia, the free encyclopedia

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, 364 days, 4 hours, 31 minutes and 17 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 6 days, 16 hours, 9 minutes and 41 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 6 days, 16 hours, 9 minutes and 41 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 6 days, 16 hours, 9 minutes and 41 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 6 days, 16 hours, 9 minutes and 41 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 6 days, 16 hours, 9 minutes and 41 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 6 days, 16 hours, 9 minutes and 40 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 6 days, 16 hours, 9 minutes and 40 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

[edit]

TEST 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)