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:sr|{{#switch:{{{start|?}}}||?=1|#default={{{start}}}}}}}
+
{{#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:len|{{#switch:{{{mlen|?}}}||?=31|#default={{{mlen}}}}}}}
+
{{#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:mb|{{#switch:{{{mbg|?}}}||?=white|#default={{{mbg}}}}}}}
+
{{#vardefine:n|{{#expr:-{{#var:sr}}+2}}}}{{#vardefine:my|{{{month}}} {{{year}}}}}
{{#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 -->

Revision as of 08:04, 22 February 2010