Template:Age

This template will automatically insert a character's current age so you don't have to update their pages each year just for their birthdays. More specifically, it returns the number of full years between the current stardate and a date you specify (for instance, a character's birthday, but it could also be any anniversary).

You can also specify two dates (such as a date of birth and a date of death or some other anniversary), and the template will calculate how many years passed between those dates.

Reference
The current date in SB118 is based on today's real life date but set 377 years later.
 * Today's OOC Date (US format of MM/DD/YYYY): August/28/2024
 * Today's IC Date (US format of MM/DD/YYYY): August/28/


 * How to Use :
 * To calculate the number of years between the current stardate and your specified date (e.g., current age):
 * 24
 * To calculate the number of years between two dates (e.g., age at time of death):
 * 0


 * Examples :
 * Current Age: was born on SD 235308.18. That is, she was born on August 18, 2353. To find out how old she is based on today's stardate, you would use the following code:
 * 0
 * which gives you her current age: 0


 * Age at a Specific Date: She was on Deep Space 17 when it was captured by the Vaadwaur on SD 238706.16 (i.e., June 16, 2387). How old was she then?
 * 33
 * which gives you: 33

Notice that you do NOT add leading zeros for the month or day if it is a single digit.


 * When using this template to calculate a person's age at death or a person's age on a specified date (rather than the person's current age), please substitute it into the page.
 * Example: 2353
 * When a template is substituted on a page, the code will be permanently replaced with the calculated value.


 * When entering dates before the Common Era, use astronomical year numbering: 1 BCE is represented by 0, 2 BCE by -1, 3 BCE by -2 etc. For example, the following expression returns the number of full years between the current stardate and the Battle of Cannae, which took place on August 2, 216 BCE:
 * 1810 returns "1810"


 * Note :
 * This template does not check for incorrect input:
 * 0 returns "0" (surplus days do not count as extra months)
 * 0 returns "0" (surplus months do not count as extra years)

If you have any questions, ask Rich.