Difference between revisions of "Template:Age in days"

From Conservapedia
Jump to navigation Jump to search
(Standard documentation)
m (Update documentation)
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}}
−
{{Parms|
+
{{Parms2|
−
{{Parm|month1|yes (see note)|month of start date|current month}}
+
{{Parm2|month1|month of start date|no (see note)|defaults to current month}}
−
{{Parm|day1|yes (see note)|day of month of start date|today's date}}
+
{{Parm2|day1|day of month of start date|no (see note)|defaults to today's date}}
−
{{Parm|year1|yes (see note)|year of start date|current year}}
+
{{Parm2|year1|year of start date|no (see note)|defaults to current year}}
−
{{Parm|month2|yes (see note)|month of end date|current month}}
+
{{Parm2|month2|month of end date|no (see note)|defaults to current month}}
−
{{Parm|day2|yes (see note)|day of month of end date|today's date}}
+
{{Parm2|day2|day of month of end date|no (see note)|defaults to today's date}}
−
{{Parm|year2|yes (see note)|year of end date|current year}}
+
{{Parm2|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 12:56, 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:Parms2 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=}}