Template:AgeAN: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
(Undo revision 162299 by Joe (talk))
Tag: Undo
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|{{#expr:{{{2}}}-{{{1}}}}}|{{#expr:(({{Current AN}}-{{{1|}}}}}}}{{#if:{{{noAN|}}}||&nbsp;[[Anno Nortone|AN]] years}}</includeonly><noinclude>
<includeonly>{{#if:{{{2|}}}|{{#expr:{{{2}}}-{{{1}}}}}|{{#expr:(({{CURRENTYEAR}}-2005)*12)+1499+{{CURRENTMONTH}}-{{{1|}}}}}}}{{#if:{{{noAN|}}}||&nbsp;[[Anno Nortone|AN]] years}}</includeonly><noinclude>
==Usage==
==Usage==
# <code><nowiki>{{AgeAN|1666}}</nowiki></code>, to display the age of a character born in {{AN|1666}}, {{AgeAN|1666}}.  
# <code><nowiki>{{AgeAN|1666}}</nowiki></code>, to display the age of a character born in {{AN|1666}}, {{AgeAN|1666}}.  

Revision as of 14:29, 3 July 2020

Usage

  1. {{AgeAN|1666}}, to display the age of a character born in 1666 AN, 65 AN years.
  2. {{AgeAN|1587|1666}}, to display the age of a character born in 1587 AN who died in 1666 AN, 79 AN years.
  3. {{AgeAN|1587|noAN=y}}, to display the age of a character born in 1587 AN as a number only, 144.