Template:Day2000: Difference between revisions

From VOC Wiki
Jump to navigation Jump to search
imported>ScottN
m Temple:day2000 moved to Template:Day2000: fix namespace
imported>ScottN
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexpr: {{{2|1}}}=1| {{#expr: {{{1|1}}} + 0   + ({{{3|2000}}}-2000)*365 + ({{{3|2000}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=1|{{#expr: {{{1|1}}} + 0 + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1999)/4)round 0}}}}
{{#ifexpr: {{{2}}}=2| {{#expr:{{{1}}} + 31 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=2|{{#expr:{{{1}}} + 31   + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1999)/4)round 0}}}}
{{#ifexpr: {{{2}}}=3| {{#expr:{{{1}}} + 59 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=3|{{#expr:{{{1}}} + 59   + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
{{#ifexpr: {{{2}}}=4| {{#expr:{{{1}}} + 90 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=4|{{#expr:{{{1}}} + 90   + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
{{#ifexpr: {{{2}}}=5| {{#expr:{{{1}}} + 120 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=5|{{#expr:{{{1}}} + 120   + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
{{#ifexpr: {{{2}}}=6| {{#expr:{{{1}}} + 151 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=6|{{#expr:{{{1}}} + 151   + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
{{#ifexpr: {{{2}}}=7| {{#expr:{{{1}}} + 181 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=7|{{#expr:{{{1}}} + 181   + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
{{#ifexpr: {{{2}}}=8| {{#expr:{{{1}}} + 212 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=8|{{#expr:{{{1}}} + 212   + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
{{#ifexpr: {{{2}}}=9| {{#expr:{{{1}}} + 243 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=9|{{#expr:{{{1}}} + 243   + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
{{#ifexpr: {{{2}}}=10| {{#expr:{{{1}}} + 273 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=10|{{#expr:{{{1}}} + 273 + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
{{#ifexpr: {{{2}}}=11| {{#expr:{{{1}}} + 304 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=11|{{#expr:{{{1}}} + 304 + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
{{#ifexpr: {{{2}}}=12| {{#expr:{{{1}}} + 364 + {{{3}}}*365 + ({{{3}}}-2000)/4}}}}
{{#ifexpr: {{{2|1}}}=12|{{#expr:{{{1}}} + 334  + ({{{3|2000}}}-2000)*365 + (({{{3|2000}}}-1998)/4)round 0}}}}
<noinclude>
This template returns the number of days from the start of the year 2000.  Arguments are day|month|year
 
==usage==
 
<nowiki>{{day2000|30|03|2008}}
 
==examples==
 
{{day2000|30|03|2008}}
{{day2000|5|2|2000}}

Latest revision as of 02:49, 16 September 2008

1