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

Template:BCH: Difference between revisions

Template page
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
No edit summary
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 | [[{{#ifexist:{{#expr:2000 - {{{1}}}}}BYR||Timeline (RDM){{!}}}}{{#expr:2000 - {{{1}}}}}BYR]]}}{{#ifexpr: {{{1}}} < 100 | [[{{#expr:100 - {{{1}}}}}YR]]}})
|#default=[[{{#ifexist:{{{1}}} BCH||Timeline (RDM){{!}}}}{{{1}}} BCH]] ({{#ifexpr: {{{1}}} > 99 | [[{{#ifexist:{{#expr:2000 - {{{1}}}}}BYR||Timeline (RDM){{!}}}}{{#expr:2000 - {{{1}}}}}BYR]]}}{{#ifexpr: {{{1}}} < 100 | [[{{#ifexist:{{#expr:100 - {{{1}}}}}YR||Timeline (RDM){{!}}}}{{#expr:100 - {{{1}}}}}YR]]}})
}}</includeonly><noinclude>
}}</includeonly><noinclude>
=Documentation=
=Documentation=

Revision as of 21:12, 4 February 2024

Documentation[edit]

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[edit]

One to Two Digit Dates[edit]

{{BCH|47}}

Output: 47 BCH (53YR)

Output: 0 BCH (2000BYR)

Three Digit or Higher Dates[edit]

{{BCH|101}}

Output: 101 BCH (1899BYR)