From GamingWiki
Jump to: navigation, search
(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:theyear|{{{1|24463}}}}}<!--
+
<onlyinclude><!--
-->{{#ifeq: {{{tooltip|<noinclude>1</noinclude>}}} |1|<abbr name="{{#var:theyear}}">}}<!--
+
-->{{#vardefine:gregyear|{{{1|24463}}}}}<!--
-->{{#ifexpr: {{#var:theyear}} < 18512 | prehistory |<!--
+
-->{{#ifeq: {{{tooltip|<noinclude>1</noinclude>}}} |1|<abbr title="{{#var: gregyear}}">}}<!--
   -->{{#vardefine: startdate | {{#expr: ({{#var:theyear}} - 18512)/7.83}} }}<!--
+
-->{{#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:theyear}} - 18511)/7.83}} }}<!--
+
   -->{{#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α