Template:AN year: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span class="micraswiki-an-year">{{#if:{{{2|}}}|{{#expr:(1499+(({{{2}}}-2005)*12)+{{{1}}})}}|{{{1}}}}}</span>{{#if:{{{noAN|}}}|| [[AN]]}}</includeonly><noinclude> | <includeonly><span class="micraswiki-an-year">{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#expr:(1499+(({{{2}}}-2005)*12)+{{{1}}})}}|{{{1}}}}}</span>{{#if:{{{noAN|}}}|| [[AN]]}}|{{#if:{{{noAN|}}}||<span class="micraswiki-an-year">}}{{#expr:(({{CURRENTYEAR}}-2005)*12)+1499+{{CURRENTMONTH}}}}{{#if:{{{month|}}}|.{{#ifeq:{{CURRENTDAY}}|31|15|{{#expr:ceil({{CURRENTDAY}}/2)}}}}}}{{#if:{{{noAN|}}}||</span> [[Anno Nortone|AN]]}}}}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
# <code><nowiki>{{AN year}}</nowiki></code>, to produce a result like {{AN year}}. | |||
# <code><nowiki>{{AN year|1666}}</nowiki></code>, to produce a result like {{AN year|1666}}. | # <code><nowiki>{{AN year|1666}}</nowiki></code>, to produce a result like {{AN year|1666}}. | ||
# <code><nowiki>{{AN|1666}}</nowiki></code>, to produce a result like {{AN|1666}}. | # <code><nowiki>{{AN|1666}}</nowiki></code>, to produce a result like {{AN|1666}}. |
Revision as of 10:13, 15 December 2020
Usage
{{AN year}}
, to produce a result like 1738 AN.{{AN year|1666}}
, to produce a result like 1666 AN.{{AN|1666}}
, to produce a result like 1666 AN.{{AN|1666|noAN=y}}
, to produce a result like 1666.{{AN|11|2018}}
, to produce a result like 1666 AN. This takes a Gregorian month and year and calculates the AN year for you.