Difference between revisions of "Template:Elemental Rumble"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Readability (Candies))
(Testing and formatting rotating weekly element)
Line 1: Line 1:
<div style="flex: 0 0 50%;">
 
{|
 
|<span style="font-size:20px;color:orange;">Rumble Tier: </span><!---
 
---><span style="font-size:15px;">{{#switch: {{{ 1 | {{{tier|}}} }}}
 
    | Easy = <br><span style="color:green;"> Easy</span>
 
    | Medium = <br><span style="color:Gold;"> Medium</span>
 
    | Hard = <br><span style="color:Red;"> Hard</span>
 
    | #default = <br><span style="color:green;">Easy</span> / <span style="color:gold;">Medium</span> / <span style="color:red;">Hard</span>
 
    }}</span>
 
|
 
* <b style="font-size:17px;">Chaos: </b><!---
 
--->{{#switch: {{{ 1 | {{{tier|}}} }}}
 
    | Easy = <span style="color:blue;">VII</span>
 
    | Medium = <span style="color:red;">X</span>
 
    | Hard = <span style="color:red;">X</span>
 
    | #default = <span> Chaos Tier? (Chaos <span style="color:blue;">VII</span> / <span style="color:red;">X</span>) </span>
 
    }}
 
* <b style="font-size:17px;">Enemies:  </b><!---
 
--->{{#switch: {{{ 3 | {{{enemy1|}}} }}}
 
    | Orc Elemental Commander = <br><span>[[File:Orc Electric Commander Icon.png|40px]]</span>
 
    | #default = <span> Special Enemy Types? </span>
 
    }} <!---
 
--->{{#switch: {{{ 4 | {{{enemy2|}}} }}}
 
    | Mage Elemental Commander = <span>[[File:Electric Mage Commander Icon.png|40px]]</span>
 
    }}
 
* <b style="font-size:17px;">Rewards: </b><!---
 
--->{{#switch: {{{ 5 | {{{rewards|}}} }}}
 
    | Elemental Rumble Rewards = <br><!--
 
      -->[[File:Elemental Earth Cat Icon.png|40px]]<!--
 
      -->[[File:Elemental Storm Cat Icon.png|40px]]<!--
 
      -->[[File:Elemental Water Cat Icon.png|40px]]<!--
 
      -->[[File:Elemental Fire Cat Icon.png|40px]]<!--
 
    --><br><!---
 
    ---><b style="font-size:17px;">Elemental Candies: </b><br><!---
 
      --><!--[[File:Earth Candy Icon.png|40px|]]--><!-- Placeholder for Earth Candy (Uncomment)
 
      --><!--[[File:Storm Candy Icon.png|40px|]]--><!-- Placeholder for Storm Candy (Uncomment)
 
      -->[[File:Water Candy Icon.png|40px]]<!--
 
      -->[[File:Fire Candy Icon.png|40px]]<!--
 
      --><br><!---
 
    --->Elemental Essence: {{#switch: {{{ 1 | {{{tier|}}} }}}
 
        | Easy = 10
 
        | Medium = 25
 
        | Hard = 50
 
        | #default = 0
 
        }},<br><!---
 
    ---><span>Elemental Armor Sets</span>
 
    | #default = <span> Elemental Rumble Rewards? </span>
 
    }}
 
|}
 
</div>
 
 
<noinclude>
 
<noinclude>
 +
This template displays a different image each week, rotating through 4 images based on the current ISO week number (168-hour cycles). To use it, simply type:
  
