Template:WeeklyBoost: Difference between revisions

From Ephinea PSO Wiki
(Semi-automatic template meant for transcluding Weekly Boost infobox)
 
(Resolved wrong boosts on Sundays)
Line 5: Line 5:
<th colspan="2" align="center" class="psoHeader psoStyle" style="width: 100%;">Weekly Boost{{#ifeq:{{{All|}}}|on|s|}}</th>
<th colspan="2" align="center" class="psoHeader psoStyle" style="width: 100%;">Weekly Boost{{#ifeq:{{{All|}}}|on|s|}}</th>
<tr style="font-size:9px">
<tr style="font-size:9px">
<td class="{{#ifexpr:({{CURRENTWEEK}} mod 4)=0 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} topLeft">Experience +50%</td>
<td class="{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=0 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} topLeft">Experience +50%</td>
<td class="{{#ifexpr:({{CURRENTWEEK}} mod 4)=2 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} topRight">Rare Spawn +50%</td>
<td class="{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=2 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} topRight">Rare Spawn +50%</td>
</tr>
</tr>
<tr style="font-size:9px">
<tr style="font-size:9px">
<th class="{{#ifexpr:({{CURRENTWEEK}} mod 4)=1 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} bottomLeft">Drop All Rate +25%</th>
<th class="{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=1 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} bottomLeft">Drop All Rate +25%</th>
<th class="{{#ifexpr:({{CURRENTWEEK}} mod 4)=3 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} bottomRight">Rare Drop Rate +25%</th>
<th class="{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=3 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} bottomRight">Rare Drop Rate +25%</th>
</tr>
</tr>
{{#if:{{{1|}}}|
{{#if:{{{1|}}}|
Line 30: Line 30:
<br>
<br>
Said occasions should be conveniently commented within the template transclusion to save time and uncommented/recommented as necessary.
Said occasions should be conveniently commented within the template transclusion to save time and uncommented/recommented as necessary.
 
{{#ifexpr:{{CURRENTWEEK}}+1=53|1|0}}
==Example==
==Example==
{{WeeklyBoost
{{WeeklyBoost
Line 42: Line 42:
<!-- Holiday Texts -->
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
<!-- |Christmas Eve/Day (All) -->
|NY's Eve/Day (All Boosts)
|New Year's Eve/Day (All)
}}
}}
<pre>
<pre>
Line 55: Line 55:
<!-- Holiday Texts -->
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
<!-- |Christmas Eve/Day (All) -->
|NY's Eve/Day (All Boosts)
|New Year's Eve/Day (All)
}}</pre>
}}</pre>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 00:46, 2 January 2022

Weekly Boost
Experience +50% Rare Spawn +50%
Drop All Rate +25% Rare Drop Rate +25%

Usage

This template is meant to be semi-automatic, only needing to be adjusted where it is transcluded on occasions such as events or holidays.
As of this writing, a switch to enable all boosts is offered as well as two optional rows as numbered/unnamed parameters for event/holiday text.
Said occasions should be conveniently commented within the template transclusion to save time and uncommented/recommented as necessary. 0

Example

Weekly Boosts
Experience +50% Rare Spawn +50%
Drop All Rate +25% Rare Drop Rate +25%
Christmas Event (Doubled)
New Year's Eve/Day (All)
{{WeeklyBoost
<!-- |All=off -->
|All=on

<!-- Event Texts -->
<!-- |Halloween Event -->
|Christmas Event (Doubled)

<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
|New Year's Eve/Day (All)
}}