Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:YR

Template page
Revision as of 00:23, 15 July 2024 by Joe Beaudoin Jr. (talk | contribs) (Created page with "<includeonly>{{#switch:{{{1|}}} |#default={{#ifexist:{{{1}}}|({{#ifexpr: {{{1}}} < 100 or {{{1}}} = 0 | {{BCH|{{#expr:100 - {{{1}}}}}}} | {{ACH|{{{1}}}}} }}</includeonly><noinclude> =Documentation= Allows for the conversion of YR dates established in ''{{RDM|Caprica}}'' to BCH (Before Colonial Holocaust) dates referenced previously, and linking these to redirects that point to specific timeline pages. This template automatically calculat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation[edit]

Allows for the conversion of YR dates established in Caprica to BCH (Before Colonial Holocaust) dates referenced previously, and linking these to redirects that point to specific timeline pages.

This template automatically calculates Caprica YR dates to BCH event. A two digit YR date will result in BCH statements, while anything three digits or higher results will result in ACH dates.

Note that the epoch of the timeline, as established by Caprica's writers, is 0 BCH (2000BYR).

Example[edit]

One to Two Digit Dates[edit]

{{YR|40}}

Output: {{#switch:40 |#default={{#ifexist:40|(60 BCH (40YR)

Three Digit or Higher Dates[edit]

{{YR|101}}

Output: {{#switch:101 |#default={{#ifexist:101|(101 ACH (2101BYR)