Editing
Template:Birth and death year and age
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== <nowiki>{{Birth year and age}}</nowiki> === Let us assume: #that the person in question was born some time in {{#expr: {{CURRENTYEAR}} - 55}}; and #that the present date is {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}. *If the person was born after {{#time:d F Y|now - 55 years}} then they will be {{age|{{#time:d F Y|now - 55 years + 1 day}}|{{#time:Y-m-d|now}}}} years old on {{#time:d F Y|now}} as they have not had their 55th birthday yet. On the other hand, if they were born exactly on or before {{#time:d F Y|now - 55 years}}, then they will be {{age|{{#time:d F Y|now - 55 years}}|{{#time:Y-m-d|now}}}} years old. *:Therefore, the template {{tlx|Birth year and age|{{#expr: {{CURRENTYEAR}} - 55}} }} *:displays their birth year and age as: {{birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}}} *Optionally, if we know the person's birth month but not the day, we can also have the template display the month. *:Let us assume that the person was born in June {{#expr: {{CURRENTYEAR}} - 55}}. Therefore: *:*If it is presently January {{CURRENTYEAR}}, then this year the person has not had their birthday yet. Therefore, the template {{tlx|Birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}|6}} displays their birth year and age as: {{#expr: {{CURRENTYEAR}} - 55}} (age 54). *:*If it is presently June {{CURRENTYEAR}}, we do not know whether the person has had their birthday this year yet since their day of birth is unknown. Therefore, the template displays their birth year and age as: {{#expr: {{CURRENTYEAR}} - 55}} (age 54β55). *:*If it is presently December {{CURRENTYEAR}}, then this year the person has already had their birthday. Therefore, the template displays their birth year and age as: {{#expr: {{CURRENTYEAR}} - 55}} (age 55).
Edit summary
(Briefly describe your changes)
Please note that all contributions to A2wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
A2wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Current events
Random page
About A2wiki
interaction
Help
Community portal
Recent changes
Upload file
Tools
What links here
Related changes
Special pages
Page information