Template:BCH: Difference between revisions

Template page
m (tweak)
Line 6: Line 6:
|50=[[50 BCH]] ([[50YR]])
|50=[[50 BCH]] ([[50YR]])
|52=[[52 BCH]] ([[48YR]])
|52=[[52 BCH]] ([[48YR]])
|#default=[[{{{1}}} BCH]] ({{#ifexpr: {{{1}}} > 99 | [[{{#expr:2000 - {{{1}}}}}BYR]]}}{{#ifexpr: {{{1}}} < 100 | [[{{#expr:2000 - {{{1}}}}}YR]]}})
|#default=[[{{{1}}} BCH]] ({{#ifexpr: {{{1}}} > 99 | [[{{#expr:2000 - {{{1}}}}}BYR]]}}{{#ifexpr: {{{1}}} < 100 | [[{{#expr:100 - {{{1}}}}}YR]]}})
}}</includeonly><noinclude>
}}</includeonly><noinclude>
=Documentation=
=Documentation=

Revision as of 18:43, 4 February 2024

Documentation

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

Except for key epochs, 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.

Example

One to Two Digit Dates

{{BCH|47}}

Output: 47 BCH (53YR)

Three Digit or Higher Dates

{{BCH|101}}

Output: 101 BCH (1899BYR)