Difference between revisions of "Template:Dateconvert"

From Keedrah Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#if: {{{dryear|}}} | {{{dryear}}} DR<span style="font-size:70%"> {{#iferror: &#91;[[Date Reckoning{{!}}{{#expr: {{{dryear}}} - 424}} WE{{!}}{{#expr: {{{dryear}}} - 1411}} GWR]]&#93;</span> | An error occured with Dateconvert }} | {{#if: {{{weyear|}}} | {{#expr: {{{weyear}}} + 424}} DR<span style="font-size:70%"> &#91;[[Date Reckoning{{!}}{{{weyear}}} WE{{#ifexpr: {{{weyear}}} - 987 > 0 | &#124;{{#expr: {{{weyear}}} - 987}} GWR}}]]&#93;</span> | {{#if: {{{gwryear|}}} | {{#expr: {{{gwryear}}} + 1411}} DR<span style="font-size:70%"> &#91;[[Date Reckoning{{!}}{{#expr: {{{gwryear}}} + 987}} WE{{!}}{{{gwryear}}} GWR]]&#93;</span>| <span style="font-size:150%; color:red;font-weight:bold">Year Not Correctly Given: Use dryear, weyear or gwryear</span>}}}}}}
+
{{#if: {{{dryear|}}} | {{{dryear}}} DR<span style="font-size:70%"> {{#iferror: &#91;[[Date Reckoning{{!}}{{#expr: {{{dryear}}} - 424}} WE{{#ifexpr: {{{weyear}}} - 987 > 0 | &#124;{{#expr: {{{weyear}}} - 987}} GWR}}&#93;</span> | An error occured with Dateconvert }} | {{#if: {{{weyear|}}} | {{#expr: {{{weyear}}} + 424}} DR<span style="font-size:70%"> &#91;[[Date Reckoning{{!}}{{{weyear}}} WE{{#ifexpr: {{{weyear}}} - 987 > 0 | &#124;{{#expr: {{{weyear}}} - 987}} GWR}}]]&#93;</span> | {{#if: {{{gwryear|}}} | {{#expr: {{{gwryear}}} + 1411}} DR<span style="font-size:70%"> &#91;[[Date Reckoning{{!}}{{#expr: {{{gwryear}}} + 987}} WE{{!}}{{{gwryear}}} GWR]]&#93;</span>| <span style="font-size:150%; color:red;font-weight:bold">Year Not Correctly Given: Use dryear, weyear or gwryear</span>}}}}}}
  
  

Revision as of 08:46, 25 June 2011

{{#if: | {{{dryear}}} DR {{#iferror: [[[Date Reckoning|Expression error: Unrecognized punctuation character "{". WEExpression error: Unrecognized punctuation character "{".] | An error occured with Dateconvert }} | Year Not Correctly Given: Use dryear, weyear or gwryear}}


|Expression error: Unrecognized punctuation character "{". GWR | be quiet}}

Expression error: Unrecognized punctuation character "{".


You can use different reckoning years.

dryear = DR Reckoning
weyear = WE reckoning
gwryear = GWR Reckoning.
If no year is given, it yells at you in big red text. This template converts the date and displays the conversion, as shown in the example below.


Example: {{#if: 1441 | 1441 DR {{#iferror: [[[Date Reckoning|1017 WEExpression error: Unrecognized punctuation character "{".] | An error occured with Dateconvert }} | Year Not Correctly Given: Use dryear, weyear or gwryear}}


|Expression error: Unrecognized punctuation character "{". GWR | be quiet}}

Expression error: Unrecognized punctuation character "{".