Template:WeeklyBoost: Difference between revisions

From Ephinea PSO Wiki
m (Removed style that had no effect)
(Converted classCanUse/classCannotUse CSS classes to uncoloredClass, will cleanup later)
Line 7: Line 7:
}}
}}
<tr>
<tr>
<td style="width:50%;" class="{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=0 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} topLeft">Experience<br>'''+50%'''</td>
<td class="uncoloredClass topLeft" style="width:50%; font-size: 100%; background-color:
<td style="width:50%;" class="{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=2 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} topRight">Rare Monster<br>'''+50%'''</td>
{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=0 or {{#ifeq:{{{All|}}}|on|1|0}}=1
|rgba(221, 255, 83, 0.64);|rgba(255, 158, 77, 0.88);
}}">Experience<br>'''+50%'''</td>
<td class="uncoloredClass topRight" style="width:50%; font-size: 100%; background-color:
{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=2 or {{#ifeq:{{{All|}}}|on|1|0}}=1
|rgba(221, 255, 83, 0.64);|rgba(255, 158, 77, 0.88);
}}">Rare Monster<br>'''+50%'''</td>
</tr>
</tr>
<tr>
<tr>
<td class="{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=1 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} bottomLeft">Drop All Rate<br>'''+25%'''</td>
<td class="uncoloredClass bottomLeft" style="font-size: 100%; background-color:
<td class="{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=3 or {{#ifeq:{{{All|}}}|on|1|0}}=1|classCanUse|classCannotUse}} bottomRight">Rare Drop Rate<br>'''+25%'''</td>
{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=1 or {{#ifeq:{{{All|}}}|on|1|0}}=1
|rgba(221, 255, 83, 0.64);|rgba(255, 158, 77, 0.88);
}}">Drop All Rate<br>'''+25%'''</td>
<td class="uncoloredClass bottomRight" style="font-size: 100%; background-color:
{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=3 or {{#ifeq:{{{All|}}}|on|1|0}}=1
|rgba(221, 255, 83, 0.64);|rgba(255, 158, 77, 0.88);
}}">Rare Drop Rate<br>'''+25%'''</td>
{{#if:{{{2|}}}|
{{#if:{{{2|}}}|
<tr>
<tr>

Revision as of 03:41, 19 January 2022

Weekly Boost
Experience
+50%
Rare Monster
+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 Monster
+50%
Drop All Rate
+25%
Rare Drop Rate
+25%
Changes Sunday 00:00 UTC
Next Boost: Rare Drop Rate
<table style="clear:right; float:right; width:295px">
<tr><td>
{{WeeklyBoost
|All=off
<!-- |All=on-->

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

<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
<!-- |New Year's Eve/Day (All) -->
}}
</table>
Weekly Boosts
Christmas Event (Doubled)
Experience
+50%
Rare Monster
+50%
Drop All Rate
+25%
Rare Drop Rate
+25%
New Year's Eve/Day (All)
<table style="clear:right; float:right; width:295px">
<tr><td>
{{WeeklyBoost
<!-- |All=off -->
|All=on

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

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