Difference between revisions of "Template:Date"

From Keedrah Wiki
Jump to navigation Jump to search
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{year|}}
+
{{#if: {{{year|}}} |
{{#if: {{{reckon|}}}
+
{{#if: {{{reckon|}}} |
 
{{#switch: {{{reckon}}}
 
{{#switch: {{{reckon}}}
 +
| gwr = {{#expr: {{{year}}} + 1411}} DR<span style="font-size:70%"> &#91;[[Date Reckoning{{!}}{{#expr: {{{year}}} + 987}} WE{{#ifexpr:{{{year}}} >0 | &#124;{{{year}}} GWR }}]]&#93;</span>
 +
| dr = {{{year}}} DR
 +
{{#ifeq: {{#ifexpr: {{{year}}}  - 424 < 1 | 0 | 1}} {{!}} {{#ifexpr: {{{year}}} - 1411 < 1 | 0 | 1}} | <span style="font-size:70%"> &#91;[[Date Reckoning{{!}}{{#ifexpr: {{{year}}}  - 424 > 0 | &#124;{{#expr: {{{year}}} - 424}} WE}}{{#ifexpr: {{{year}}} - 1411 > 0 | &#124;{{#expr: {{{year}}} - 1411}} GWR}}]]&#93;</span> | }}
 +
| we = {{#expr: {{{year}}} + 424}} DR<span style="font-size:70%"> &#91;[[Date Reckoning{{!}}{{{year}}} WE{{#ifexpr: {{{year}}} - 987 > 0 | &#124;{{#expr: {{{year}}} - 987}} GWR}}]]&#93;</span>
 +
| #default  = <span style="font-size:150%; color:red;font-weight:bold">Year Not Correctly Given: year parameter must be numeric, reckon parameter must be "dr", "we", "gwr", or "fd". See {{fullurl:{{transclude|Template:Date}}}}
 +
}}
 +
| <span style="font-size:150%; color:red;font-weight:bold">Year Not Correctly Given: year parameter must be numeric, reckon parameter must be "dr", "we", "gwr", or "fd". See {{fullurl:{{transclude|Template:Date}}}}</span>.}}
 +
| <span style="font-size:150%; color:red;font-weight:bold">Year Reckon Correctly Given: year parameter must be numeric, reckon parameter must be "dr", "we", "gwr", or "fd". See {{fullurl:{{transclude|Template:Date}}}}.</span>.}} [[Category:Templates]]<noinclude>
  
| gwr = Grater Races War
 
  
| dr = Danberg Reckoning
 
  
| we = Windman Empire Reckoning
+
You can use different reckoning years.
  
| fd = Fall of the Dragons
+
reckon = DR - Danberg<br/>
 +
reckon =  WE - Windman Empire <br/>
 +
reckon = GWR - Greater Races War.<br/>
 +
year = must be a year value
 +
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.
  
| #default  = You did it wrong.
 
  
 +
Example:
 +
{{dateconvert
 +
|year = 1441
 +
|reackon = dr
 
}}
 
}}
| <span style="font-size:150%; color:red;font-weight:bold">Year Not Correctly Given: year parameter must be numeric, reckon parameter must be "dr", "we", "gwr", or "fd". See {{fullurl:{{transclude|Template:Date}}}}</span>.}}
 
| <span style="font-size:150%; color:red;font-weight:bold">Year Not Correctly Given: year parameter must be numeric, reckon parameter must be "dr", "we", "gwr", or "fd". See {{fullurl:{{transclude|Template:Date}}}}.</span>.}}
 

Latest revision as of 18:23, 6 October 2018

Year Reckon Correctly Given: year parameter must be numeric, reckon parameter must be "dr", "we", "gwr", or "fd". See http://keedrah.wiki/Template:Date..


You can use different reckoning years.

reckon = DR - Danberg
reckon = WE - Windman Empire
reckon = GWR - Greater Races War.
year = must be a year value 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: Year Not Correctly Given: year parameter must be numeric, reckon parameter must be "dr", "we", "gwr", or "fd". See http://keedrah.wiki/Template:Date.