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{{!}}{{#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>| no year }}}}}}<noinclude>
+
{{#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{{!}}{{#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">Year Not Correctly Given </year>}}}}}}<noinclude>
  
  

Revision as of 08:12, 25 June 2011

Year Not Correctly Given </year>


You can use different reckoning years.

dryear = DR Reckoning weyear = WE reckoning gwryear = GWR Reckoning.

This template converts the date and displays the conversion, as shown in the example below.


Example: 1441 DR [1017 WE|30 GWR]