7,180
edits
Changes
no edit summary
** The second value is the number of days for which the event runs.
There are two three optional named parameters:
* details - Further optional details necessary to unabiguously specify the event. For example, for a HoD event, the details field might contain "Elspeth" to distinguish it from Bolas HoD.
* cols - A comma-separated list of color strings, one for each event instance during the week. For example, for a set of Training Grounds events, the cols field might contain "W,U,B,R,G", to show which variation of the event runs on which day.* start - A start time in UTC for the event which will be displayed in the tooltip, e.g. "16:00".
== Example ==
<pre><nowiki>
{|
{{Schedule week row|pre=pvp,5|Rising Tensions |2,1|3,1|4,1|5,1|6,1|start=04:00}}
|}
{{Schedule week row| Oath of the Gatewatch: Part 2|5,3}}
{{Schedule week row| Return of the God-Pharaoh |6,2}}
{{Schedule week row| Tour de Ravnica |1,1|start=04:00}}
|}
</nowiki></pre>
Produces:
{|
{{Schedule week row|pre=pvp,5|Rising Tensions |2,1|3,1|4,1|5,1|6,1|start=04:00}}
|}
{{Schedule week row| Oath of the Gatewatch: Part 2|5,3}}
{{Schedule week row| Return of the God-Pharaoh |6,2}}
{{Schedule week row| Tour de Ravnica |1,1|start=04:00}}
|}
-->{{#ifexpr:{{#explode:{{{2}}}|,|0}} > 1|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px;" {{!}}|2={{#expr:{{#explode:{{{2}}}|,|0}} - 1}} }} }}
| {{Schedule week cell|{{{1}}}|{{#explode:{{{2}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|0}}}}|{{{start|}}}}}<!--
-->{{#if:{{{3|}}}||{{#ifexpr:{{#replace:{{{2|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px;" {{!}}|2={{#expr: 8 - {{#replace:{{{2}}}|,|-}} }} }} }} }}<!--
-->{{#if:{{{3|}}}|{{#ifexpr:{{#explode:{{{3}}}|,|0}}>{{#explode:{{{2}}}|,|0}}+1|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{3}}}|,|0}}-{{#explode:{{{2}}}|,|0}}-1}} }} }}<br>
{{!}} {{Schedule week cell|{{{1}}}|{{#explode:{{{3}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|1}}}}|{{{start|}}}}}<!--
-->{{#if:{{{4|}}}||{{#ifexpr:{{#replace:{{{3|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{3|1}}}|,|-}} }} }} }} }} }}<!--
-->{{#if:{{{4|}}}|{{#ifexpr:{{#explode:{{{4}}}|,|0}}>{{#explode:{{{3}}}|,|0}}+1|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{4}}}|,|0}}-{{#explode:{{{3}}}|,|0}}-1}} }} }}<br>
{{!}} {{Schedule week cell|{{{1}}}|{{#explode:{{{4}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|2}}}}|{{{start|}}}}}<!--
-->{{#if:{{{5|}}}||{{#ifexpr:{{#replace:{{{4|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{4|1}}}|,|-}} }} }} }} }} }}<!--
-->{{#if:{{{5|}}}|{{#ifexpr:{{#explode:{{{5}}}|,|0}}>{{#explode:{{{4}}}|,|0}}+1|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{5}}}|,|0}}-{{#explode:{{{4}}}|,|0}}-1}} }} }}<br>
{{!}} {{Schedule week cell|{{{1}}}|{{#explode:{{{4}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|3}}}}|{{{start|}}}}}<!--
-->{{#if:{{{5|}}}||{{#ifexpr:{{#replace:{{{4|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{5|1}}}|,|-}} }} }} }} }} }}<!--
-->{{#if:{{{6|}}}|{{#ifexpr:{{#explode:{{{6}}}|,|0}}>{{#explode:{{{5}}}|,|0}}+1|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{6}}}|,|0}}-{{#explode:{{{5}}}|,|0}}-1}} }} }}<br>
{{!}} {{Schedule week cell|{{{1}}}|{{#explode:{{{6}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|4}}}}|{{{start|}}}}}<!--
-->{{#if:{{{7|}}}||{{#ifexpr:{{#replace:{{{6|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{6|1}}}|,|-}} }} }} }} }} }}<!--
-->{{#if:{{{7|}}}|{{#ifexpr:{{#explode:{{{7}}}|,|0}}>{{#explode:{{{6}}}|,|0}}+1|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{7}}}|,|0}}-{{#explode:{{{6}}}|,|0}}-1}} }} }}<br>
{{!}} {{Schedule week cell|{{{1}}}|{{#explode:{{{7}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|5}}}}|{{{start|}}}}}<!--
-->{{#if:{{{8|}}}||{{#ifexpr:{{#replace:{{{7|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{7|1}}}|,|-}} }} }} }} }} }}<!--
-->{{#if:{{{8|}}}|{{#ifexpr:{{#explode:{{{8}}}|,|0}}>{{#explode:{{{7}}}|,|0}}+1|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{8}}}|,|0}}-{{#explode:{{{7}}}|,|0}}-1}} }} }}<br>
{{!}} {{Schedule week cell|{{{1}}}|{{#explode:{{{8}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|6}}}}|{{{start|}}}}}}}<!--
--></includeonly>