Difference between revisions of "Template:CalendarSingle"

From FollowTheScore
Jump to: navigation, search
m
 
(56 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
+
{| class="toccolours" style="float:{{{float|none}}}; margin-left: 1em; text-align:center;" border=1 cellpadding=2 cellspacing=0
{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-01 +1 second}}
+
|- style="background-color: LightSteelBlue;"
|cur_month=[[{{#time:F|{{{year}}}-{{{month}}}-03}}]]
+
|[[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}}|<<]]
|prev_month=[[{{#time:F|{{{year}}}-{{{month}}}-03 last month}}|<<]]
+
|colspan="5" style="text-align: center;"|
|next_month=[[{{#time:F|{{{year}}}-{{{month}}}-03 next month}}|>>]]
+
'''{{#time:F|{{{year}}}-{{{month}}}-03}}'''
|01={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/01%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=01}}|01}}
+
{{#if:{{#var:purpose}}|<br>{{#replace:{{#replace:{{#replace:²²:Category:{{#var:purpose}}³³|¦|³³, ²²:Category:}}|²|[}}|³|]}}}}
|02={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/02%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=02}}|02}}
+
|[[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}}|>>]]
|03={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/03%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=03}}|03}}
+
|- style="background-color: LightSteelBlue; border: none;"
|04={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/04%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=04}}|04}}
+
|width=14%|Mo
|05={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/05%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=05}}|05}}
+
|width=14%|Tu
|06={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/06%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=06}}|06}}
+
|width=14%|We
|07={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/07%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=07}}|07}}
+
|width=14%|Th
|08={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/08%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=08}}|08}}
+
|width=14%|Fr
|09={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/09%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=09}}|09}}
+
|width=14%|Sa
|10={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/10%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=10}}|10}}
+
|width=14%|Su
|11={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/11%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=11}}|11}}
+
|-
|12={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/12%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=12}}|12}}
+
{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-16}}<!-- change to '15' if months start at the wrong day -->
|13={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/13%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=13}}|13}}
+
|01={{Calendar link|year={{{year}}}|month={{{month}}}|day=01}}
|14={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/14%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=14}}|14}}
+
|02={{Calendar link|year={{{year}}}|month={{{month}}}|day=02}}
|15={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/15%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=15}}|15}}
+
|03={{Calendar link|year={{{year}}}|month={{{month}}}|day=03}}
|16={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/16%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=16}}|16}}
+
|04={{Calendar link|year={{{year}}}|month={{{month}}}|day=04}}
|17={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/17%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=17}}|17}}
+
|05={{Calendar link|year={{{year}}}|month={{{month}}}|day=05}}
|18={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/18%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=18}}|18}}
+
|06={{Calendar link|year={{{year}}}|month={{{month}}}|day=06}}
|19={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/19%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=19}}|19}}
+
|07={{Calendar link|year={{{year}}}|month={{{month}}}|day=07}}
|20={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/20%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=20}}|20}}
+
|08={{Calendar link|year={{{year}}}|month={{{month}}}|day=08}}
|21={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/21%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=21}}|21}}
+
|09={{Calendar link|year={{{year}}}|month={{{month}}}|day=09}}
|22={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/22%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=22}}|22}}
+
|10={{Calendar link|year={{{year}}}|month={{{month}}}|day=10}}
|23={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/23%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=23}}|23}}
+
|11={{Calendar link|year={{{year}}}|month={{{month}}}|day=11}}
|24={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/24%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=24}}|24}}
+
|12={{Calendar link|year={{{year}}}|month={{{month}}}|day=12}}
|25={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/25%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=25}}|25}}
+
|13={{Calendar link|year={{{year}}}|month={{{month}}}|day=13}}
|26={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/26%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=26}}|26}}
+
|14={{Calendar link|year={{{year}}}|month={{{month}}}|day=14}}
|27={{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/27%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=27}}|27}}
+
|15={{Calendar link|year={{{year}}}|month={{{month}}}|day=15}}
|28={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-01}} >= 28|{{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/28%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=28}}|28}}}}<!-- May not exist -->
+
|16={{Calendar link|year={{{year}}}|month={{{month}}}|day=16}}
|29={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-01}} >= 29|{{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/29%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=29}}|29}}}}<!-- May not exist -->
+
|17={{Calendar link|year={{{year}}}|month={{{month}}}|day=17}}
|30={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-01}} >= 30|{{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/30%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=30}}|30}}}}<!-- May not exist -->
+
|18={{Calendar link|year={{{year}}}|month={{{month}}}|day=18}}
|31={{#ifexpr:{{#time:t|{{{year}}}-{{{month}}}-01}} >= 31|{{#if: {{#dpl:debug=0|category=Events|titlematch={{{year}}}/{{{month}}}/31%}}|{{Calendar anchor|year={{{year}}}|month={{{month}}}|day=31}}|31}}}}<!-- May not exist -->
+
|19={{Calendar link|year={{{year}}}|month={{{month}}}|day=19}}
 +
|20={{Calendar link|year={{{year}}}|month={{{month}}}|day=20}}
 +
|21={{Calendar link|year={{{year}}}|month={{{month}}}|day=21}}
 +
|22={{Calendar link|year={{{year}}}|month={{{month}}}|day=22}}
 +
|23={{Calendar link|year={{{year}}}|month={{{month}}}|day=23}}
 +
|24={{Calendar link|year={{{year}}}|month={{{month}}}|day=24}}
 +
|25={{Calendar link|year={{{year}}}|month={{{month}}}|day=25}}
 +
|26={{Calendar link|year={{{year}}}|month={{{month}}}|day=26}}
 +
|27={{Calendar link|year={{{year}}}|month={{{month}}}|day=27}}
 +
|28={{Calendar link|year={{{year}}}|month={{{month}}}|day=28}}
 +
|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}}}-15}} >= 30|{{Calendar link|year={{{year}}}|month={{{month}}}|day=30}}|&nbsp;}}<!-- 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}}}}}
 
}}
 
}}
</includeonly>
+
|- style="background-color: LightSteelBlue;"
 +
{{#if:{{{year|}}}|
 +
{{!}}colspan="7" align=center{{!}}'''{{{year}}}'''
 +
}}
 +
|- style="background-color: LightSteelBlue;"
 +
|colspan=2|&nbsp;
 +
|colspan=3|&nbsp;
 +
|colspan=2|
 +
{{#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>

Latest revision as of 10:42, 26 December 2007