From GamingWiki
(Created page with "Convert a year in the Gregorian calendar to a year and fragment (or range, if applicable) in the Antares calendar. <onlyinclude>{{#vardefine:theyear|{{{1|24463}}}}}<!--...") |
|||
Line 1: | Line 1: | ||
Convert a year in the [[Gregorian calendar]] to a year and fragment (or range, if applicable) in the [[Antares calendar]]. | Convert a year in the [[Gregorian calendar]] to a year and fragment (or range, if applicable) in the [[Antares calendar]]. | ||
− | <onlyinclude>{{#vardefine: | + | <onlyinclude><!-- |
− | -->{{#ifeq: {{{tooltip|<noinclude>1</noinclude>}}} |1|<abbr | + | -->{{#vardefine:gregyear|{{{1|24463}}}}}<!-- |
− | -->{{#ifexpr: {{#var: | + | -->{{#ifeq: {{{tooltip|<noinclude>1</noinclude>}}} |1|<abbr title="{{#var: gregyear}}">}}<!-- |
− | -->{{#vardefine: startdate | {{#expr: ({{#var: | + | -->{{#ifexpr: {{#var:gregyear}} < 18512 | prehistory |<!-- |
+ | -->{{#vardefine: startdate | {{#expr: ({{#var: gregyear}} - 18512)/7.83}} }}<!-- | ||
-->{{#vardefine: startfrag | {{#expr: ({{#var:startdate}}*5) mod 5}} }}<!-- | -->{{#vardefine: startfrag | {{#expr: ({{#var:startdate}}*5) mod 5}} }}<!-- | ||
− | -->{{#vardefine: enddate | {{#expr: ({{#var: | + | -->{{#vardefine: enddate | {{#expr: ({{#var: gregyear}} - 18511)/7.83}} }}<!-- |
-->{{#vardefine: endfrag | {{#expr: ({{#var:enddate}}*5) mod 5}} }}<!-- | -->{{#vardefine: endfrag | {{#expr: ({{#var:enddate}}*5) mod 5}} }}<!-- | ||
-->{{#expr: floor({{#var: startdate}})}}<!-- | -->{{#expr: floor({{#var: startdate}})}}<!-- |
Latest revision as of 17:38, 22 February 2011
Convert a year in the Gregorian calendar to a year and fragment (or range, if applicable) in the Antares calendar.
760α