Template:WeeklyBoost: Difference between revisions

From Ephinea PSO Wiki
(Restored "width:50%" style, frontend more important than backend oddity atm)
(Edit the weekly boost template to show double values if Christmas Event is defined)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table style="width:100%;" class="psoBackground psoStyle">
<table style="width:100%; border-spacing: 0; padding:3px 3px 2px 3px;" class="psoBackground psoStyle"><th colspan="2" align="center" class="psoHeader psoStyle" style="width: 100%; padding-bottom:0.2em;">Weekly Boost{{#ifeq:{{{All|}}}|on|s|}}</th>{{#if:{{{1|}}}|<tr><th colspan="2">{{{1}}}</th></tr>}}
<th colspan="2" align="center" class="psoHeader psoStyle" style="width: 100%; padding-bottom:0.2em;">Weekly Boost{{#ifeq:{{{All|}}}|on|s|}}</th>
{{#if:{{{1|}}}|
<tr>
<tr>
<th colspan="2">{{{1}}}</th>
<td class="uncoloredClass topLeft" style="width:50%; font-size: 100%; background-color:
</tr>
{{#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);
<tr><td colspan="2"><table style="border-spacing: 0; width:100%;">
}}">Experience<br>'''{{#ifeq:{{{1}}}|Christmas Event (Doubled)|+100%|+50%}}'''</td>
<tr>
<td class="uncoloredClass topRight" style="width:50%; font-size: 100%; background-color:
<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 +50%</td>
{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=2 or {{#ifeq:{{{All|}}}|on|1|0}}=1
<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 +50%</td>
|rgba(221, 255, 83, 0.64);|rgba(255, 158, 77, 0.88);
}}">Rare Monster<br>'''{{#ifeq:{{{1}}}|Christmas Event (Doubled)|+100%|+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 +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 +25%</td>
{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=1 or {{#ifeq:{{{All|}}}|on|1|0}}=1
</td></table></tr>
|rgba(221, 255, 83, 0.64);|rgba(255, 158, 77, 0.88);
}}">Drop All Rate<br>'''{{#ifeq:{{{1}}}|Christmas Event (Doubled)|+50%|+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>'''{{#ifeq:{{{1}}}|Christmas Event (Doubled)|+50%|+25%}}'''</td>
{{#if:{{{2|}}}|
{{#if:{{{2|}}}|
<tr>
<tr>
Line 21: Line 25:
}}
}}
</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
Line 32: Line 31:
|2 = Next Boost: Rare Monster
|2 = Next Boost: Rare Monster
|3 = Next Boost: Rare Drop Rate
|3 = Next Boost: Rare Drop Rate
}}</th></tr>
}}</th></tr>}}</table>
}}
<noinclude>
</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 43: Line 41:


==Examples==
==Examples==
<table style="clear:right; float:right">
<table style="clear:right; float:right; width:295px">
<tr><td>
<tr><td>
{{WeeklyBoost
{{WeeklyBoost
Line 54: Line 52:


<!-- Holiday Texts -->
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
<!-- |Christmas Eve/Day (Presents Doubled) -->
<!-- |New Year's Eve/Day (All) -->
<!-- |New Year's Eve/Day (Presents Doubled) -->
}}
}}
</table>
</table>
<pre>
<pre>
<table style="clear:right; float:right">
<table style="clear:right; float:right; width:295px">
<tr><td>
<tr><td>
{{WeeklyBoost
{{WeeklyBoost
Line 70: Line 68:


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


<table style="clear:right; float:right">
<table style="clear:right; float:right; width:290px">
<tr><td>
<tr><td>
{{WeeklyBoost
{{WeeklyBoost
Line 86: Line 85:


<!-- Holiday Texts -->
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
<!-- |Christmas Eve/Day (Presents Doubled) -->
|New Year's Eve/Day (All)
|New Year's Eve/Day (Presents Doubled)
}}
}}
</table>
</table>
<pre>
<pre>
<table style="clear:right; float:right; width:295px">
<tr><td>
{{WeeklyBoost
{{WeeklyBoost
<!-- |All=off -->
<!-- |All=off -->
Line 100: Line 101:


<!-- Holiday Texts -->
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
<!-- |Christmas Eve/Day (Presents Doubled) -->
|New Year's Eve/Day (All)
|New Year's Eve/Day (Presents Doubled)
}}</pre>
}}
</table>
</pre>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 01:40, 15 December 2023

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

Usage[edit source]

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[edit source]

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