Difference between revisions of "Template:Age"

From ShadowHaven Reloaded
Jump to navigation Jump to search
Tag: visualeditor-wikitext
Tag: visualeditor-wikitext
Line 8: Line 8:
This template allows you to put in a character's date of birth, and it will automatically calculate their age based on the current in-game date. The following requirements apply:
This template allows you to put in a character's date of birth, and it will automatically calculate their age based on the current in-game date. The following requirements apply:


* Month must be in number format.
* All entries including Month must be in numeric format.
* Year must be the full, 4 digit year.
* Year must be the full, 4 digit year.



Revision as of 18:07, 27 March 2020


Usage

This template allows you to put in a character's date of birth, and it will automatically calculate their age based on the current in-game date. The following requirements apply:

  • All entries including Month must be in numeric format.
  • Year must be the full, 4 digit year.

So, if you enter this:

{{Age|
|Month=9
|Day=29
|Year=2060
|}}

The template will return the current age of 24



The Month and Day field are both optional, if they are missing, the template will assume January and the 1st of the month. If you wish, you only need to enter a year.

If the year is not present, the template will return nothing.