Difference between revisions of "Template:Calendar"
From Twilight Heroes Wiki
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<!-- Variable definitions --> | <!-- Variable definitions --> | ||
− | {{#vardefine: | + | {{#vardefine:sr|{{#switch:{{{start|?}}}||?=1|#default={{{start}}}}}}} |
{{#vardefine:len|{{#switch:{{{mlen|?}}}||?=31|#default={{{mlen}}}}}}} | {{#vardefine:len|{{#switch:{{{mlen|?}}}||?=31|#default={{{mlen}}}}}}} | ||
{{#vardefine:mb|{{#switch:{{{mbg|?}}}||?=white|#default={{{mbg}}}}}}} | {{#vardefine:mb|{{#switch:{{{mbg|?}}}||?=white|#default={{{mbg}}}}}}} | ||
Line 13: | Line 13: | ||
{{#vardefine:cb|{{#switch:{{{bg|?}}}||?=white|#default={{{bg}}}}}}} | {{#vardefine:cb|{{#switch:{{{bg|?}}}||?=white|#default={{{bg}}}}}}} | ||
{{#vardefine:ct|{{#switch:{{{tx|?}}}||?=black|#default={{{tx}}}}}}} | {{#vardefine:ct|{{#switch:{{{tx|?}}}||?=black|#default={{{tx}}}}}}} | ||
− | {{#vardefine:n|{{#expr:-{{#var: | + | {{#vardefine:n|{{#expr:-{{#var:sr}}+2}}}} |
{{#vardefine:my|{{{month}}} {{{year}}}}} | {{#vardefine:my|{{{month}}} {{{year}}}}} | ||