Template:Birth year and age: Difference between revisions
Appearance
Create: estimated age range for year-only birth dates |
Force the space ParserFunctions trims from the #if branch |
||
| Line 1: | Line 1: | ||
<includeonly>{{{1}}}{{#if:{{{2|}}}| (age {{#invoke:Age|age_range|{{{1}}}|{{{2}}}}})| (age {{#invoke:Age|age_range|{{{1}}}}})}}</includeonly><noinclude> | <includeonly>{{{1}}}{{#if:{{{2|}}}| (age {{#invoke:Age|age_range|{{{1}}}|{{{2}}}}})| (age {{#invoke:Age|age_range|{{{1}}}}})}}</includeonly><noinclude> | ||
For a birth known only to the year. Usage: <code>{{Birth year and age|birthYear}}</code> | For a birth known only to the year. Usage: <code>{{Birth year and age|birthYear}}</code> | ||
Latest revision as of 16:18, 20 July 2026
For a birth known only to the year. Usage: birthYear (age )
1926 (age 99–100) → 1926 (age 99–100)
The age is given as a range because a year-only date is ambiguous by one year. For full dates use {{birth date and age}} instead.