Template:Countdowns: Difference between revisions

From Inkipedia, the Splatoon wiki
No edit summary
No edit summary
 
(270 intermediate revisions by 21 users not shown)
Line 1: Line 1:
<div class="widget">
<div class="widget">
<p class="btextwidget">Countdowns</p>
<p class="cd">[[Splatoon (anime)|The ''Splatoon'' anime series]] will be released in '''<span class="countdown">2017/08/12 00:00|It's out!</span>'''</p>
</p>
</span></p>
</div><noinclude>


<p class="btextwidget">Stage Countdown <sup title="This is a countdown which lets you know when the next set of stages will be selected. Hit the update link to the right if the timer runs out!" style="font-size: 33%;" class="explain">[Note]</sup> <sup style="font-size: 33%;" class="explain">{{Purge|Update|Press this to refresh the page when the timer runs out!}}</sup></p>
==Info==
<p class="textwidget">
This template displays the box for the countdowns on the front page. To add a countdown, use the following code:
<!-- Switches by the current hour given by the Wiki magic template {{CURRENTHOUR}}. -->


{{#ifexpr: ({{CURRENTHOUR}} > 1 and {{CURRENTHOUR}} < 6)  |
:<code>&lt;p class="cd"&gt;The next countdown starts in &lt;span class="countdown"&gt;'''date''' '''time'''|'''ongoing message'''|'''over message'''&lt;span&gt;</code>
<!-- Between 2am and 6am -->  
 
<countdown time="01/01/9999 06:00 UTC">Map rotation in <H> hours, <M> minutes, <S> seconds at 6am UTC.</countdown>
*'''date''' gets replaced with the date of the countdown, in the format "yyyy/mm/dd". Example: <code>2016/07/18</code>.
|  
*'''time''' gets replaced with the hour in UTC, in the format "hh:mm". Example: <code>17:00</code>.
{{#ifexpr: ({{CURRENTHOUR}} > 5 and {{CURRENTHOUR}} < 10) |
*'''ongoing message''' gets replaced with the text to display if the event is ongoing. It is considered ongoing during the first 24 hours. Example: <code>Right now!</code>
<!-- Between 6am and 10am -->
*'''over message''' gets replaced with the text to display if the event is over. It is considered over after the first 24 hours have passed. Example: <code>It's over!</code>
<countdown time="01/01/9999 10:00 UTC">Map rotation in <H> hours, <M> minutes, <S> seconds at 10am UTC.</countdown>  
 
|
[[Category:Templates]]</noinclude>
{{#ifexpr: ({{CURRENTHOUR}} > 9 and {{CURRENTHOUR}} < 14) |
<!-- Between 10am and 2pm -->
<countdown time="01/01/9999 14:00 UTC">Map rotation in <H> hours, <M> minutes, <S> seconds at 2pm UTC.</countdown>
|
{{#ifexpr: ({{CURRENTHOUR}} > 13 and {{CURRENTHOUR}} < 18) |
<!-- Between 2pm and 6pm -->  
<countdown time="01/01/9999 18:00 UTC">Map rotation in <H> hours, <M> minutes, <S> seconds at 6pm UTC.</countdown>
|
{{#ifexpr: ({{CURRENTHOUR}} > 17 and {{CURRENTHOUR}} < 22) |
<!-- Between 6pm and 10pm -->
<countdown time="01/01/9999 22:00 UTC">Map rotation in <H>:<M>:<S> at 10pm UTC.</countdown>  
|
<!-- Else between 10pm and 2am -->
<countdown time="01/01/9999 02:00 UTC">Map rotation in <H> hours, <M> minutes, <S> seconds at 2am UTC.</countdown>  
}}
}}
}}
}}
}}
</p></div>

Latest revision as of 13:53, 11 August 2017

Countdowns

The Splatoon anime series will be released in 2017/08/12 00:00|It's out!

Info

This template displays the box for the countdowns on the front page. To add a countdown, use the following code:

<p class="cd">The next countdown starts in <span class="countdown">date time|ongoing message|over message<span>
  • date gets replaced with the date of the countdown, in the format "yyyy/mm/dd". Example: 2016/07/18.
  • time gets replaced with the hour in UTC, in the format "hh:mm". Example: 17:00.
  • ongoing message gets replaced with the text to display if the event is ongoing. It is considered ongoing during the first 24 hours. Example: Right now!
  • over message gets replaced with the text to display if the event is over. It is considered over after the first 24 hours have passed. Example: It's over!