Template:Countdown: Difference between revisions
From FrathWiki
Jump to navigationJump to search
(Created page with "<includeonly>[http://timeanddate.com/counters/fullscreen.html?mode=a{{#if:{{{year|}}}|&year={{{year}}}}}{{#ifeq:{{{month|1}}}|1||&month={{{month}}}}}{{#ifeq:{{{day|1}}}|1||&day={...") |
(added leading zeroes to default date display) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[http://timeanddate.com/counters/fullscreen.html?mode=a{{#if:{{{year|}}}|&year={{{year}}}}}{{#ifeq:{{{month|1}}}|1||&month={{{month}}}}}{{#ifeq:{{{day|1}}}|1||&day={{{day}}}}}&p0=0RT {{{1| | <includeonly><span class="plainlinks">[http://timeanddate.com/counters/fullscreen.html?mode=a{{#if:{{{year|}}}|&year={{{year}}}}}{{#ifeq:{{{month|1}}}|1||&month={{{month}}}}}{{#ifeq:{{{day|1}}}|1||&day={{{day}}}}}&p0=0RT {{{1|{{{year|2000}}}-{{#ifexpr: {{{month|1}}} < 10|0}}{{{month|1}}}-{{#ifexpr: {{{day|1}}} < 10|0}}{{{day|1}}}}}}]</span></includeonly><noinclude> | ||
This template can be used to display countdowns. Currently it links to a countdown on [http://timeanddate.com/ timeanddate.com], but this may change in the future. The following parameters are allowed: | This template can be used to display countdowns. Currently it links to a countdown on [http://timeanddate.com/ timeanddate.com], but this may change in the future. The following parameters are allowed: | ||
* year | * year (defaults to 2000) | ||
* month | * month (a number, defaults to January) | ||
* day | * day (of month, defaults to the 1st) | ||
The first unnamed parameter specifies which text the link is displayed as. | The first unnamed parameter specifies which text the link is displayed as. This defaults to the date. | ||
Additional parameters may be added in the future. All dates and times are in UTC. | Additional parameters may be added in the future. All dates and times are in UTC. |
Latest revision as of 18:28, 9 November 2012
This template can be used to display countdowns. Currently it links to a countdown on timeanddate.com, but this may change in the future. The following parameters are allowed:
- year (defaults to 2000)
- month (a number, defaults to January)
- day (of month, defaults to the 1st)
The first unnamed parameter specifies which text the link is displayed as. This defaults to the date.
Additional parameters may be added in the future. All dates and times are in UTC.