Template:BCH

From Battlestar Wiki Media
Revision as of 23:30, 4 February 2024 by Joe Beaudoin Jr. (talk | contribs) (Created page with "<includeonly>{{#switch:{{{1|}}} |#default=[[{{#ifexist:{{{1}}} BCH||Timeline (RDM)#{{{1}}} BCH{{!}}}}{{{1}}} BCH]] ({{#ifexpr: {{{1}}} > 99 or {{{1}}} = 0 | [[{{#ifexist:{{#expr:2000 - {{{1}}}}}BYR||Timeline (RDM)#{{#expr:2000 - {{{1}}}}}BYR{{!}}}}{{#expr:2000 - {{{1}}}}}BYR]]}}{{#ifexpr: {{{1}}} < 100 and {{{1}}} > 0| [[{{#ifexist:{{#expr:100 - {{{1}}}}}YR||Timeline (RDM)#{{#expr:100 - {{{1}}}}}YR{{!}}}}{{#expr:100 - {{{1}}}}}YR]]}}) }}</includeonly><noinclude> =Documen...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation

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

This template automatically calculates BCH events based on Caprica YR dates. A two digit BCH date will result in YR statements, while anything three digits or higher results will result in BYR dates.

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

Example

One to Two Digit Dates

{{BCH|40}}

Output: 40 BCH (60YR)

Three Digit or Higher Dates

{{BCH|101}}

Output: 101 BCH (1899BYR)