Template:AN year: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{nospan|}}}||<span class="micraswiki-an-year">}}{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#expr:(1499+(({{{2}}}-2005)*12)+{{{1}}})}}|{{{1}}}}}{{#if:{{{noAN|}}}||{{#if:{{{nospan|}}}||</span>}}&nbsp;[[AN]]}}|{{#expr:(({{CURRENTYEAR}}-2005)*12)+1499+{{CURRENTMONTH}}}}{{#if:{{{month|}}}|.{{#ifeq:{{CURRENTDAY}}|31|15|{{#expr:ceil({{CURRENTDAY}}/2)}}}}}}{{#if:{{{noAN|}}}||</span>&nbsp;[[Anno Nortone|AN]]}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{nospan|}}}||<span class="micraswiki-an-year">}}{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#expr:(1499+(({{{2}}}-2005)*12)+{{{1}}})}}|{{{1}}}}}{{#if:{{{nospan|}}}||</span>}}{{#if:{{{noAN|}}}||&nbsp;[[Anno Nortone|AN]]}}|{{#expr:(({{CURRENTYEAR}}-2005)*12)+1499+{{CURRENTMONTH}}}}{{#if:{{{month|}}}|.{{#ifeq:{{CURRENTDAY}}|31|15|{{#expr:ceil({{CURRENTDAY}}/2)}}}}}}{{#if:{{{nospan|}}}||</span>}}{{#if:{{{noAN|}}}||&nbsp;[[Anno Nortone|AN]]}}}}</includeonly><noinclude>
==Usage==
==Usage==
# <code><nowiki>{{AN year}}</nowiki></code>, to produce the current [[AN]] year, {{AN year}}.  
# <code><nowiki>{{AN}} or {{AN year}}</nowiki></code>, to produce the current [[AN]] year, {{AN}}.
# <code><nowiki>{{AN|month=y}}</nowiki></code>, to produce the current [[AN]] month and year, {{AN year|month=y}}.  
# <code><nowiki>{{AN|noAN=y}}</nowiki></code>, to produce the current [[AN]] year, {{AN|noAN=y}}.
# <code><nowiki>{{AN|noAN=y}}</nowiki></code>, to produce the current [[AN]] year, {{AN|noAN=y}}.
# <code><nowiki>{{AN year|1666}}</nowiki></code>, to produce a result like {{AN year|1666}}.
# <code><nowiki>{{AN|1666}} or {{AN year|1666}}</nowiki></code>, to produce a result like {{AN|1666}}.
# <code><nowiki>{{AN|1666}}</nowiki></code>, to produce a result like {{AN|1666}}.
# <code><nowiki>{{AN|1666|noAN=y}}</nowiki></code>, to produce a result like {{AN|1666|noAN=y}}.
# <code><nowiki>{{AN|1666|noAN=y}}</nowiki></code>, to produce a result like {{AN|1666|noAN=y}}.
# <code><nowiki>{{AN|11|2018}}</nowiki></code>, to produce a result like {{AN|11|2018}}. This takes a Gregorian month and year and calculates the AN year for you.
# <code><nowiki>{{AN|11|2018}}</nowiki></code>, to produce a result like {{AN|11|2018}}. This takes a Gregorian month and year and calculates the AN year for you.

Latest revision as of 09:48, 8 June 2023

Usage

  1. {{AN}} or {{AN year}}, to produce the current AN year, 1738 AN.
  2. {{AN|month=y}}, to produce the current AN month and year, 1738.14 AN.
  3. {{AN|noAN=y}}, to produce the current AN year, 1738.
  4. {{AN|1666}} or {{AN year|1666}}, to produce a result like 1666 AN.
  5. {{AN|1666|noAN=y}}, to produce a result like 1666.
  6. {{AN|11|2018}}, to produce a result like 1666 AN. This takes a Gregorian month and year and calculates the AN year for you.
  7. {{AN|1666|nospan=y}}, to produce a result like 1666 AN.
  8. {{AN|1666|noAN=y|nospan=y}}, to produce a result like 1666.