Template:Countdown: Difference between revisions
From FrathWiki
Jump to navigationJump to search
(change default display settings) |
(added leading zeroes to default date display) |
||
Line 1: | Line 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}}}-{{{month| | <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: |
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.