=== Parameters ===
+
<code><nowiki>{{WeeklyImageRotation}}</nowiki></code>
{| border="1" style="border-collapse:collapse;"
 
! Parameter !! Description
 
|-
 
| '''tier''' || Rumble Tier (Easy/Medium/Hard).
 
|-
 
| '''chaos''' || The required Chaos tier completion to unlock this difficulty.
 
|-
 
| '''enemy1''' || The first Special Elemental Rumble enemy (e.g., Orc Elemental Commander).
 
|-
 
| '''enemy2''' || The second Special Elemental Rumble enemy (e.g., Mage Elemental Commander).
 
|-
 
| '''rewards''' || The rewards include Elemental Pets (Standard/Golden Variant), Weekly Elemental Candy, Tier Completion Elemental Essence, Armor Sets.
 
|}
 
  
===Example===
+
The rotation order is:
{| style="width:100%;"
 
! style="font-size:150%; width: 50%;" | Wiki Text
 
! style="font-size:150%; width: 50%;" | Result
 
|-
 
|<div style="display: flex; justify-content: center;"><!---
 
---><code style="display: table; white-space: pre-wrap; padding-right: 7%;"><!---
 
    ---><nowiki>
 
  
            {{Elemental Rumble
+
* Week 1 → [[File:Water Week.gif|150px]]
            | Easy
+
* Week 2 → [[File:Storm Week.gif|150px]]
            | Chaos VII
+
* Week 3 → [[File:Earth Week.gif|150px]]
            | Orc Elemental Commander
+
* Week 4 → [[File:Fire Week.gif|150px]]
            | Mage Elemental Commander
+
* Then loops back to Week 1
            | Elemental Rumble Rewards
 
            }}
 
  
        </nowiki><!---
+
</noinclude>
---></code>
+
<includeonly>
</div>
+
<!-- Weekly Image Rotator (changes every 7 days based on ISO week number) -->
|<div style="display: flex; justify-content: center;">
+
{{#switch: {{#expr: {{#time:W}} mod 4 }}
    {{Elemental Rumble
+
| 0 = [[File:Water Week.gif|300px]]
    | Easy
+
| 1 = [[File:Storm Week.gif|300px]]
    | Chaos VII
+
| 2 = [[File:Earth Week.gif|300px]]
    | Orc Elemental Commander
+
| 3 = [[File:Fire Week.gif|300px]]
    | Mage Elemental Commander
+
}}
    | Elemental Rumble Rewards
+
</includeonly>
    }}
 
</div>
 
|-
 
|<div style="display: flex; justify-content: center;"><!---
 
---><code style="display: table; white-space: pre-wrap; padding-right: 7%;"><!---
 
    ---><nowiki>
 
  
            {{Elemental Rumble
+
<noinclude>
            | tier = Hard
+
== Example ==
            | chaos = Chaos X
 
            | enemy1 = Orc Elemental Commander
 
            | enemy2 = Mage Elemental Commander
 
            | rewards = Elemental Rumble Rewards
 
            }}
 
  
        </nowiki><!---
+
{| style="width:100%; text-align:center;"
---></code>
+
! style="width: 50%; font-size: 120%;" | Wiki Text
</div>
+
! style="width: 50%; font-size: 120%;" | Result
|<div style="display: flex; justify-content: center;">
+
|-
    {{Elemental Rumble
+
| <code><nowiki>{{WeeklyImageRotation}}</nowiki></code>
    | tier = Hard
+
| {{WeeklyImageRotation}}
    | chaos = Chaos X
 
    | enemy1 = Orc Elemental Commander
 
    | enemy2 = Mage Elemental Commander
 
    | rewards = Elemental Rumble Rewards
 
    }}
 
</div>
 
 
|}
 
|}
  
__NOEDITSECTION__
 
 
</noinclude>
 
</noinclude>

Revision as of 15:08, 2 April 2025

This template displays a different image each week, rotating through 4 images based on the current ISO week number (168-hour cycles). To use it, simply type:

{{WeeklyImageRotation}}

The rotation order is:

  • Week 1 → Water Week.gif
  • Week 2 → Storm Week.gif
  • Week 3 → Earth Week.gif
  • Week 4 → Fire Week.gif
  • Then loops back to Week 1



Example

Wiki Text Result
{{WeeklyImageRotation}} Template:WeeklyImageRotation