Template:WeeklyBoost: Difference between revisions

From Ephinea PSO Wiki
(Cleanup)
(Altered layout; Added Next Boost and change time for when All is set to off)
Line 4: Line 4:
<tr>
<tr>
<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>
{{#if:{{{1|}}}|
<tr>
<th colspan="2">{{{1}}}</th>
</tr>
}}
<tr style="font-size:9px">
<tr style="font-size:9px">
<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}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=0 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} topLeft">Experience +50%</td>
Line 11: Line 16:
<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}}+{{#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}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) 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>
{{#if:{{{2|}}}|
{{#if:{{{1|}}}|
<tr>
<tr>
<th colspan="2">{{{1}}}</th>
<th colspan="2">{{{2}}}</th>
</tr>
</tr>
}}
}}
{{#if:{{{2|}}}|
</tr>
{{#ifeq: {{{All|}}}|off|
<tr>
<tr>
<th colspan="2">{{{2}}}</th>
<th colspan="2">Changes Sunday 00:00 UTC</th>
</tr>
</tr>
<tr>
<th colspan="2">
{{#switch: {{#expr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}+1) mod 4)}}
|0 = Next Boost: Experience
|1 = Next Boost: Drop All Rate
|2 = Next Boost: Rare Spawn
|3 = Next Boost: Rare Drop Rate
}}</th></tr>
}}
}}
</table></table><noinclude>
</table></table><noinclude>
==Usage==
==Usage==
This template is meant to be semi-automatic, only adjusted where it is transcluded (such as the [[Main Page]]) on occasions such as events or holidays.
This template is meant to be semi-automatic, only adjusted where it is transcluded (such as the [[Main Page]]) on occasions such as events or holidays.
Line 31: Line 43:
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.


==Example==
==Examples==
{{WeeklyBoost
|All=off
<!-- |All=on-->
 
<!-- Event Texts -->
<!-- |Halloween Event -->
<!-- |Christmas Event (Doubled) -->
 
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
<!-- |New Year's Eve/Day (All) -->
}}
<pre>
{{WeeklyBoost
|All=off
<!-- |All=on-->
 
<!-- Event Texts -->
<!-- |Halloween Event -->
<!-- |Christmas Event (Doubled) -->
 
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
<!-- |New Year's Eve/Day (All) -->
}}
</pre>
{{WeeklyBoost
{{WeeklyBoost
<!-- |All=off -->
<!-- |All=off -->

Revision as of 15:19, 3 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 adjusted where it is transcluded (such as the Main Page) 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.

Examples

Weekly Boost
Experience +50% Rare Spawn +50%
Drop All Rate +25% Rare Drop Rate +25%
Changes Sunday 00:00 UTC
Next Boost: Experience
{{WeeklyBoost
|All=off
<!-- |All=on-->

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

<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
<!-- |New Year's Eve/Day (All) -->
}}
Weekly Boosts
Christmas Event (Doubled)
Experience +50% Rare Spawn +50%
Drop All Rate +25% Rare Drop Rate +25%
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)
}}