User:Bri/DateCountdown/sandbox
Testing: 2017-01-01 through 2027-12-31
Testing: 2017-01-01 through 2027-12-31 width=200
Testing: 2017-06-01 through 2027-12-31
Testing: 2017-06-01 through 2027-07-14
Testing: 2017-06-01 through 2027-07-11
Testing: 2017-06-01 through 2027-07-11 width=500
Testing: 2017-06-01 through 2027-07-11 width=500 label=Foo
Testing: 2017-06-01 through 2017-06-30 (expired timer) width=500
This is the sandbox page for User:Bri/DateCountdown (diff). See also the companion subpage for test cases. |
Usage
[edit]DateCountdown{{yyyy1|mm1|dd1|yyyy2|mm2|dd2|width=www}}
Will display a countdown showing the current date in a percentage bar relative to the interval date1–date2. Date1 should be earliest. Undefined results when current date is before date1 or after date2. Width parameter is optional width in pixels.
The percentage bar will be color coded as follows:
- 0–19 percent: red
- 20–49 percent: yellow
- 50+ percent: green
Signpost deadline
[edit]In particular, this template is used to create {{Signpost/Deadline}}
Deadlines (UTC) Current time is 2024-11-21 22:31:07 ( | )