Difference between revisions of "Template:Calendar"
From Twilight Heroes Wiki
m (Learned a new trick to avoid whitespace) |
|||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | <!-- Variable definitions --> | + | <!-- Variable definitions -->{{ |
− | {{#vardefine:sr|{{#switch:{{{start|?}}}||?=1|#default={{{start}}}}}}}{{#vardefine:len|{{#switch:{{{mlen|?}}}||?=31|#default={{{mlen}}}}}}}{{#vardefine:mb|{{#switch:{{{mbg|?}}}||?=white|#default={{{mbg}}}}}}}{{#vardefine:mt|{{#switch:{{{mtx|?}}}||?=black|#default={{{mtx}}}}}}}{{#vardefine:db|{{#switch:{{{dbg|?}}}||?=white|#default={{{dbg}}}}}}}{{#vardefine:dt|{{#switch:{{{dtx|?}}}||?=black|#default={{{dtx}}}}}}} | + | #vardefine:sr|{{#switch:{{{start|?}}}||?=1|#default={{{start}}}}}}}{{ |
− | {{#vardefine:fb|{{#switch:{{{fbg|?}}}||?=white|#default={{{fbg}}}}}}}{{#vardefine:ft|{{#switch:{{{ftx|?}}}||?=black|#default={{{ftx}}}}}}}{{#vardefine:sb|{{#switch:{{{sbg|?}}}||?=white|#default={{{sbg}}}}}}}{{#vardefine:st|{{#switch:{{{stx|?}}}||?=black|#default={{{stx}}}}}}}{{#vardefine:cb|{{#switch:{{{bg|?}}}||?=white|#default={{{bg}}}}}}}{{#vardefine:ct|{{#switch:{{{tx|?}}}||?=black|#default={{{tx}}}}}}} | + | #vardefine:len|{{#switch:{{{mlen|?}}}||?=31|#default={{{mlen}}}}}}}{{ |
− | {{#vardefine:n|{{#expr:-{{#var:sr}}+2}}}}{{#vardefine:my|{{{month}}} {{{year}}}}} | + | #vardefine:mb|{{#switch:{{{mbg|?}}}||?=white|#default={{{mbg}}}}}}}{{ |
− | + | #vardefine:mt|{{#switch:{{{mtx|?}}}||?=black|#default={{{mtx}}}}}}}{{ | |
+ | #vardefine:db|{{#switch:{{{dbg|?}}}||?=white|#default={{{dbg}}}}}}}{{ | ||
+ | #vardefine:dt|{{#switch:{{{dtx|?}}}||?=black|#default={{{dtx}}}}}}} | ||
+ | {{#vardefine:fb|{{#switch:{{{fbg|?}}}||?=white|#default={{{fbg}}}}}}}{{ | ||
+ | #vardefine:ft|{{#switch:{{{ftx|?}}}||?=black|#default={{{ftx}}}}}}}{{ | ||
+ | #vardefine:sb|{{#switch:{{{sbg|?}}}||?=white|#default={{{sbg}}}}}}}{{ | ||
+ | #vardefine:st|{{#switch:{{{stx|?}}}||?=black|#default={{{stx}}}}}}}{{ | ||
+ | #vardefine:cb|{{#switch:{{{bg|?}}}||?=white|#default={{{bg}}}}}}}{{ | ||
+ | #vardefine:ct|{{#switch:{{{tx|?}}}||?=black|#default={{{tx}}}}}}}{{ | ||
+ | #vardefine:n|{{#expr:-{{#var:sr}}+2}}}}{{#vardefine:my|{{{month}}} {{{year}}}}} | ||
<!-- Actual thing --> | <!-- Actual thing --> | ||
{| cellpadding="5" cellspacing="1" border="1" align="center" style="text-align:center" | {| cellpadding="5" cellspacing="1" border="1" align="center" style="text-align:center" |