Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Countdown: Difference between revisions

Template page
Catrope (talk | contribs)
m adding note
Catrope (talk | contribs)
m aha
Line 1: Line 1:
<includeonly>
<includeonly>
{{#expr:{{#time:z|{{{1}}}{{{2}}}{{{3}}}}}-{{#time:z|{{{4|{{CURRENTYEAR}}}}}{{{5|{{CURRENTMONTH}}}}}{{{6|{{CURRENTDAY}}}}}}}}}
{{#expr:{{#time:z|{{{1}}}{{{2}}}{{{3}}}}}-{{#time:z|{{{4|{{CURRENTYEAR}}}}}{{{5|{{CURRENTMONTH}}}}}{{{6|{{CURRENTDAY2}}}}}}}}}
</includeonly><noinclude>
</includeonly><noinclude>
== Documentation ==
== Documentation ==
Line 17: Line 17:
:{{tlp|{{PAGENAME}}|2007|11|24|2007|07|31}}
:{{tlp|{{PAGENAME}}|2007|11|24|2007|07|31}}
::{{{{PAGENAME}}|2007|11|24|2007|07|31}}
::{{{{PAGENAME}}|2007|11|24|2007|07|31}}
{{{{PAGENAME}}|2007|11|24|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}


[[Category:Mathematical templates|{{PAGENAME}}]]
[[Category:Mathematical templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 17:18, 1 August 2007

Documentation

This template displays the amount of days between two different dates.

Note: This template does not work across years.

Syntax

{{Countdown|year1|month1|day1|year2|month2|day2}}
Displays the difference between the two dates given.
{{Countdown|year1|month1|day1}}
Displays the difference between the given date and today.

Examples

{{Countdown|2007|11|24}}

-30

{{Countdown|2007|11|24|2007|07|31}}

116


-30