Template:Countdown: Difference between revisions
From MediaWiki
Jump to navigationJump to search
New page: <includeonly><span title="{{{title|{{{1}}}}}}">{{#expr: ({{ #time: U |{{{1}}}}} - {{ #time: U }})/86400 round 0}} {{{dayString|days}}} {{#if:{{{hours|}}}|{{#expr: ({{#expr: ({{ #time: U |{... |
Tweaking cat for proper alphabetization. |
||
| Line 1: | Line 1: | ||
<includeonly><span title="{{{title|{{{1}}}}}}">{{#expr: ({{ #time: U |{{{1}}}}} - {{ #time: U }})/86400 round 0}} {{{dayString|days}}} {{#if:{{{hours|}}}|{{#expr: ({{#expr: ({{ #time: U |{{{1}}}}} - {{ #time: U }})/86400}} - {{#expr: ({{ #time: U |{{{1}}}}} - {{ #time: U }})/86400 round 0}})*24 round 0 }} {{{hourString|hours}}}|}}</span></includeonly><noinclude>{{doc}} | <includeonly><span title="{{{title|{{{1}}}}}}">{{#expr: ({{ #time: U |{{{1}}}}} - {{ #time: U }})/86400 round 0}} {{{dayString|days}}} {{#if:{{{hours|}}}|{{#expr: ({{#expr: ({{ #time: U |{{{1}}}}} - {{ #time: U }})/86400}} - {{#expr: ({{ #time: U |{{{1}}}}} - {{ #time: U }})/86400 round 0}})*24 round 0 }} {{{hourString|hours}}}|}}</span></includeonly><noinclude>{{doc}} | ||
[[Category: Templates]] | [[Category:Templates|Countdown]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:09, 21 June 2011
(Transcluded documentation: view)
==Basic functionality==
{{countdown|December 21, 2012}}
-5041 days remaining until the end of the Mayan calender.
Advanced functionality
[edit]Optional settings
[edit]{{countdown |December 21, 2012
|hours=true (show hours)
|dayString=d (DEFAULT: "days")
|hourString=h (DEFAULT: "hours")
|title=This text is visible on mouseover! (DEFAULT: date provided.)
}}
Technical notes
[edit]- This could probably be coded neater... but who cares? -Derik 19:06, 8 September 2009 (EDT)
- not a doc subpage!
- Countdown

