Difference between revisions of "Template:Date"

From Stellar Empire
Jump to navigation Jump to search
Tags: Manual revert Reverted
Tag: Reverted
Line 14: Line 14:
</noinclude>
</noinclude>


<onlyinclude><includeonly>
{{#switch: {{{2|}}}  
{{#switch: {{{2|}}}  
  | #default = [[Skywatch Year|SY]] [[{{{1}}}]]
  | #default = [[Skywatch Year|SY]] [[{{{1}}}]]
Line 20: Line 19:
  | 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}}}) |}}
}}
}}
</includeonly></onlyinclude>

Revision as of 18:24, 13 June 2023

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


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