Template:Countdown: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(Don't know if this fixes the template, hopefully does)
No edit summary
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><span class="countdowndate">{{#time:F d Y H:i|{{{1}}}}} UTC</span><span class="nocountdown"> This message will be displayed if the timer does not show up (like if you do not have javascript enabled on your browser)</span></includeonly>
{{#if:{{{expire|}}}|<includeonly><span data-end="toggle" data-toggle=".post-countdown" class="countdown" style="display:none;">{{#if:{{{f-text|}}}|{{{f-text|}}}&nbsp;}}<span class="countdowndate">{{{1|}}}</span>{{#if:{{{a-text|}}}|&nbsp;{{{a-text|}}}}}</span><span class="post-countdown" style="display:none;">{{{expire|}}}</span><span class="nocountdown">Enable JavaScript to view this countdown.</span></includeonly>
|<includeonly><span class="countdown" style="display:none;"><span class="countdowndate">{{{1}}} UTC</span></span><span class="nocountdown">Enable JavaScript to view this countdown.</span></includeonly>}}<noinclude>


<span class="countdowndate">{{{1}}} UTC</span><span class="nocountdown">The North American release of ''[[Kingdom Hearts Birth by Sleep]]'' is on the 7th of September!</span><noinclude>
This template creates a countdown timer and works only in UTC time (the official wiki time). The correct usage is as follows:


-----
<pre>{{Countdown|[name of month] [number pertaining to day] [year] [time of day in UTC]}}</pre>
This template creates a countdown timer, and works only in UTC time (the official wiki-time). The correct usage is as follows:


<pre>{{Countdown|[name of month [number pertaining to day] [year] [time of day in UTC]}}</pre>
Therefore,
<pre>{{Countdown|January 01 3000 20:00:00}}</pre>
 
Would create this:
 
{{Countdown|January 01 3000 20:00:00}}
 
It is also possible to replace the timer with text once the timer expires. For that, use the following code:
<pre>{{Countdown
|[name of month] [[number pertaining to day] [year] [time of day in UTC]
|expire=(Text that appears when timer has expired)
|f-text=(Optional: Text that appears in front of the timer and disappears when the timer expires)
|a-text=(Optional: Text that appears after the timer and disappears when the timer expires)
}}</pre>


Therefore,
Therefore,
<pre>{{Countdown|January 1 3000 20:000}}</pre>
<pre>{{Countdown|January 01 2015 20:00:00|expire=Time's up!}}</pre>


Would create this:
would create this:
{{Countdown|January 1 3000 20:000}}
 
{{Countdown|January 01 2015 20:00:00|expire=Time's up!}}
[[Category:Utility templates]]</noinclude>
[[Category:Utility templates]]</noinclude>

Latest revision as of 18:07, 20 July 2015


This template creates a countdown timer and works only in UTC time (the official wiki time). The correct usage is as follows:

{{Countdown|[name of month] [number pertaining to day] [year] [time of day in UTC]}}

Therefore,

{{Countdown|January 01 3000 20:00:00}}

Would create this:

Enable JavaScript to view this countdown.

It is also possible to replace the timer with text once the timer expires. For that, use the following code:

{{Countdown
|[name of month] [[number pertaining to day] [year] [time of day in UTC]
|expire=(Text that appears when timer has expired)
|f-text=(Optional: Text that appears in front of the timer and disappears when the timer expires)
|a-text=(Optional: Text that appears after the timer and disappears when the timer expires)
}}

Therefore,

{{Countdown|January 01 2015 20:00:00|expire=Time's up!}}

would create this:

Enable JavaScript to view this countdown.