Difference between revisions of "Template:Age in days"
Jump to navigation
Jump to search
Ryperiour2 (talk | contribs) |
|||
Line 23: | Line 23: | ||
If the second set of parameters is not included it will automatically calculate the days between a given date and today. To use type: '''<nowiki>{{Age in days|month1= |day1= |year1= |month2= |day2= | year2=}}</nowiki>''' | If the second set of parameters is not included it will automatically calculate the days between a given date and today. To use type: '''<nowiki>{{Age in days|month1= |day1= |year1= |month2= |day2= | year2=}}</nowiki>''' | ||
The end date will default to the current date if the second set of parameters is not used. '''<nowiki>{{Age in days|month1= |day1= |year1= }}</nowiki>''' | |||
</noinclude> | </noinclude> |
Revision as of 04:10, 30 April 2022
Template Parameters (See using templates). | |||
---|---|---|---|
Name | Purpose | Required? | Comment |
month1 | month of start date | no (see note) | defaults to current month |
day1 | day of month of start date | no (see note) | defaults to today's date |
year1 | year of start date | no (see note) | defaults to current year |
month2 | month of end date | no (see note) | defaults to current month |
day2 | day of month of end date | no (see note) | defaults to today's date |
year2 | year of end date | no (see note) | defaults to current year |
Note: It is pointless omitting all parameters, as the calculation will then return zero (the number of days between today and today).
If the second set of parameters is not included it will automatically calculate the days between a given date and today. To use type: {{Age in days|month1= |day1= |year1= |month2= |day2= | year2=}} The end date will default to the current date if the second set of parameters is not used. {{Age in days|month1= |day1= |year1= }}