Difference between revisions of "Template:CalendarSingle"

From FollowTheScore
Jump to: navigation, search
 
(35 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
{| class="toccolours" style="float:{{{float|none}}}; margin-left: 1em; text-align:center;" border=1 cellpadding=2 cellspacing=0
 
{| class="toccolours" style="float:{{{float|none}}}; margin-left: 1em; text-align:center;" border=1 cellpadding=2 cellspacing=0
 
|- style="background-color: LightSteelBlue;"
 
|- style="background-color: LightSteelBlue;"
|[[Special:Call/:{{{basepage}}},year={{#time:Y|{{{year}}}-{{{month}}}-03 -1 month}},month={{#time:m|{{{year}}}-{{{month}}}-03 -1 month}},basepage={{{basepage}}}|<<]]
+
|[[Special:Call/:{{{basepage}}},year={{#time:Y|{{{year}}}-{{{month}}}-03 -1 month}},month={{#time:m|{{{year}}}-{{{month}}}-03 -1 month}},basepage={{{basepage}}},eventList={{{eventList|}}},purpose={{#var:purpose}},nolink={{#var:nolink}},noadd={{#var:noadd}},show={{#var:show}},namespace={{#var:namespace}},width={{#var:width}}|<<]]
|colspan="5" style="text-align: center;"| '''{{#time:F|{{{year}}}-{{{month}}}-03}}'''
+
|colspan="5" style="text-align: center;"|
|[[Special:Call/:{{{basepage}}},year={{#time:Y|{{{year}}}-{{{month}}}-03 +1 month}},month={{#time:m|{{{year}}}-{{{month}}}-03 +1 month}},basepage={{{basepage}}}|>>]]
+
'''{{#time:F|{{{year}}}-{{{month}}}-03}}'''
 +
{{#if:{{#var:purpose}}|<br>{{#replace:{{#replace:{{#replace:²²:Category:{{#var:purpose}}³³|¦|³³, ²²:Category:}}|²|[}}|³|]}}}}
 +
|[[Special:Call/:{{{basepage}}},year={{#time:Y|{{{year}}}-{{{month}}}-03 +1 month}},month={{#time:m|{{{year}}}-{{{month}}}-03 +1 month}},basepage={{{basepage}}},eventList={{{eventList|}}},purpose={{#var:purpose}},nolink={{#var:nolink}},noadd={{#var:noadd}},show={{#var:show}},namespace={{#var:namespace}},width={{#var:width}}|>>]]
 
|- style="background-color: LightSteelBlue; border: none;"
 
|- style="background-color: LightSteelBlue; border: none;"
 
|width=14%|Mo
 
|width=14%|Mo
Line 14: Line 16:
 
|width=14%|Su
 
|width=14%|Su
 
|-
 
|-
{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-01 +1 second}}
+
{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-16}}<!-- change to '15' if months start at the wrong day -->
 
|01={{Calendar link|year={{{year}}}|month={{{month}}}|day=01}}
 
|01={{Calendar link|year={{{year}}}|month={{{month}}}|day=01}}
 
|02={{Calendar link|year={{{year}}}|month={{{month}}}|day=02}}
 
|02={{Calendar link|year={{{year}}}|month={{{month}}}|day=02}}
Line 42: Line 44:
 
|26={{Calendar link|year={{{year}}}|month={{{month}}}|day=26}}
 
|26={{Calendar link|year={{{year}}}|month={{{month}}}|day=26}}
 
|27={{Calendar link|year={{{year}}}|month={{{month}}}|day=27}}
 
|27={{Calendar link|year={{{year}}}|month={{{month}}}|day=27}}
|28={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-01}} >= 28|{{Calendar link|year={{{year}}}|month={{{month}}}|day=28}}}}<!-- May not exist -->
+
|28={{Calendar link|year={{{year}}}|month={{{month}}}|day=28}}
|29={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-01}} >= 29|{{Calendar link|year={{{year}}}|month={{{month}}}|day=29}}}}<!-- May not exist -->
+
|29={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-15}} >= 29|{{Calendar link|year={{{year}}}|month={{{month}}}|day=29}}|&nbsp;}}<!-- May not exist -->
|30={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-01}} >= 30|{{Calendar link|year={{{year}}}|month={{{month}}}|day=30}}}}<!-- May not exist -->
+
|30={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-15}} >= 30|{{Calendar link|year={{{year}}}|month={{{month}}}|day=30}}|&nbsp;}}<!-- May not exist -->
|31={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-01}} >= 31|{{Calendar link|year={{{year}}}|month={{{month}}}|day=31}}}}<!-- May not exist -->
+
|31={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-15}} >= 31|{{Calendar link|year={{{year}}}|month={{{month}}}|day=31}}|&nbsp;}}<!-- May not exist -->
 
|year={{#if:{{{show_year|}}}|{{{year}}}}}
 
|year={{#if:{{{show_year|}}}|{{{year}}}}}
 
}}
 
}}
Line 53: Line 55:
 
}}
 
}}
 
|- style="background-color: LightSteelBlue;"
 
|- style="background-color: LightSteelBlue;"
|colspan=5|&nbsp;
+
|colspan=2|&nbsp;
 +
|colspan=3|&nbsp;
 
|colspan=2|
 
|colspan=2|
{{#ifeq:{{{showAll|}}}|true|[[Special:Call/Calendar month,showAll=false,basepage=Current events,year={{{year|}}},month={{{month|}}}|current events]]|[[Special:Call/Calendar month,showAll=true,basepage=Current events,year={{{year|}}},month={{{month|}}}|all events]]}}
+
{{#switch:{{{eventList|}}}
 +
|all=[[Special:Call/Calendar month,eventList=current,basepage=Current events,year={{{year|}}},month={{{month|}}},purpose={{#var:purpose}}|current events]]
 +
|no=[[Special:Call/Calendar month,eventList=current,basepage=Current events,year={{{year|}}},month={{{month|}}},purpose={{#var:purpose}}|current events]]
 +
|current=[[Special:Call/Calendar month,eventList=all,basepage=Current events,year={{{year|}}},month={{{month|}}},purpose={{#var:purpose}}|all events]]
 +
}}
 
|}
 
|}
 
</includeonly><noinclude>[[Category:Calendar Templates]]</noinclude>
 
</includeonly><noinclude>[[Category:Calendar Templates]]</noinclude>

Latest revision as of 09:42, 26 December 2007