Template:YR: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#ifexpr: {{{1}}} < 100 or {{{1}}} = 0 | {{BCH|{{#expr:100 - {{{1}}}}}}} | {{ACH|{#expr:100 - {{{1}}}}}}}</includeonly><noinclude>
<includeonly>{{#ifexpr: {{{1}}} < 100 or {{{1}}} = 0 | {{BCH|{{#expr:100 - {{{1}}}}}}} | {{ACH|{{#expr:100 - {{{1}}}}}}}}}</includeonly><noinclude>
=Documentation=
=Documentation=
Allows for the conversion of YR dates established in ''{{RDM|Caprica}}'' to BCH (Before [[Fall of the Twelve Colonies|Colonial Holocaust]]) dates referenced previously, and linking these to redirects that point to specific timeline pages.  
Allows for the conversion of YR dates established in ''{{RDM|Caprica}}'' to BCH (Before [[Fall of the Twelve Colonies|Colonial Holocaust]]) dates referenced previously, and linking these to redirects that point to specific timeline pages.  

Revision as of 00:30, 15 July 2024

Documentation

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

One to Two Digit Dates

{{YR|40}}

Output: 60 BCH (40YR)

Three Digit or Higher Dates

{{YR|101}}

Output: -1 ACH ()