Template:Birth date and age: Difference between revisions

From Geometry Dash Expanded Wiki
Jump to navigation Jump to search
Created page with "<includeonly> <span style="white-space:nowrap;">{{age | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} }} ({{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}} {{{1|{{{year}}}}}})</span></includeonly> <noinclude> ;Description :This template is intended for an article about a living person. ;Syntax :{{t|Birth date and age|YYYY|MM|DD}} Category:General templates </noinclude> <noinclude> {{Birth date and age|2001|02|02}} </noinclude>"
 
Fix date formatting, validate calendar dates and calculate completed age
 
Line 1: Line 1:
<includeonly>
<includeonly>{{#invoke:Expanded dates|birthdate}}</includeonly><noinclude>
<span style="white-space:nowrap;">{{age | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} }} ({{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}} {{{1|{{{year}}}}}})</span></includeonly>
<noinclude>
;Description
;Description
:This template is intended for an article about a living person.
:Displays the birth date and current age of a living person in day–month–year order. Use a fixed death date and age at death for deceased people.
;Syntax
;Syntax
:{{t|Birth date and age|YYYY|MM|DD}}
:{{t|Birth date and age|YYYY|MM|DD}}
:Named parameters: {{t|Birth date and age|year=YYYY|month=MM|day=DD}}
;Example
:{{Birth date and age|2001|02|02}}
[[Category:General templates]]
[[Category:General templates]]
</noinclude>
<noinclude>
{{Birth date and age|2001|02|02}}
</noinclude>
</noinclude>

Latest revision as of 03:03, 12 October 2026

Description
Displays the birth date and current age of a living person in day–month–year order. Use a fixed death date and age at death for deceased people.
Syntax
{{Birth date and age|<YYYY>|<MM>|<DD>}}
Named parameters: {{Birth date and age}}
Example
2 February 2001 (age 25)