Difference between revisions of "Template:Age"
From Crystal Path
Jump to navigationJump to searchLine 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{#if:{{{BYear||0}} | + | {{#if:{{{BYear|}}}|0}} |
− | {{#if:{{{BMonth||0}} | + | {{#if:{{{BMonth|}}}|0}} |
− | {{#if:{{{BDay||0}} | + | {{#if:{{{BDay|}}}|0}} |
{{#expr:({{{CYear|}}})-({{{BYear}}})-(({{{CMonth|}}})<({{{BMonth}}})or({{{CMonth|}}})=({{{BMonth}}})and({{{CDay|}}})<({{{BDay}}}))}} | {{#expr:({{{CYear|}}})-({{{BYear}}})-(({{{CMonth|}}})<({{{BMonth}}})or({{{CMonth|}}})=({{{BMonth}}})and({{{CDay|}}})<({{{BDay}}}))}} |
Revision as of 09:17, 14 April 2011
Usage
{{Age|BYear=|BMonth=|BDay=|CYear=|CMonth=|CDay=}}
BYear, BMonth, and BDay are used to signify a character's birth year, month, and day, respectively. CYear, CMonth, and CDay are used to represent the current date up to the end of the respective Realm story.
Example:
{{Age|BYear=2132|BMonth=7|BDay=26|CYear=2153|CMonth=1|CDay=1}}
The output from the above will display the following: 0 0 0
20