Difference between revisions of "Template:Date"

From Stellar Empire
Jump to navigation Jump to search
(Added the grand unification to the from and updated the math)
(Changed range dash to the word 'to')
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
  | #default = [[Skywatch Year|SY]] [[{{{1}}}]]
  | #default = [[Skywatch Year|SY]] [[{{{1}}}]]
  | fcc = [[Free Colonies Calendar|FCC]] [[{{{1}}}|{{#expr:{{{1}}}-2620}}]] {{#ifeq:{{{3}}} | false | | ([[Skywatch Year|SY]] {{{1}}})}}
  | fcc = [[Free Colonies Calendar|FCC]] [[{{{1}}}|{{#expr:{{{1}}}-2620}}]] {{#ifeq:{{{3}}} | false | | ([[Skywatch Year|SY]] {{{1}}})}}
  | gu = [[Grand Unification|GU]] [[{{{1}}}|{{#expr:({{{1}}}-3269)*3}} - {{#expr:(({{{1}}}-3269)*3)+3}}]] {{#ifeq:{{{3}}} | true | ([[Skywatch Year|SY]] {{{1}}}) |}}
  | gu = [[Grand Unification|GU]] [[{{{1}}}|{{#expr:({{{1}}}-3269)*3}} to {{#expr:(({{{1}}}-3269)*3)+3}}]] {{#ifeq:{{{3}}} | true | ([[Skywatch Year|SY]] {{{1}}}) }}
  | ce = [[Gregorian Calendar|CE]] [[{{{1}}}|{{#expr:({{{1}}}-2900)*5}} - {{#expr:(({{{1}}}-2900)*5)+5}}]] {{#ifeq:{{{3}}} | true | ([[Skywatch Year|SY]] {{{1}}}) |}}
  | ce = [[Gregorian Calendar|CE]] [[{{{1}}}|{{#expr:({{{1}}}-2900)*5}} to {{#expr:(({{{1}}}-2900)*5)+5}}]] {{#ifeq:{{{3}}} | true | ([[Skywatch Year|SY]] {{{1}}}) |}}
  | from = {{#switch: {{{3|}}}
  | from = {{#switch: {{{3|}}}
   | ce = [[Gregorian Calendar|CE]] [[{{#expr: 2900 + ({{{1}}}/5) round 5}}|{{{1}}}]] {{#ifeq:{{{4}}} | true | ([[Skywatch Year|SY]] {{#expr: 2900 + ({{{1}}}/5) round 5}}) |}}
   | ce = [[Gregorian Calendar|CE]] [[{{#expr: 2900 + ({{{1}}}/5) round 5}}|{{{1}}}]] {{#ifeq:{{{4}}} | true | ([[Skywatch Year|SY]] {{#expr: 2900 + ({{{1}}}/5) round 5}}) |}}
  }}
   | fcc = [[Free Colonies Calendar|FCC]] [[{{#expr: 2620 + {{{1}}}}}|{{{1}}}]] {{#ifeq:{{{4}}} | true | ([[Skywatch Year|SY]] {{#expr: 2620 + {{{1}}}}}) |}}
   | fcc = [[Free Colonies Calendar|FCC]] [[{{#expr: 2620 + {{{1}}}}}|{{{1}}}]] {{#ifeq:{{{4}}} | true | ([[Skywatch Year|SY]] {{#expr: 2620 + {{{1}}}}}) |}}
  }}
   | gu = [[Grand Unification|GU]] [[{{#expr: 3269 + ({{{1}}}/3) round 5}}|{{{1}}}]] {{#ifeq:{{{4}}} | true | ([[Skywatch Year|SY]] {{#expr: 3269 + ({{{1}}}/3) round 5}}) |}}
   | ce = [[Gregorian Calendar|CE]] [[{{#expr: 3269 + ({{{1}}}/3) round 5}}|{{{1}}}]] {{#ifeq:{{{4}}} | true | ([[Skywatch Year|SY]] {{#expr: 3269 + ({{{1}}}/3) round 5}}) |}}
   }}
   }}
}}
}}

Latest revision as of 16:34, 9 October 2023

SY [[{{{1}}}]]