Template:Age/doc

From Rigged Wiki
< Template:Age
Revision as of 00:57, 30 April 2022 by F4r (talk | contribs) (Created page with "{{Documentation subpage}} Age template is used to calculate the time between two dates. If no date, or incomplete date, is selected an error message will show up. == Usage == To properly calculate date please use the following formula: <pre>{{Age|Older Year|Older Month|Older Day|Newer Year|Newer Month|Newer Day}}</pre> If only one date is selected it calculates time from today to that date. <pre>{{Age|Year|Month|Day}}</pre> Or you can use day=| month=| year=| in any o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Mbox Age template is used to calculate the time between two dates. If no date, or incomplete date, is selected an error message will show up.

Usage

To properly calculate date please use the following formula:

{{Age|Older Year|Older Month|Older Day|Newer Year|Newer Month|Newer Day}}

If only one date is selected it calculates time from today to that date.

{{Age|Year|Month|Day}}

Or you can use day=| month=| year=| in any order you want:

{{Age|month=number of the month|day=number of the day|year=number of the year}}

Please do not use names for months, use numbers.

Examples

{{Age|1989|7|23}}

→ 35 years, 7 months and 12 days

{{Age|1989|7|23|2003|7|24}}

→ 14 years and 1 day

{{Age|2007|03|02|2008|03|02}}

→ 1 year

{{Age|month=01|day=23|year=1989}}

→ 36 years, 1 month and 12 days

{{Age|year=1989}}

→ 35 or 36 years