From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(sorry for dragging you into this Proc, but I've figured it out (oh, and I undid whatever you did))
(fixing)
Line 1: Line 1:
{{#vardefine:month|08}}{{#vardefine:year|2007}}{{#vardefine:day|09}}{{#vardefine:old|{{#switch:{{#var:month}}|01=0|02=31|03=59|04=90|05=120|06=151|07=181|08=211|09=242|10=272|11=303|12=333}}}}{{#vardefine:a|{{#ifeq:{{#expr:{{#var:month}} > 2}}|1|0|-30}}}}{{#vardefine:a|{{#ifeq:{{#expr:{{#var:year}} mod 400}}|0|{{#expr:{{#var:a}} + 2}}|{{#var:a}}}}}}{{#vardefine:a|{{#ifeq:{{#expr:{{#var:year}} mod 100}}|0|{{#expr:{{#var:a}} + 4}}|{{#var:a}}}}}}{{#vardefine:a|{{#ifeq:{{#expr:{{#var:year}} mod 4}}|0|{{#expr:{{#var:a}} + 8}}|{{#var:a}}}}}}{{#vardefine:old|{{#switch:{{#var:a}}|2|6|8|10|14={{#expr:{{#var:old}} + 1}}|{{#var:old}}}}}}{{#vardefine:leap|{{#switch:{{#var:a}}|2|6|8|10|14=1|0}}}}{{#vardefine:current|{{#switch:{{CURRENTMONTH}}|01=0|02=31|03=59|04=90|05=120|06=151|07=181|08=211|09=242|10=272|11=303|12=333}}}}{{#vardefine:b|{{#ifeq:{{#expr:{{CURRENTMONTH}} > 2}}|1|0|-30}}}}{{#vardefine:b|{{#ifeq:{{#expr:{{CURRENTYEAR}} mod 400}}|0|{{#expr:{{#var:b}} + 2}}|{{#var:b}}}}}}{{#vardefine:b|{{#ifeq:{{#expr:{{CURRENTYEAR}} mod 100}}|0|{{#expr:{{#var:b}}+4}}|{{#var:b}}}}}}{{#vardefine:b|{{#ifeq:{{#expr:{{CURRENTYEAR}} mod 4}}|0|{{#expr:{{#var:b}}+8}}|{{#var:b}}}}}}{{#vardefine:current|{{#switch:{{#var:b}}|2|6|8|10|14={{#expr:{{#var:current}} + 1}}|{{#var:current}}}}}}{{#vardefine:current|{{#expr:{{#var:current}} + ({{CURRENTYEAR}} - {{#var:year}}) * 364}}}}{{#vardefine:current|{{#ifeq:{{#expr:{{CURRENTYEAR}} - {{#var:year}} != 0 and {{#var:leap}} = 1}}|1|{{#expr:{{#var:current}} + 1}}|{{#var:current}}}}}}{{#vardefine:old|{{#expr:{{#var:day}} + {{#var:old}}}}}}{{#vardefine:current|{{#expr:{{CURRENTDAY}} + {{#var:current}}}}}}{{#vardefine:shade|{{#expr:{{#var:current}} - {{#var:old}}}}}}{{#switch:{{#var:shade}}
<includeonly>{{#vardefine:month|{{{month}}}}}{{#vardefine:year|{{{year|}}}}}{{#vardefine:day|{{{day}}}}}{{#vardefine:old|{{#switch:{{#var:month}}|01=0|02=31|03=59|04=90|05=120|06=151|07=181|08=211|09=242|10=272|11=303|12=333}}}}{{#vardefine:a|{{#ifeq:{{#expr:{{#var:month}} > 2}}|1|0|-30}}}}{{#vardefine:a|{{#ifeq:{{#expr:{{#var:year}} mod 400}}|0|{{#expr:{{#var:a}} + 2}}|{{#var:a}}}}}}{{#vardefine:a|{{#ifeq:{{#expr:{{#var:year}} mod 100}}|0|{{#expr:{{#var:a}} + 4}}|{{#var:a}}}}}}{{#vardefine:a|{{#ifeq:{{#expr:{{#var:year}} mod 4}}|0|{{#expr:{{#var:a}} + 8}}|{{#var:a}}}}}}{{#vardefine:old|{{#switch:{{#var:a}}|2|6|8|10|14={{#expr:{{#var:old}} + 1}}|{{#var:old}}}}}}{{#vardefine:leap|{{#switch:{{#var:a}}|2|6|8|10|14=1|0}}}}{{#vardefine:current|{{#switch:{{CURRENTMONTH}}|01=0|02=31|03=59|04=90|05=120|06=151|07=181|08=211|09=242|10=272|11=303|12=333}}}}{{#vardefine:b|{{#ifeq:{{#expr:{{CURRENTMONTH}} > 2}}|1|0|-30}}}}{{#vardefine:b|{{#ifeq:{{#expr:{{CURRENTYEAR}} mod 400}}|0|{{#expr:{{#var:b}} + 2}}|{{#var:b}}}}}}{{#vardefine:b|{{#ifeq:{{#expr:{{CURRENTYEAR}} mod 100}}|0|{{#expr:{{#var:b}}+4}}|{{#var:b}}}}}}{{#vardefine:b|{{#ifeq:{{#expr:{{CURRENTYEAR}} mod 4}}|0|{{#expr:{{#var:b}}+8}}|{{#var:b}}}}}}{{#vardefine:current|{{#switch:{{#var:b}}|2|6|8|10|14={{#expr:{{#var:current}} + 1}}|{{#var:current}}}}}}{{#vardefine:current|{{#expr:{{#var:current}} + ({{CURRENTYEAR}} - {{#var:year}}) * 364}}}}{{#vardefine:current|{{#ifeq:{{#expr:{{CURRENTYEAR}} - {{#var:year}} != 0 and {{#var:leap}} = 1}}|1|{{#expr:{{#var:current}} + 1}}|{{#var:current}}}}}}{{#vardefine:old|{{#expr:{{#var:day}} + {{#var:old}}}}}}{{#vardefine:current|{{#expr:{{CURRENTDAY}} + {{#var:current}}}}}}{{#vardefine:shade|{{#expr:{{#var:current}} - {{#var:old}}}}}}{{#switch:{{#var:shade}}
|1=FAFAFA
|1=FAFAFA
|2=F5F5F5
|2=F5F5F5
Line 78: Line 78:
|79=EEEEFF
|79=EEEEFF
|FFFFFF
|FFFFFF
}}<noinclude>
}}</includeonly><noinclude>


'''Do not modify this template unless your knowledge of parser functions is very high!''' This template gives a color code based off of a given time and the current time. It alternates from white, to gray, to black, to blue, and then back to white, where it stops.  
'''Do not modify this template unless your knowledge of parser functions is very high!''' This template gives a color code based off of a given time and the current time. It alternates from white, to gray, to black, to blue, and then back to white, where it stops.  


[[Category:Templates|V]]</noinclude>
[[Category:Templates|V]]</noinclude>

Revision as of 22:00, 16 August 2007


Do not modify this template unless your knowledge of parser functions is very high! This template gives a color code based off of a given time and the current time. It alternates from white, to gray, to black, to blue, and then back to white, where it stops.