Template:Duration/doc

From Darkan
Jump to navigation Jump to search
Documentation This is a documentation subpage for Template:Duration.
It contains usage information, categories, and other content that is not part of the original template page.

Usage

Place {{Duration|Month=1 until 12|Day=1 until 31}} on the page.

Note that 01 in the Month parameter is not allowed, but 01 in the Day parameter is allowed.

If you want to add a year, simply add {{Duration|Month=9|Day=11|Year=2009}}

If you want to hide the " days" behind this, please place {{Duration|'|'(other things)}} on the page(one extra | at the first parameter). It has to be the first parameter, or else it won't work.

Examples

An example for 9/11 of this year (Month=9, Day=11) is:

9/11/2024 is currently 97 days days ago.


An example for 9/11 of 2009 (Month=9, Day=11, Year=2009) is:

9/11/2009 is currently 5575 days days ago.


Other short way

You could also place {{Duration|time=11-9-2009}} on the page to show 5575 days. You should mind however that it must be in the order of (d)d-(m)m(-yyyy) to let it work. If no year is filled in, the current year is taken. For example, you could fill in 02-01-2000 or 2-1-2000, and you could also just add 2-1 to see the amount of days since 2 january this year. Also just 2 1 2000 won't work.