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: Difference between revisions

Template page
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
m Protected "Template:YR": Sensitive Page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifexist:{{{1}}}|({{#ifexpr: {{{1}}} < 100 or {{{1}}} = 0 | {{BCH|{{#expr:100 - {{{1}}}}}}} | {{ACH|{{{1}}} }} }} |}}</includeonly><noinclude>
<includeonly>{{#ifexpr: {{{1}}} < 100 or {{{1}}} = 0 | {{BCH|{{#expr:100 - {{{1}}}}}}} | {{ACH|{{#expr:{{{1}}}-100}}}}}}</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.  

Latest revision as of 00:36, 15 July 2024

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: 60 BCH (40YR)

Three Digit or Higher Dates[edit]

{{YR|101}}

Output: 1 ACH (2000BYR)