Difference between revisions of "Template:Age"
Jump to navigation
Jump to search
(→Usage) Tag: visualeditor-wikitext |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{| cellpadding=5 cellspacing=0 style="border: | {| 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= | |Year=20 | ||
|}} | |}} | ||
</pre> | </pre> | ||
The template will return the current age of {{Age| | The template will return the current age of {{Age| | ||
|Month= | |Month=8 | ||
|Day= | |Day=26 | ||
|Year= | |Year=2053 | ||
|}} | |}} | ||
Latest revision as of 17:09, 24 September 2024
UsageThis 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:
So, if you enter this: {{Age| |Month=9 |Day=29 |Year=20 |}} The template will return the current age of 32
If the year is not present, the template will return nothing. |