Difference between revisions of "Template:Date"

From Stellar Empire
Jump to navigation Jump to search
Tag: Reverted
Tag: Reverted
Line 3: Line 3:
  | 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}}}-3197}}]] {{#ifeq:{{{3}}} | true | ([[Skywatch Year|SY]] {{{1}}}) |}}
  | gu = [[Grand Unification|GU]] [[{{{1}}}|{{#expr:{{{1}}}-3197}}]] {{#ifeq:{{{3}}} | true | ([[Skywatch Year|SY]] {{{1}}}) |}}
}}
}}<noinclude>


<noinclude>
To use this template, utilize <code>&lbrace;&lbrace;date|<em>(int)date</em>&rbrace;&rbrace;</code> to display the template. This will link back to the [[Skywatch Year|Skywatch Calendar]] and link to the year, standardized on the Skywatch Calendar.
To use this template, utilize <code>&lbrace;&lbrace;date|<em>(int)date</em>&rbrace;&rbrace;</code> to display the template. This will link back to the [[Skywatch Year|Skywatch Calendar]] and link to the year, standardized on the Skywatch Calendar.



Revision as of 19:25, 13 June 2023

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

To use this template, utilize {{date|(int)date}} to display the template. This will link back to the Skywatch Calendar and link to the year, standardized on the Skywatch Calendar.

Sample
{{date|(int)date|(string)calendar|(boolean)show SY}}

ParameterTypeOptions/DefaultExample
dateIntegerRequired{{date|3100}}SY 3100
calendarstringOptions: fcc or gu{{date|3100|fcc}}FCC 480 (SY 3100)
showBooleanDefault: TRUE{{date|3100|false}}FCC 480