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>{{Death year and age}}</nowiki> === Let us assume: #that the person in question was born some time in {{#expr: {{CURRENTYEAR}} - 51}}; and #that they died some time in {{#expr: {{CURRENTYEAR}} - 1}}. *We can posit as two extremes: (1) that the person was born on 31 December {{#expr: {{CURRENTYEAR}} - 51}} and died on 1 January {{#expr: {{CURRENTYEAR}} - 1}}, in which case they would have been 49 years old at the time of their death as they did not achieve their 50th birthday on 31 December {{#expr: {{CURRENTYEAR}} - 1}}; and (2) that they were born on 1 January {{#expr: {{CURRENTYEAR}} - 51}} and died on 31 December {{#expr: {{CURRENTYEAR}} - 1}}, in which case they would have been 50 years old at the time of their death as they had their 50th birthday on 1 January {{#expr: {{CURRENTYEAR}} - 1}}. ::Therefore, the template {{tlx|Death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}} }} ::renders their death year and age as: {{death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}}}} *Optionally, if we know the month of the person's death but not the day, we can also have the template display the month. :Using the above examples and assuming the month is {{CURRENTMONTH}} ({{CURRENTMONTHNAME}}) ::Therefore, the template {{tlx|Death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}}|{{CURRENTMONTH}} }} ::displays their death year and age as: {{death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}}|{{CURRENTMONTH}}}} If you wish to set out the full dates of birth and/or death of a person and thus to calculate their age accurately, please use the templates {{tl|Birth date and age}} and {{tl|Death date and age}}.
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