Template:Age/doc: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with "A simple template to calculate age.  == Parameters and Examples == {| class=standard-table | style="width:100%" |- ! Parameters ! {{int:listfiles_description}} ! {{int:apisandbox-examples}} ! {{int:preview}} |-  | align="center" | {{code|{{param|1}}}} | 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" | {{{{PAGENAME}}|1990|10|2}}<br><br>{{{{PAGENAME}}|...")  | 
				No edit summary  | 
				||
| Line 12: | Line 12: | ||
| 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" | {{{{PAGENAME}}|1990|10|2}}<br><br>{{{{PAGENAME}}|1990|10|2|2020|5|12}}  | | align="center" rowspan="6" | {{#ifeq:{{FULLPAGENAME}}|Template:Age|{{{{PAGENAME}}|1990|10|2}}<br><br>{{{{PAGENAME}}|1990|10|2|2020|5|12}}|}}  | ||
|-  | |-  | ||
| align="center" | {{code|{{param|2}}}}  | | align="center" | {{code|{{param|2}}}}  | ||
Revision as of 10:10, 15 February 2025
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:   |