Template:WeeklyBoost: Difference between revisions

From Ephinea PSO Wiki
(Resolved wrong boosts on Sundays)
(swapped dar and rer (reads left to right horizontally now, not left to right vertically))
 
(40 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<table style="clear:right; float:right" 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 boosts|Weekly Boost]]{{#ifeq:{{{All|}}}|on|s}}</th>{{#if:{{{1|}}}|<tr><th colspan="2">{{{1}}}</th></tr>|<tr><th colspan="2" style="padding-bottom:0.2em"></th></tr>}}
 
<tr><td><table align="center" style="width:100%">
<tr>
<tr>
<th colspan="2" align="center" class="psoHeader psoStyle" style="width: 100%;">Weekly Boost{{#ifeq:{{{All|}}}|on|s|}}</th>
<td class="uncoloredClass topLeft" style="width:50%; font-size: 100%; background-color:
<tr style="font-size:9px">
{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=0 or {{#ifeq:{{{All|}}}|on|1|0}}=1
<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>
|rgba(221, 255, 83, 0.64);|rgba(255, 158, 77, 0.88);
<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>
}}">Experience<br>'''{{#ifeq:{{{1}}}|[[Christmas event]] (Doubled)|+100%|+50%}}'''</td>
<td class="uncoloredClass topRight" style="font-size: 100%; background-color:
{{#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 charts#Drop anything rate|<span style="color:Black>Drop All Rate</span>]]<br>'''{{#ifeq:{{{1}}}|[[Christmas event]] (Doubled)|+50%|+25%}}'''</td>
</tr>
</tr>
<tr style="font-size:9px">
<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>
</tr>
{{#if:{{{1|}}}|
<tr>
<tr>
<th colspan="2">{{{1}}}</th>
<td class="uncoloredClass bottomLeft" style="width:50%; font-size: 100%; background-color:
</tr>
{{#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);
}}">[[Monsters#Rare Monsters|<span style="color:Black;">Rare Monster</span>]]<br>'''{{#ifeq:{{{1}}}|[[Christmas event]] (Doubled)|+100%|+50%}}'''</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);
}}">[[Drop charts#Rare drop rate|<span style="color:Black>Rare Drop Rate</span>]]<br>'''{{#ifeq:{{{1}}}|[[Christmas event]] (Doubled)|+50%|+25%}}'''</td>
{{#if:{{{2|}}}|
{{#if:{{{2|}}}|
<tr>
<tr>
Line 22: Line 24:
</tr>
</tr>
}}
}}
</table></table><noinclude>
</tr>
 
{{#ifeq: {{{All|}}}|off|<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)}}
|0 = Next Boost: Experience
|1 = Next Boost: Drop All Rate
|2 = Next Boost: Rare Monster
|3 = Next Boost: Rare Drop Rate
}}</th></tr>}}</table>
<noinclude>
==Usage==
==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.
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.
<br>
<br>
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.
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.
<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==
==Examples==
===Default usage===
<!-- DEFAULT USAGE PAGE TEMPLATE/START -->
<table style="clear:right; float:right; width:295px">
<tr><td>
{{WeeklyBoost
|All=off
<!-- |All=on-->
 
<!-- Event Texts -->
<!-- |[[Anniversary event]] (All active) -->
<!-- |[[Halloween event]] -->
<!-- |[[Christmas event]] (Doubled) -->
 
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (Presents doubled) -->
<!-- |New Year's Eve/Day (Presents doubled) -->
}}
</table>
<!-- DEFAULT USAGE PAGE TEMPLATE/END -->
 
<!-- DEFAULT USAGE PAGE TEXT/START -->
<pre>
<table style="clear:right; float:right; width:295px">
<tr><td>
{{WeeklyBoost
|All=off
<!-- |All=on-->
 
<!-- Event Texts -->
<!-- |[[Anniversary event]] (All active) -->
<!-- |[[Halloween event]] -->
<!-- |[[Christmas event]] (Doubled) -->
 
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (Presents doubled) -->
<!-- |New Year's Eve/Day (Presents doubled) -->
}}
</table>
</pre>
<!-- DEFAULT USAGE PAGE TEXT/END-->
 
===Christmas usage===
: ''Including "Holiday text"''
<!-- CHRISTMAS USAGE PAGE TEMPLATE/START -->
<table style="clear:right; float:right; width:290px">
<tr><td>
{{WeeklyBoost
|All=off
<!-- |All=on -->
 
<!-- Event Texts -->
<!-- |[[Anniversary event]] (All active) -->
<!-- |[[Halloween event]] -->
|[[Christmas event]] (Doubled)
 
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (Presents doubled) -->
|New Year's Eve/Day (Presents doubled)
}}
</table>
<!-- CHRISTMAS USAGE PAGE TEMPLATE/END -->
 
<!-- CHRISTMAS USAGE PAGE TEXT/START -->
<pre>
<table style="clear:right; float:right; width:295px">
<tr><td>
{{WeeklyBoost
|All=off
<!-- |All=on -->
 
<!-- Event Texts -->
<!-- |[[Anniversary event]] (All active) -->
<!-- |[[Halloween event]] -->
|[[Christmas event]] (Doubled)
 
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (Presents doubled) -->
|New Year's Eve/Day (Presents doubled)
}}
</table>
</pre>
<!-- CHRISTMAS USAGE PAGE TEXT/END -->
===Anniversary usage===
<!-- ANNIVERSARY USAGE PAGE TEMPLATE/START -->
<table style="clear:right; float:right; width:290px">
<tr><td>
{{WeeklyBoost
{{WeeklyBoost
<!-- |All=off -->
<!-- |All=off -->
Line 37: Line 132:


<!-- Event Texts -->
<!-- Event Texts -->
<!-- |Halloween Event -->
|[[Anniversary event]] (All active)
|Christmas Event (Doubled)
<!-- |[[Halloween event]] -->
<!-- |[[Christmas event]] (Doubled) -->


<!-- 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>
<!-- ANNIVERSARY USAGE PAGE TEMPLATE/END -->
<!-- ANNIVERSARY USAGE PAGE TEXT/START -->
<pre>
<pre>
<table style="clear:right; float:right; width:290px">
<tr><td>
{{WeeklyBoost
{{WeeklyBoost
<!-- |All=off -->
<!-- |All=off -->
Line 50: Line 152:


<!-- Event Texts -->
<!-- Event Texts -->
<!-- |Halloween Event -->
|[[Anniversary event]] (All active)
|Christmas Event (Doubled)
<!-- |[[Halloween event]] -->
<!-- |[[Christmas event]] (Doubled) -->


<!-- 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>
<!-- ANNIVERSARY USAGE PAGE TEXT/END -->
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 00:11, 16 March 2025

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

Default usage

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

<!-- Event Texts -->
<!-- |[[Anniversary event]] (All active) -->
<!-- |[[Halloween event]] -->
<!-- |[[Christmas event]] (Doubled) -->

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

Christmas usage

Including "Holiday text"
Weekly Boost
Christmas event (Doubled)
Experience
+100%
Drop All Rate
+50%
Rare Monster
+100%
Rare Drop Rate
+50%
New Year's Eve/Day (Presents doubled)
Changes: Sunday, 00:00 (UTC)
Next Boost: Drop All Rate
<table style="clear:right; float:right; width:295px">
<tr><td>
{{WeeklyBoost
|All=off
<!-- |All=on -->

<!-- Event Texts -->
<!-- |[[Anniversary event]] (All active) -->
<!-- |[[Halloween event]] -->
|[[Christmas event]] (Doubled)

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

Anniversary usage

<table style="clear:right; float:right; width:290px">
<tr><td>
{{WeeklyBoost
<!-- |All=off -->
|All=on

<!-- Event Texts -->
|[[Anniversary event]] (All active)
<!-- |[[Halloween event]] -->
<!-- |[[Christmas event]] (Doubled) -->

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