Open main menu

mtgpq wiki β

Changes

Template:Calendar row

28 bytes removed, 08:53, 13 May 2020
no edit summary
-->{{#if:{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}||
{{!}} {{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px;" {{!}}|2=7}} }}<!--
# First non-empty cell(s). Can have blank cells before and/or after.
-->{{#if:{{{3|}}}|{{#ifexpr:{{#explode:{{{3}}}|,|0}} > 1|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px;" {{!}}|2={{#expr:{{#explode:{{{3}}}|,|0}} - 1}} }} }}<br>
{{!}} {{Schedule week cell|{{{2}}}|{{#explode:{{{3}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|0}}}}|{{{start|}}}}}<!--
-->{{#if:{{{4|}}}||{{#ifexpr:{{#replace:{{{3|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px;" {{!}}|2={{#expr: 8 - {{#replace:{{{3|1}}}|,|-}} }} }} }} }} }}<!--
# Second non-empty cell(s). Can have blank cells before and/or after.
-->{{#if:{{{4|}}}|{{#ifexpr:{{#explode:{{{4}}}|,|0}}>{{#replace:{{{3}}}|,|+}}|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{4}}}|,|0}}-({{#replace:{{{3}}}|,|+}}) }} }} }}<br>
{{!}} {{Schedule week cell|{{{2}}}|{{#explode:{{{4}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|1}}}}|{{{start|}}}}}<!--
-->{{#if:{{{5|}}}||{{#ifexpr:{{#replace:{{{4|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{4|1}}}|,|-}} }} }} }} }} }}<!--
# Third non-empty cell(s). Can have blank cells before and/or after.
-->{{#if:{{{5|}}}|{{#ifexpr:{{#explode:{{{5}}}|,|0}}>{{#replace:{{{4}}}|,|+}}|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{5}}}|,|0}}-({{#replace:{{{4}}}|,|+}}) }} }} }}<br>
{{!}} {{Schedule week cell|{{{2}}}|{{#explode:{{{5}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|2}}}}|{{{start|}}}}}<!--
-->{{#if:{{{6|}}}||{{#ifexpr:{{#replace:{{{5|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{5|1}}}|,|-}} }} }} }} }} }}<!--
# Fourth non-empty cell(s). Can have blank cells before and/or after.
-->{{#if:{{{6|}}}|{{#ifexpr:{{#explode:{{{6}}}|,|0}}>{{#replace:{{{5}}}|,|+}}|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{6}}}|,|0}}-({{#replace:{{{5}}}|,|+}}) }} }} }}<br>
{{!}} {{Schedule week cell|{{{2}}}|{{#explode:{{{6}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|3}}}}|{{{start|}}}}}<!--
-->{{#if:{{{7|}}}||{{#ifexpr:{{#replace:{{{6|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{6|1}}}|,|-}} }} }} }} }} }}<!--
# Fifth non-empty cell(s). Can have blank cells before and/or after.
-->{{#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|{{{2}}}|{{#explode:{{{7}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|4}}}}|{{{start|}}}}}<!--
-->{{#if:{{{8|}}}||{{#ifexpr:{{#replace:{{{7|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{7|1}}}|,|-}} }} }} }} }} }}<!--
# Sixth non-empty cell(s). Can have blank cells before and/or after.
-->{{#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|{{{2}}}|{{#explode:{{{8}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|5}}}}|{{{start|}}}}}<!--
-->{{#if:{{{9|}}}||{{#ifexpr:{{#replace:{{{8|1}}}|,|+}} <= 7|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}} |2={{#expr: 8 - {{#replace:{{{8|1}}}|,|-}} }} }} }} }} }}<!--
# Seventh non-empty cell(s). Can have blank cells before but not after.
-->{{#if:{{{9|}}}|{{#ifexpr:{{#explode:{{{9}}}|,|0}}>{{#explode:{{{8}}}|,|0}}+1|{{#invoke:String|rep|1=<br>
{{!}} style="padding:0px; border: 0px" {{!}}|2={{#expr:{{#explode:{{{9}}}|,|0}}-{{#explode:{{{8}}}|,|0}}-1}} }} }}<br>
{{!}} {{Schedule week cell|{{{2}}}|{{#explode:{{{9}}}|,|1}}|{{{details|}}}|{{#if:{{{cols|}}}|{{#explode:{{{cols}}}|,|6}}}}|{{{start|}}}}}}}<!--
--></includeonly>