Template:Countdown: Difference between revisions
From Halopedia, the Halo wiki
(Created page with "<span class="countdowndate">{{{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 ...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
< | <includeonly>{{#ifeq:{{CURRENTDAY}} | ||
|{{{1|1}}}|{{{2|Happy first day of the month!}}} | |||
|Only <big><big>{{#expr:{{{1|1}}}-{{CURRENTDAY}} | |||
}}</big></big> day{{#switch:{{CURRENTDAY}}|{{{3|}}}=|s}} left until {{{4|first day of the month!}}} | |||
}}</includeonly> | |||
<noinclude> | |||
==Usage== | |||
This template is only for one-month period! To use this template, simply copy the following: | |||
<pre> | |||
{{Countdown||||}} | |||
</pre> | |||
;Alternate form: | |||
<pre> | |||
{{Countdown | |||
|1= | |||
|2= | |||
|3= | |||
|4= | |||
}} | |||
</pre> | |||
;Note: | |||
*The first field is the day of the release (i.e. 28th is the day of the release. Add 28 to the first field). | |||
*The second field is the release message. | |||
*The third field is a simple mathematical equation: <code>"Day of release" <strong>-</strong><big>1</big></code>. (i.e. 28 days till release. 28 - 1 = 27. Add 27 to the first field.) | |||
*The fourth field is the notification of the release. | |||
;Example | |||
{{Col-begin}} | |||
{{col-3}} | |||
<pre> | |||
{{Countdown | |||
|1=4 | |||
|2=Something cool is happening right now! | |||
|3=3 | |||
|4=something cool is unleashed... | |||
}} | |||
</pre> | |||
{{col-3}} | |||
<center><strong><big>produces</big></strong></center> | |||
{{col-3}} | |||
{{Countdown | |||
|1=4 | |||
|2=Something cool is happening right now! | |||
|3=3 | |||
|4=something cool is unleashed... | |||
}} | |||
{{col-end}} | |||
[[Category:Templates|Countdown]] | |||
</noinclude> |
Revision as of 09:30, October 19, 2011
Usage
This template is only for one-month period! To use this template, simply copy the following:
{{Countdown||||}}
- Alternate form
{{Countdown |1= |2= |3= |4= }}
- Note
- The first field is the day of the release (i.e. 28th is the day of the release. Add 28 to the first field).
- The second field is the release message.
- The third field is a simple mathematical equation:
"Day of release" -1
. (i.e. 28 days till release. 28 - 1 = 27. Add 27 to the first field.) - The fourth field is the notification of the release.
- Example
{{Countdown |1=4 |2=Something cool is happening right now! |3=3 |4=something cool is unleashed... }} |
|
Only -9 days left until something cool is unleashed... |