Template:AgeAN: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
(Created page with "{{AN|{{#expr:(({{CURRENTYEAR}}-2005)*12)+1499+{{CURRENTMONTH}}-{{{1|}}}}}}} years<noinclude> Category: Date templates</noinclude>") |
No edit summary |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | <includeonly>{{#if:{{{2|}}}|{{#expr:{{{2}}}-{{{1}}}}}|{{#expr:{{AN|noAN=y|nospan=y}}-{{{1|}}}}}}}{{#if:{{{noAN|}}}|| [[Anno Nortone|AN]] year{{#ifeq:{{#expr:{{#if:{{{2|}}}|{{{2|}}}|{{AN|noAN=y|nospan=y}}}}-{{{1}}}}}|1||s}}}}</includeonly><noinclude> | ||
[[Category: Date templates]]</noinclude> | ==Usage== | ||
# <code><nowiki>{{AgeAN|1666}}</nowiki></code>, to display the age of a character born in {{AN|1666}}, {{AgeAN|1666}}. | |||
# <code><nowiki>{{AgeAN|1587|1666}}</nowiki></code>, to display the age of a character born in {{AN|1587}} who died in {{AN|1666}}, {{AgeAN|1587|1666}}. | |||
# <code><nowiki>{{AgeAN|</nowiki>{{#expr:{{AN|noAN=y|nospan=y}}-56}}|noAN=y}}</code>, to display the age of a character born in {{#expr:{{AN|noAN=y|nospan=y}}-56}} as a number only, {{AgeAN|{{#expr:{{AN|noAN=y|nospan=y}}-56}}|noAN=y}}. | |||
# <code><nowiki>{{AgeAN|</nowiki>{{#expr:{{AN|noAN=y|nospan=y}}-1}}}}</code>, drops the s for a character that is 1 year old, {{AgeAN|{{#expr:{{AN|noAN=y|nospan=y}}-1}}}}. | |||
[[Category:Date templates]]</noinclude> |
Latest revision as of 11:14, 17 April 2021
Usage
{{AgeAN|1666}}
, to display the age of a character born in 1666 AN, 65 AN years.{{AgeAN|1587|1666}}
, to display the age of a character born in 1587 AN who died in 1666 AN, 79 AN years.{{AgeAN|1675|noAN=y}}
, to display the age of a character born in 1675 as a number only, 56.{{AgeAN|1730}}
, drops the s for a character that is 1 year old, 1 AN year.