User talk:Xolatron/SW date

From Wikipedia, the free encyclopedia

The non-subst-messed code for this is as follows:

{{#ifexpr:{{CURRENTMONTH}}=02 and {{CURRENTDAY}}=29|Leap Day {{CURRENTYEAR}}|
{{#expr:{{User:Xolatron/SW date/number}}-{{#switch:{{User:Xolatron/SW date/month}}
  |1  = 0
  |2  = 35
  |3  = 70
  |4  = 105
  |5  = 110
  |6  = 145
  |7  = 180
  |8  = 215
  |9  = 220
  |10 = 255
  |11 = 290
  |12 = 325
  |13 = 360
}} }}
{{#switch:{{User:Xolatron/SW date/month}}
  |1  = Elona
  |2  = Kelona
  |3  = Selona
  |4  = Expansion
  |5  = Telona
  |6  = Nelona
  |7  = Helona
  |8  = Shelova
  |9  = Melona
  |10 = Yelona
  |11 = Relona
  |12 = Welona
  |13 = Winter Fete
}}
{{#expr:{{CURRENTYEAR}}+({{CURRENTMONTH}}=01 and {{CURRENTDAY}}<11)}}{{#switch:{{User:Xolatron/SW date/number}}
  |70  = : Tapani Day
  |145 = : Productivity Day
  |220 = : Harvest Day
}}
}}