Template:CountDown

From Second Life Wiki
Revision as of 09:38, 17 December 2008 by Zai Lynch (talk | contribs) (New page: <onlyinclude><includeonly>{{#vardefine:a|{{#expr:(({{ #time: U | {{{1}}}.{{{2}}}.{{{3}}} }} - {{ #time: U | {{LOCALDAY2}}.{{LOCALMONTH}}.{{LOCALYEAR}} }}) / 86400) round 0}}}}{{#ifeq:{{#e...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template calculates a difference in days between a given date (past 01.01.1970) and the current date in GMT.
Use it with {{CountDown|DD|MM|YYYY|text pre date|text at date|text post date}}. Text can include {{#var:a}} to place the count. If no text is provided, only the count will be displayed.

Example:

Input Output
{{CountDown|27|01|2009|OMG, only {{#var:a}} days until my rezdate!!|POARTY!!!|Oh... rezzdate is over... what a night.}} Oh... rezzdate is over... what a night.
{{CountDown|27|01|2008|OMG, only {{#var:a}} days until my rezdate!!|POARTY!!!|Oh... rezzdate is over... what a night.}} Oh... rezzdate is over... what a night.
{{CountDown|27|01|2009}}