Template:WeeklyBoost: Difference between revisions

From Ephinea PSO Wiki
No edit summary
No edit summary
Line 31: Line 31:
}}
}}
</tr>
</tr>
{{#ifeq: {{{All|}}}|off|
{{#ifeq: {{{All|}}}|off|<tr><th colspan="2">Changes Sunday 00:00 UTC</th></tr><tr><th colspan="2">
<tr>
<th colspan="2">Changes Sunday 00:00 UTC</th>
</tr>
<tr>
<th colspan="2">
{{#switch: {{#expr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}+1) mod 4)}}
{{#switch: {{#expr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}+1) mod 4)}}
|0 = Next Boost: Experience
|0 = Next Boost: Experience

Revision as of 22:30, 13 October 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: Experience
<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>