Difference between revisions of "Template:Schedule week header"
Line 41: | Line 41: | ||
</noinclude><includeonly>{| class="wikitable" style="border:2px solid black;" | </noinclude><includeonly>{| class="wikitable" style="border:2px solid black;" | ||
|- | |- | ||
− | ! rowspan="3" colspan="3" style="border:2px solid black;" | Event schedule<br>{{{2}}}{{#switch:{{{2}}}|1=st|2=nd|3=rd|th}} {{{1}}} | + | ! rowspan="3" colspan="3" style="border:1.5px solid black; border-right:2px solid black;" | Event schedule<br>{{{2}}}{{#switch:{{{2}}}|1=st|2=nd|3=rd|th}} {{{1}}} |
{{#ifexpr:{{{8}}} < {{{2}}}| | {{#ifexpr:{{{8}}} < {{{2}}}| | ||
<!-- The week crosses into a new month. --> | <!-- The week crosses into a new month. --> | ||
− | ! style="padding:0px; border: | + | ! style="padding:0px; border:1.5px solid black; background-color:#ffd966;" colspan="{{#ifexpr:{{{3}}} < {{{2}}}|1|<!-- |
-->{{#ifexpr:{{{4}}} < {{{2}}}|2|<!-- | -->{{#ifexpr:{{{4}}} < {{{2}}}|2|<!-- | ||
-->{{#ifexpr:{{{5}}} < {{{2}}}|3|<!-- | -->{{#ifexpr:{{{5}}} < {{{2}}}|3|<!-- | ||
Line 50: | Line 50: | ||
-->{{#ifexpr:{{{7}}} < {{{2}}}|5|6}} }} }} }} }}" {{!}} <small><!-- | -->{{#ifexpr:{{{7}}} < {{{2}}}|5|6}} }} }} }} }}" {{!}} <small><!-- | ||
-->{{#ifexpr:{{{3}}} < {{{2}}}|{{#invoke:String|sub|{{{1}}}|1|3}}|{{{1}}}}}</small> | -->{{#ifexpr:{{{3}}} < {{{2}}}|{{#invoke:String|sub|{{{1}}}|1|3}}|{{{1}}}}}</small> | ||
− | ! style="padding:0px; border: | + | ! style="padding:0px; border:1.5px solid black; background-color:#ffd966;" colspan="{{#ifexpr:{{{3}}} < {{{2}}}|6|<!-- |
-->{{#ifexpr:{{{4}}} < {{{2}}}|5|<!-- | -->{{#ifexpr:{{{4}}} < {{{2}}}|5|<!-- | ||
-->{{#ifexpr:{{{5}}} < {{{2}}}|4|<!-- | -->{{#ifexpr:{{{5}}} < {{{2}}}|4|<!-- | ||
Line 56: | Line 56: | ||
-->{{#ifexpr:{{{7}}} < {{{2}}}|2|1}} }} }} }} }}" {{!}} <small><!-- | -->{{#ifexpr:{{{7}}} < {{{2}}}|2|1}} }} }} }} }}" {{!}} <small><!-- | ||
-->{{#ifexpr:{{{7}}} > {{{8}}}|{{#invoke:String|sub|{{Next month|{{{1}}}}}|1|3}}|{{Next month|{{{1}}}}}}}</small> | | -->{{#ifexpr:{{{7}}} > {{{8}}}|{{#invoke:String|sub|{{Next month|{{{1}}}}}|1|3}}|{{Next month|{{{1}}}}}}}</small> | | ||
− | ! style="padding:0px; border: | + | ! style="padding:0px; border:1.5px solid black; background-color:#ffd966;" colspan="7" {{!}} <small>{{{1}}}</small> }} |
|- | |- | ||
− | ! style="padding:0px; border:1px solid black; border-left:solid black | + | ! style="padding:0px; border:1px solid black; border-left:solid black 1.5px; background-color:#ffd966;" | <small>{{{2}}}</small> |
− | ! style="padding:0px; border:1px solid black; border-left:solid black | + | ! style="padding:0px; border:1px solid black; border-left:solid black 1.5px; background-color:#ffd966;" | <small>{{{3}}}</small> |
− | ! style="padding:0px; border:1px solid black; border-left:solid black | + | ! style="padding:0px; border:1px solid black; border-left:solid black 1.5px; background-color:#ffd966;" | <small>{{{4}}}</small> |
− | ! style="padding:0px; border:1px solid black; border-left:solid black | + | ! style="padding:0px; border:1px solid black; border-left:solid black 1.5px; background-color:#ffd966;" | <small>{{{5}}}</small> |
− | ! style="padding:0px; border:1px solid black; border-left:solid black | + | ! style="padding:0px; border:1px solid black; border-left:solid black 1.5px; background-color:#ffd966;" | <small>{{{6}}}</small> |
− | ! style="padding:0px; border:1px solid black; border-left:solid black | + | ! style="padding:0px; border:1px solid black; border-left:solid black 1.5px; background-color:#ffd966;" | <small>{{{7}}}</small> |
− | ! style="padding:0px; border:1px solid black; border-left:solid black | + | ! style="padding:0px; border:1px solid black; border-left:solid black 1.5px; background-color:#ffd966;" | <small>{{{8}}}</small> |
|- | |- | ||
− | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black | + | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black 1.5px; border-bottom:solid black 1.5px; background-color:#fff2cc;" | <small>Sun</small> |
− | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black | + | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black 1.5px; border-bottom:solid black 1.5px; background-color:#fff2cc;" | <small>Mon</small> |
− | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black | + | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black 1.5px; border-bottom:solid black 1.5px; background-color:#fff2cc;" | <small>Tue</small> |
− | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black | + | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black 1.5px; border-bottom:solid black 1.5px; background-color:#fff2cc;" | <small>Wed</small> |
− | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black | + | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black 1.5px; border-bottom:solid black 1.5px; background-color:#fff2cc;" | <small>Thu</small> |
− | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black | + | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black 1.5px; border-bottom:solid black 1.5px; background-color:#fff2cc;" | <small>Fri</small> |
− | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black | + | ! style="width:32px; padding:0px; border:solid black 1px; border-left:solid black 1.5px; border-bottom:solid black 1.5px; background-color:#fff2cc;" | <small>Sat</small></includeonly> |
Revision as of 11:06, 2 March 2019
Usage
The Schedule week header template is used together with one or more invocations of Schedule week row in order to display an event schedule for a specific week, starting on a Sunday.
The first parameter is the name of the month on the first day of the week.
The next seven parameters are the day of the month numbers for the week.
This template opens a table, which must be closed in the usual way ("|}").
Example
The following shorthand:
{{Schedule week header|February|24|25|26|27|28|1|2}} {{Schedule week row|pre=pvp,5|Rising Tensions|2,1|3,1|4,1|5,1|6,1}} {{Schedule week row|Training Grounds|1,1|2,1|3,1|4,1|5,1|6,1|7,1}} {{Schedule week row|Trial of the Planes|2,1|3,1|4,1|5,1|6,1}} {{Schedule week row|Hour of Revelation|1,2}} {{Schedule week row|Terrors in the Shadows|2,3}} {{Schedule week row|pre=pve,4|Oath of the Gatewatch: Part 1|3,3}} {{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}} |}
Produces:
Event schedule 24th February 25 |
February | March | |||||||
---|---|---|---|---|---|---|---|---|---|
24 | 25 | 26 | 27 | 28 | 1 | 2 | |||
Sun | Mon | Tue | Wed | Thu | Fri | Sat | |||
PvP |
RT | |
|
|
|
|
|
||
TG | |
|
|
|
|
|
|
||
TotP | |
|
|
|
|
|
|||
HoR | |
Coalition |
|||||||
TiS | |
|
|||||||
PvE |
OGW:1 | |
|
||||||
OGW:2 | |
||||||||
RGP | |
Coalition | |||||||
TdR | |
|