Difference between revisions of "Template:Age"

From ShadowHaven Reloaded
Jump to navigation Jump to search
Tag: visualeditor-wikitext
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{| cellpadding=5 cellspacing=0 style="border: black 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
|-  
|-  
|
|
Line 17: Line 17:
|Month=9
|Month=9
|Day=29
|Day=29
|Year=2060
|Year=2033
|}}
|}}
</pre>
</pre>

Latest revision as of 01:35, 10 October 2022


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=2033
|}}

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.