Difference between revisions of "Template:Calendar"

From Twilight Heroes Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
<!-- Variable definitions -->
 
<!-- Variable definitions -->
{{#vardefine:st|{{#switch:{{{start|?}}}||?=1|#default={{{start}}}}}}}
+
{{#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:st}}+2}}}}
+
{{#vardefine:n|{{#expr:-{{#var:sr}}+2}}}}
 
{{#vardefine:my|{{{month}}} {{{year}}}}}
 
{{#vardefine:my|{{{month}}} {{{year}}}}}
  

Revision as of 19:25, 7 December 2008