Difference between revisions of "Template:Age"

From ShadowHaven Reloaded
Jump to navigation Jump to search
Tag: visualeditor-wikitext
Tag: visualeditor-wikitext
Line 27: Line 27:
|}}
|}}


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.





Revision as of 01:47, 19 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:

  • Month must be in number 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 25



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.