Editing Template:BCH
Template page
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
<includeonly>{{#switch: | <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> | |||
|#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> | |||
=Documentation= | =Documentation= | ||
Allows for the conversion of BCH (Before [[Fall of the Twelve Colonies|Colonial Holocaust]]) dates to YR dates established in ''{{RDM|Caprica}}'', and linking these to redirects that point to specific timeline pages. | Allows for the conversion of BCH (Before [[Fall of the Twelve Colonies|Colonial Holocaust]]) dates to YR dates established in ''{{RDM|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. | 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. | ||
| Line 10: | Line 9: | ||
: ''Note that the epoch of the timeline, as established by ''Caprica''{{'|s}} writers, is {{BCH|0}}.'' | : ''Note that the epoch of the timeline, as established by ''Caprica''{{'|s}} writers, is {{BCH|0}}.'' | ||
== | ==Example== | ||
===One to Two Digit Dates=== | |||
===One to Two Digit Dates=== | |||
<pre>{{BCH|40}}</pre> | <pre>{{BCH|40}}</pre> | ||
| Line 26: | Line 17: | ||
Output: {{BCH|40}} | Output: {{BCH|40}} | ||
===Three Digit or Higher Dates=== | |||
===Three Digit or Higher Dates=== | |||
<pre>{{BCH|101}}</pre> | <pre>{{BCH|101}}</pre> | ||
Output: {{BCH|101}} | Output: {{BCH|101}} | ||
[[Category:Battlestar Wiki Templates]]<templatedata> | [[Category:Battlestar Wiki Templates]]<templatedata> | ||
| Line 49: | Line 32: | ||
"default": "58", | "default": "58", | ||
"required": true | "required": true | ||
} | } | ||
}, | }, | ||