Difference between revisions of "Template:Age in days"

From Conservapedia
Jump to navigation Jump to search
m (Update documentation)
m (Templates renamed)
Line 13: Line 13:
 
</noinclude><noinclude>
 
</noinclude><noinclude>
 
{{TemplateDoc|pages=Any|purpose=Calculates the number of days between two dates|cat=Date mathematics templates}}
 
{{TemplateDoc|pages=Any|purpose=Calculates the number of days between two dates|cat=Date mathematics templates}}
−
{{Parms2|
+
{{Parms|
−
{{Parm2|month1|month of start date|no (see note)|defaults to current month}}
+
{{Parm|month1|month of start date|no (see note)|defaults to current month}}
−
{{Parm2|day1|day of month of start date|no (see note)|defaults to today's date}}
+
{{Parm|day1|day of month of start date|no (see note)|defaults to today's date}}
−
{{Parm2|year1|year of start date|no (see note)|defaults to current year}}
+
{{Parm|year1|year of start date|no (see note)|defaults to current year}}
−
{{Parm2|month2|month of end date|no (see note)|defaults to current month}}
+
{{Parm|month2|month of end date|no (see note)|defaults to current month}}
−
{{Parm2|day2|day of month of end date|no (see note)|defaults to today's date}}
+
{{Parm|day2|day of month of end date|no (see note)|defaults to today's date}}
−
{{Parm2|year2|year of end date|no (see note)|defaults to current year}}
+
{{Parm|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).
 
Note:  It is pointless omitting all parameters, as the calculation will then return zero (the number of days between today and today).

Revision as of 13:19, June 6, 2007



Template: Age in days
Use on Any
Use for Calculates the number of days between two dates
Category template applies to page Date mathematics templates
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=}}