Template:D/formatted
From Gineipaedia, the Legend of Galactic Heroes wiki
The text below is a formatted version of the code for {{d}}. This formatted code should allow for easier changes when the template needs to be modified.
Please do not copy this code back into the main template page without first stripping it of its formatting. This can be done in a regexp-supporting text editor (such as Textmate or Sublime Text) by replacing the following regular expression by an empty string: [\t\n]
<includeonly> <span class="d"> {{#if:{{{2|}}}| {{#ifeq: {{lc:{{{2|}}}}} | nic | {{{1|}}} [[Calendar era|NIC]] <span class="d-other"> <span>(</span> {{#expr:{{{1|}}} + 489}} IC /  {{#expr:{{{1|}}} + 798}} UC /  {{#expr:{{{1|}}} + 3598}} CE <span>)</span> </span> |}} {{#ifeq: {{lc:{{{2|}}}}} | nrc | {{{1|}}} [[Calendar era|NIC]] <span class="d-other"> <span>(</span> {{#expr:{{{1|}}} + 489}} IC /  {{#expr:{{{1|}}} + 798}} UC /  {{#expr:{{{1|}}} + 3598}} CE <span>)</span> </span> |}} {{#ifeq: {{lc:{{{2|}}}}} | ic | {{{1|}}} [[Calendar era|IC]] <span class="d-other"> <span>(</span> {{#ifexpr: {{{1|}}} > 489 | {{#expr:{{{1|}}} - 489}} NIC / |}} {{#expr:{{{1|}}} + 309}} UC /  {{#expr:{{{1|}}} + 3109}} CE <span>)</span> </span> |}} {{#ifeq: {{lc:{{{2|}}}}} | rc | {{{1|}}} [[Calendar era|IC]] <span class="d-other"> <span>(</span> {{#ifexpr: {{{1|}}} > 489 | {{#expr:{{{1|}}} - 489}} NIC / |}} {{#expr:{{{1|}}} + 309}} UC /  {{#expr:{{{1|}}} + 3109}} CE <span>)</span> </span> |}} {{#ifeq: {{lc:{{{2|}}}}} | uc | {{{1|}}} [[Calendar era|UC]] <span class="d-other"> <span>(</span> {{#ifexpr: {{{1|}}} > 798 | {{#expr:{{{1|}}} - 798}} NIC / |}} {{#ifexpr: {{{1|}}} > 309 | {{#expr:{{{1|}}} - 309}} IC / |}} {{#expr:{{{1|}}} + 2800}} CE <span>)</span> </span> |}} {{#ifeq: {{lc:{{{2|}}}}} | ce | {{{1|}}} [[Calendar era|CE]] {{#ifexpr:{{{1|}}} > 2800| <span class="d-other"> <span>(</span> {{#ifexpr: {{{1|}}} > 3598 | {{#expr:{{{1|}}} - 3598}} NIC / |}} {{#ifexpr: {{{1|}}} > 3109 | {{#expr:{{{1|}}} - 3109}} IC / |}} {{#expr:{{{1|}}} - 2800}} UC <span>)</span> </span> |}} |}} |{{{1}}} }} </span> </includeonly> <noinclude>{{documentation}}[[Category:Custom templates]]</noinclude>