Template:AHC year: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
Created page with "<includeonly>{{#if:{{{nospan|}}}||<span class="micraswiki-an-year">}}{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#expr:(2400+(({{{2}}}-2005)*12)+{{{1}}})}}|{{{1}}}}}{{#if:{{{nospan|}}}||</span>}}{{#if:{{{noAN|}}}|| AHC}}|{{#expr:(({{CURRENTYEAR}}-2005)*12)+2400+{{CURRENTMONTH}}}}{{#if:{{{month|}}}|.{{#ifeq:{{CURRENTDAY}}|31|15|{{#expr:ceil({{CURRENTDAY}}/2)}}}}}}{{#if:{{{nospan|}}}||</span>}}{{#if:{{{noAN|}}}|| AHC}}}}</includeonly><noinclude> ==Usage==..." |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{nospan|}}}||<span class="micraswiki-an-year">}}{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#expr:( | <includeonly> | ||
{{#if:{{{nospan|}}} | |||
| | |||
|<span class="micraswiki-an-year"> | |||
}} | |||
{{#if:{{{1|}}} | |||
|{{#if:{{{2|}}} | |||
|{{#expr:(950+(({{{2}}}-2005)*12)+{{{1}}})}} | |||
|{{{1}}} | |||
}} | |||
{{#if:{{{nospan|}}} | |||
| | |||
|</span> | |||
}} | |||
{{#if:{{{noAHC|}}} | |||
| | |||
| [[Hoenn|AHC]] | |||
}} | |||
|{{#expr:(({{CURRENTYEAR}}-2005)*12)+950+{{CURRENTMONTH}}}} | |||
{{#if:{{{month|}}} | |||
|.{{#ifeq:{{CURRENTDAY}} | |||
|31 | |||
|15 | |||
|{{#expr:ceil({{CURRENTDAY}}/2)}} | |||
}} | |||
}} | |||
{{#if:{{{nospan|}}} | |||
| | |||
|</span> | |||
}} | |||
{{#if:{{{noAHC|}}} | |||
| | |||
| [[Hoenn|AHC]] | |||
}} | |||
}} | |||
</includeonly><noinclude> | |||
{{WIP}} | |||
==Usage== | ==Usage== | ||
# <code><nowiki>{{AHC year}}</nowiki></code>, to produce the current [[AHC]] year, {{AHC year}}. | # <code><nowiki>{{AHC year}}</nowiki></code>, to produce the current [[AHC]] year, {{AHC year}}. | ||
Latest revision as of 23:28, 4 June 2023
| This article or section is a work in progress. The information below may be incomplete, outdated, or subject to change. |
Usage
{{AHC year}}, to produce the current AHC year,
1202
AHC .
{{AHC|noAN=y}}, to produce the current AHC year,
1202
.
{{AHC year|774}}, to produce a result like
774 AHC .
{{AHC|774}}, to produce a result like
774 AHC .
{{AHC|1666|noAHC=y}}, to produce a result like
1666 .
{{AHC|11|2018}}, to produce a result like
1117 AHC . This takes a Gregorian month and year and calculates the AHC year for you.
{{AHC|1666|nospan=y}}, to produce a result like
1666
AHC .
{{AHC|1666|noAHC=y|nospan=y}}, to produce a result like
1666 .