Difference between revisions of "Template:Elemental Rumble"
From Dungeon Defenders 2 Wiki
(Template complete. Waiting for confirmation on weekly rotation) |
|||
| Line 1: | Line 1: | ||
<noinclude> | <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 Elemental Rumble image each week, | This template displays a different Elemental Rumble image each week, | ||
rotating through 4 themed images based on the ISO week number (168-hour cycle). | rotating through 4 themed images based on the ISO week number (168-hour cycle). | ||
Usage: | Usage: | ||
| − | <code><nowiki>{{ | + | <code><nowiki>{{Elemental Rumble}}</nowiki></code> |
Rotation schedule: | Rotation schedule: | ||
| Line 14: | Line 20: | ||
== Example == | == Example == | ||
| − | {| style="width:100%; text-align:center;" | + | {| class="wikitable" style="width:100%; text-align:center;" |
! style="width: 50%; font-size: 120%;" | Wiki Text | ! style="width: 50%; font-size: 120%;" | Wiki Text | ||
! style="width: 50%; font-size: 120%;" | Result | ! style="width: 50%; font-size: 120%;" | Result | ||
|- | |- | ||
| − | | <code><nowiki>{{ | + | | <code><nowiki>{{Elemental Rumble}}</nowiki></code> |
| − | | {{ | + | | {{Elemental Rumble}} |
|} | |} | ||
| Line 26: | Line 32: | ||
<includeonly> | <includeonly> | ||
<!-- Elemental Rumble Weekly Rotation (ISO week mod 4) --> | <!-- Elemental Rumble Weekly Rotation (ISO week mod 4) --> | ||
| − | {{#switch: {{#expr: {{#time:W}} mod 4 }} | + | {{#switch: {{#expr: ({{#time:W}} + 3) mod 4 }} |
| 0 = [[File:Water Week.gif|300px]] | | 0 = [[File:Water Week.gif|300px]] | ||
| 1 = [[File:Storm Week.gif|300px]] | | 1 = [[File:Storm Week.gif|300px]] | ||
| Line 33: | Line 39: | ||
| #default = [[File:Water Week.gif|300px]] | | #default = [[File:Water Week.gif|300px]] | ||
}} | }} | ||
| + | |||
</includeonly> | </includeonly> | ||
Revision as of 14:44, 2 April 2025
Current date/time: 2025-12-05 15:12:01
Current ISO week number: 49
Day of year: 338
Day of week (1 = Monday): 5
This template displays a different Elemental Rumble image each week, rotating through 4 themed images based on the ISO week number (168-hour cycle).
Usage:
{{Elemental Rumble}}
Rotation schedule:
Example
| Wiki Text | Result |
|---|---|
{{Elemental Rumble}}
|
|



