Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

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 3 years, 5 hours, 57 minutes and 25 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 is 1 day, 23 hours, 25 minutes and 1 second 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 is 1 day, 23 hours, 25 minutes and 1 second 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 is 1 day, 23 hours, 25 minutes and 1 second 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 is 1 day, 23 hours, 25 minutes and 1 second 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 is 1 day, 23 hours, 25 minutes and 1 second 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 is 1 day, 23 hours, 25 minutes and 1 second 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 is 1 day, 23 hours, 25 minutes and 1 second 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)