User:WindyZ/Age in days: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(Template created because there may be cases where counting by days is necessary.) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#expr: | <includeonly>{{#expr: | ||
+ {{Gregorian serial date | + {{User:WindyZ/Gregorian serial date | ||
|month = {{{month2|{{{5|{{CURRENTMONTH}}}}}}}} | |month = {{{month2|{{{5|{{CURRENTMONTH}}}}}}}} | ||
|day = {{{day2|{{{6|{{CURRENTDAY}}}}}}}} | |day = {{{day2|{{{6|{{CURRENTDAY}}}}}}}} | ||
|year = {{{year2|{{{4|{{CURRENTYEAR}}}}}}}} | |year = {{{year2|{{{4|{{CURRENTYEAR}}}}}}}} | ||
}} | }} | ||
- {{Gregorian serial date | - {{User:WindyZ/Gregorian serial date | ||
|month = {{{month1|{{{2|{{CURRENTMONTH}}}}}}}} | |month = {{{month1|{{{2|{{CURRENTMONTH}}}}}}}} | ||
|day = {{{day1|{{{3|{{CURRENTDAY}}}}}}}} | |day = {{{day1|{{{3|{{CURRENTDAY}}}}}}}} |
Latest revision as of 23:39, December 2, 2024
- The text of this documentation is at User:WindyZ/Age in days/doc. Go there to edit it.
This template returns the number of days between two specified dates. If the second set of parameters is not included, it will return the number of days between a specified date and today's date.
- Syntax:
- {{User:WindyZ/Age in days|year1|month1|day1|year2|month2|day2}} or
- {{User:WindyZ/Age in days|year1|month1|day1}}
- Examples:
- {{User:WindyZ/Age in days|1970|8|3|1999|1|21}} returns "10398"
- {{User:WindyZ/Age in days|1999|1|21}} returns "9450"
- {{User:WindyZ/Age in days|2018|12|7}} returns "2190"
- When using this template to calculate a person's age in days at death or a person's age in days on a specified date (rather than the person's current age in days), please substitute it into the page.
- Example: {{subst:User:WindyZ/Age in days|2018|12|7}}
- Universes:
- Super Mario: {{User:WindyZ/Age in days|1985|9|13}} returns "14328"
- The Legend of Zelda: {{User:WindyZ/Age in days|1986|2|21}} returns "14167"
- Mario and Donkey Kong in 20,000 days: {{User:WindyZ/Age in days|1981|7|9|2036|4|11}} returns "20000" (Transcluded documentation: view)