Changes

Template:Elemental Rumble

698 bytes added, Wednesday at 20:05
Added next weeks element
<noinclude>
 '''Current date/time:''' {{#time:Y-m-d H:i:s}} <br>'''Current ISO week number:''' {{#time:W}} <br>'''Day of year:''' {{#time:z}} <br>'''Day of week (1 = Monday):''' {{#time:N}} <br> This template displays a different the weekly element that's on rotation for Elemental Rumble image each week,rotating through 4 themed images based on the ISO week number (168-hour cycle).
Usage:
<code><nowiki>{{ElementalRumbleElemental Rumble}}</nowiki></code>
Rotation schedule:
== Example ==
{| class="wikitable" style="width:100%; text-align:center;"
! style="width: 50%; font-size: 120%;" | Wiki Text
! style="width: 50%; font-size: 120%;" | Result
|-
| <code><nowiki>{{ElementalRumbleElemental Rumble}}</nowiki></code>| {{ElementalRumbleElemental Rumble}}
|}
<includeonly>
<!-- Elemental Rumble Weekly Rotation (ISO week mod 4with +3 offset) --><div style="text-align:center;"> {| class="wikitable" style="width:100%;"! style="width: 50%; font-size: 150%;" | Current Weekly Element:! style="width: 50%; font-size: 150%;" | Next Weekly Element:|-| {{#switch: {{#expr: ({{#time:W}} + 3) mod 4 }} | 0 = [[File:Water Week.gif|300px]] | 1 = [[File:Storm Week.gif|300px]] | 2 = [[File:Earth Week.gif|300px]] | 3 = [[File:Fire Week.gif|300px]] | #default = [[File:Water Week.gif|300px]] }}| {{#switch: {{#expr: ({{#time:W}} + 4) mod 4 }} | 0 = [[File:Water Week.gif|300px]] | 1 = [[File:Storm Week.gif|300px]] | 2 = [[File:Earth Week.gif|300px]] | 3 = [[File:Fire Week.gif|300px]] | #default = [[File:Water Week.gif|300px]] }}|} </div>
</includeonly>
65
edits