Template:Age/doc: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
No edit summary  | 
				No edit summary  | 
				||
| Line 13: | Line 13: | ||
| Year  | | Year  | ||
| align="center" rowspan="6" | {{code|<nowiki>{{age|1990|10|2}}</nowiki>}}<br><br>{{code|<nowiki>{{age|1990|10|2|2020|5|12}}</nowiki>}}  | | align="center" rowspan="6" | {{code|<nowiki>{{age|1990|10|2}}</nowiki>}}<br><br>{{code|<nowiki>{{age|1990|10|2|2020|5|12}}</nowiki>}}  | ||
| align="center" rowspan="6" | {{#ifeq:{{FULLPAGENAME}}|Template:  | | align="center" rowspan="6" | {{#ifeq:{{FULLPAGENAME}}|Template:{{ROOTPAGENAME}}|{{{{PAGENAME}}|1990|10|2}}<br><br>{{{{PAGENAME}}|1990|10|2|2020|5|12}}|}}  | ||
|-  | |-  | ||
| align="center" | {{code|{{param|2}}}}  | | align="center" | {{code|{{param|2}}}}  | ||
Latest revision as of 10:31, 15 February 2025
This is a documentation subpage for Template:Age. 
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
A simple template to calculate age.
Parameters and Examples
| Parameters | Description | Examples | Preview | 
|---|---|---|---|
{{{1}}}
 | 
Year | {{age|1990|10|2}}{{age|1990|10|2|2020|5|12}}
 | 
|
{{{2}}}
 | 
Month | ||
{{{3}}}
 | 
Day | ||
{{{4}}}
 | 
Year 2
 Default:   | ||
{{{5}}}
 | 
Month 2
 Default:   | ||
{{{6}}}
 | 
Day 2
 Default:   |