Editing Template:WeeklyBoost

From Ephinea PSO Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<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>}}
<table style="clear:right; float:right" class="psoBackground psoStyle">
 
<tr><td><table align="center" style="width:100%">
<tr>
<tr>
<td class="uncoloredClass topLeft" style="width:50%; font-size: 100%; background-color:
<th colspan="2" align="center" class="psoHeader psoStyle" style="width: 100%;">Weekly Boost{{#ifeq:{{{All|}}}|on|s|}}</th>
{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=0 or {{#ifeq:{{{All|}}}|on|1|0}}=1
<tr style="font-size:9px">
|rgba(221, 255, 83, 0.64);|rgba(255, 158, 77, 0.88);
<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>
}}">Experience<br>'''{{#ifeq:{{{1}}}|Christmas Event (Doubled)|+100%|+50%}}'''</td>
<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>
<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>'''{{#ifeq:{{{1}}}|Christmas Event (Doubled)|+100%|+50%}}'''</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>
<td class="uncoloredClass bottomLeft" style="font-size: 100%; background-color:
<th colspan="2">{{{1}}}</th>
{{#ifexpr:(({{CURRENTWEEK}}+{{#ifexpr:{{CURRENTDOW}}=0|1|0}}) mod 4)=1 or {{#ifeq:{{{All|}}}|on|1|0}}=1
</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 24: Line 22:
</tr>
</tr>
}}
}}
</tr>
</table></table><noinclude>
{{#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 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 needing to be adjusted where it is transcluded 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}}
==Examples==
==Example==
<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>
<pre>
<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>
</pre>
 
<table style="clear:right; float:right; width:290px">
<tr><td>
{{WeeklyBoost
{{WeeklyBoost
<!-- |All=off -->
<!-- |All=off -->
Line 85: Line 41:


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


<!-- Holiday Texts -->
<!-- Holiday Texts -->
<!-- |Christmas Eve/Day (Presents Doubled) -->
<!-- |Christmas Eve/Day (All) -->
|New Year's Eve/Day (Presents Doubled)
|New Year's Eve/Day (All)
}}
}}</pre>
</table>
</pre>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>
Please note that all contributions to Ephinea PSO Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Ephinea PSO Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)