Difference between revisions of "Template:THDayofWeek"

From Twilight Heroes Wiki
Jump to: navigation, search
m (maybe maybe?)
m (fixing linebreak issue)
Line 1: Line 1:
<!-- This function works by finding the number of days which have elapsed since the 16th November 2008, which was a Sunday, and which also was the day after this function was (first) made. -->
+
<!-- This function works by finding the number of days which have elapsed since the 16th November 2008, which was a Sunday, and which also was the day after this function was (first) made. --><includeonly>{{#switch: <!-- SWITCH for determining name of day -->
<includeonly>{{#switch: <!-- SWITCH for determining name of day -->
 
 
   {{#expr: ({{CURRENTDAY}}
 
   {{#expr: ({{CURRENTDAY}}
 
     + {{#switch:{{CURRENTMONTH}}|01=0|02=31|03=59|04=90|05=120|06=151|07=181|08=212|09=243|10=273|11=304|12=334}}
 
     + {{#switch:{{CURRENTMONTH}}|01=0|02=31|03=59|04=90|05=120|06=151|07=181|08=212|09=243|10=273|11=304|12=334}}
Line 13: Line 12:
 
   |4=Starsday
 
   |4=Starsday
 
   |5=Frayday
 
   |5=Frayday
}}</includeonly>
+
}}</includeonly><noinclude>
<noinclude>
 
 
==Variable==
 
==Variable==
 
Returns the day of the week in the game of today
 
Returns the day of the week in the game of today

Revision as of 21:30, 15 November 2008

Variable

Returns the day of the week in the game of today

Sample

Today is {{THDayofWeek}} returns:
Today is Starsday