Difference between revisions of "Template:Countdown"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
m
(Changed release time to midnight eastern (Hulu, at least, appears to have that time))
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''{{{1}}}''': {{#if:{{{2|}}}|{{#ifexpr:({{#time:U|{{{3}}}{{{4}}}{{{5}}}}} - {{#time:U}})<=0|Available Now|<span id="{{{2}}}-{{{1}}}-days">{{#expr:(({{#time:U|{{{3}}}{{{4}}}{{{5}}}}} - {{#time:U}})/60/60/24 round 0)}}</span> days to go}}|TBA}}
<includeonly>'''{{{1}}}''': {{#if:{{{2|}}}|{{#ifexpr:(({{#time:U|{{{3}}}-{{{4}}}-{{{5}}}}} - {{#time:U}})<=0)|{{#ifeq:{{{2|}}}|spotlight|7 days|Midnight Eastern Time}}|<span id="{{{2}}}-days_year" style="display:none">{{{3}}}</span><span id="{{{2}}}-days_month" style="display:none">{{{4}}}</span><span id="{{{2}}}-days_date" style="display:none">{{{5}}}</span><span class="countdown" id="{{{2}}}-days">{{#expr:(({{#time:U|{{{3}}}-{{{4}}}-{{{5}}}}} - {{#time:U}})/86400 round 0)}}</span> <span id="{{{2}}}-days_days">{{plural:{{#expr:(({{#time:U|{{{3}}}-{{{4}}}-{{{5}}}}} - {{#time:U}})/86400 round 0)}}|day|days}}</span>}}|TBA}}</includeonly><noinclude>{{documentation}}</noinclude>
<noinclude>{{documentation}}</noinclude>

Latest revision as of 06:31, 7 August 2023

Documentation for {{countdown}}

Use

To create a countdown to a specific date. Countdown in days.

Usage

{{countdown|<text>|<unique>|<year>|<month>|<date>}}

Parameters:

text
Is the text to appear in front of the countdown.
unique
This is a way of making the whole countdown identifiable by javascript, and the like. If this and the later paramters is not supplied, the countdowner will display "TBA" instead.
year
month
date

Examples

{{countdown|R1|BWABB|2008|6|23}}
R1: Midnight Eastern Time
{{countdown|R1}}
R1: TBA
{{countdown|R1|ohdear|2012|12|23}}
R1: Midnight Eastern Time