Template:WeeklyBoost: Difference between revisions
From Ephinea PSO Wiki
(Converted padding to em units; Examples wrapped for later edit needs; Removed "Width:50%" from style for now to look into something) |
(Sprinkling TIL knowledge to close lighting space) |
||
| Line 1: | Line 1: | ||
<table style="width:100%" class="psoBackground psoStyle"> | <table style="width:100%;" 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> | <th colspan="2" align="center" class="psoHeader psoStyle" style="width: 100%; padding-bottom:0.2em;">Weekly Boost{{#ifeq:{{{All|}}}|on|s|}}</th> | ||
{{#if:{{{1|}}}| | {{#if:{{{1|}}}| | ||
| Line 6: | Line 6: | ||
</tr> | </tr> | ||
}} | }} | ||
<tr><td colspan="2"><table style="border-spacing: 0; width:100%;"> | |||
<tr> | <tr> | ||
<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 13: | Line 14: | ||
<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="{{#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="{{#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> | <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> | ||
</td></table></tr> | |||
{{#if:{{{2|}}}| | {{#if:{{{2|}}}| | ||
<tr> | <tr> | ||
Revision as of 04:34, 14 January 2022
| Weekly Boost | |||||
|---|---|---|---|---|---|
| |||||
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
| ||||||||||||
<table style="clear:right; float:right">
<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) -->
}}
| ||||||||||||
{{WeeklyBoost
<!-- |All=off -->
|All=on
<!-- Event Texts -->
<!-- |Halloween Event -->
|Christmas Event (Doubled)
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (All) -->
|New Year's Eve/Day (All)
}}