Template:AgeAN: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 4: Line 4:
# <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|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}}-56}}|noAN=y}}</code>, to display the age of a character born in {{#expr:{{AN|noAN=y}}-56}} as a number only, {{AgeAN|{{#expr:{{AN|noAN=y}}-56}}|noAN=y}}.
# <code><nowiki>{{AgeAN|</nowiki>{{#expr:{{AN|noAN=y}}-56}}|noAN=y}}</code>, to display the age of a character born in {{#expr:{{AN|noAN=y}}-56}} as a number only, {{AgeAN|{{#expr:{{AN|noAN=y}}-56}}|noAN=y}}.
# <code><nowiki>{{AgeAN|</nowiki>{{#expr:{{AN|noAN=y}}-1}}}}</code>, drops the s for a character that is 1 year old, {{AgeAN|{{#expr:{{Current AN|noAN=y}}-1}}}}.
# <code><nowiki>{{AgeAN|</nowiki>{{#expr:{{AN|noAN=y}}-1}}}}</code>, drops the s for a character that is 1 year old, {{AgeAN|{{#expr:{{AN|noAN=y}}-1}}}}.


[[Category:Date templates]]</noinclude>
[[Category:Date templates]]</noinclude>

Revision as of 10:33, 15 December 2020

Usage

  1. {{AgeAN|1666}}, to display the age of a character born in 1666 AN, Expression error: Unexpected < operator. 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|Expression error: Unexpected < operator.|noAN=y}}, to display the age of a character born in Expression error: Unexpected < operator. as a number only, Expression error: Unexpected < operator..
  4. {{AgeAN|Expression error: Unexpected < operator.}}, drops the s for a character that is 1 year old, Expression error: Unexpected < operator. AN years.