Template:THDayofWeek: Difference between revisions

From Twilight Heroes Wiki
Jump to navigation Jump to search
Dfmchfhf (talk | contribs)
m Format
m maybe maybe?
Line 6: Line 6:
     + ((({{CURRENTYEAR}} - 2006) / 4) round 0) - (({{CURRENTYEAR}} mod 4 = 0) and (({{CURRENTMONTH}} = 01) or ({{CURRENTMONTH}} = 02)))
     + ((({{CURRENTYEAR}} - 2006) / 4) round 0) - (({{CURRENTYEAR}} mod 4 = 0) and (({{CURRENTMONTH}} = 01) or ({{CURRENTMONTH}} = 02)))
     - 1776 <!-- Day number for the 16th November 2008 using this formula -->
     - 1776 <!-- Day number for the 16th November 2008 using this formula -->
     + (({{#time: H}} <= 4) and ({{#time: i}} <= 10))) mod 6}}
     + (({{#time: H}} >= 4) and ({{#time: i}} >= 10))) mod 6}}
   |0=Sunday
   |0=Sunday
   |1=Moonday
   |1=Moonday

Revision as of 05:14, 16 November 2008


Variable

Returns the day of the week in the game of today

Sample

Today is {{THDayofWeek}} returns:
Today is Thewsday