Difference between revisions of "Template:Rosharan date"

From The Coppermind
Jump to navigation Jump to search
m (fix ishi pluralising)
m (Fix for *.1.2 (see, e.g., WoR 6 epigraph))
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
   
 
-->{{#switch:{{number|{{{month|}}}|}}|1=Jes|2=Nan|3=Chach|4=Vev|5=Palah|6=Shash|7=Betab|8=Kak|9=Tanat|10=Ish{{#if:{{{week|}}}||i}}<!-- -->}}<!--
 
-->{{#switch:{{number|{{{month|}}}|}}|1=Jes|2=Nan|3=Chach|4=Vev|5=Palah|6=Shash|7=Betab|8=Kak|9=Tanat|10=Ish{{#if:{{{week|}}}||i}}<!-- -->}}<!--
-->{{#switch:{{number|{{{week| }}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah| 6=ash| 7=ab| 8=ak| 9=at|10=ish{{#if:{{{day|}}}||i}}<!-- -->}}<!--
+
-->{{#switch:{{number|{{{week| }}}|}}| 1=es| 2={{#switch:{{number|{{{month|}}}|}}|1=n}}an| 3=ach| 4=ev| 5=ah| 6=ash| 7=ab| 8=ak| 9={{#if:{{{day|}}}|{{#switch:{{number|{{{month|}}}|}}|8=t| #default=at}}|at}}|10=ish{{#if:{{{day|}}}||i}}<!-- -->}}<!--
 
-->{{#switch:{{number|{{{day| }}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah}}<!--
 
-->{{#switch:{{number|{{{day| }}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah}}<!--
   
Line 15: Line 15:
   
 
-->{{#switch:{{number|{{{2|}}}|}}|1=Jes|2=Nan|3=Chach|4=Vev|5=Palah|6=Shash|7=Betab|8=Kak|9=Tanat|10=Ish{{#if:{{{3|}}}||i}}<!-- -->}}<!--
 
-->{{#switch:{{number|{{{2|}}}|}}|1=Jes|2=Nan|3=Chach|4=Vev|5=Palah|6=Shash|7=Betab|8=Kak|9=Tanat|10=Ish{{#if:{{{3|}}}||i}}<!-- -->}}<!--
-->{{#switch:{{number|{{{3|}}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah| 6=ash| 7=ab| 8=ak| 9=at|10=ish{{#if:{{{4|}}}||i}}<!-- -->}}<!--
+
-->{{#switch:{{number|{{{3|}}}|}}| 1=es| 2={{#switch:{{number|{{{2|}}}|}}|1=n}}an| 3=ach| 4=ev| 5=ah| 6=ash| 7=ab| 8=ak| 9={{#if:{{{4|}}}|{{#switch:{{number|{{{2|}}}|}}|8=t| #default=at}}|at}}|10=ish{{#if:{{{4|}}}||i}}<!-- -->}}<!--
 
-->{{#switch:{{number|{{{4|}}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah}}<!--
 
-->{{#switch:{{number|{{{4|}}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah}}<!--
   
-->{{#if:{{{2|}}}|&#32;|}}{{#if:{{{missing-date|}}}|<span class="error" title="{{date/no-args}}">?</span>&#32;}}{{{1|}}}</span><!--
+
-->{{#if:{{{2|}}}|&#32;|}}{{#if:{{{missing-date|}}}{{{date-missing|}}}|<span class="error" title="{{date/no-args}}">?</span>&#32;}}{{{1|}}}</span><!--
   
 
end of {{{1}}}
 
end of {{{1}}}
 
-->|<!--
 
-->|<!--
   
--><includeonly><span class="error" title="{{date/no-args}}">?</span></includeonly><!--
+
--><includeonly><span class="date rosharan-date"><span class="error" title="{{date/no-args}}">?</span></span></includeonly><!--
   
 
-->}}|}}<noinclude>This template outputs dates according to the [[Vorin]] format. {{t|Rosharan date|YYYY|MM|WW|DD}}
 
-->}}|}}<noinclude>This template outputs dates according to the [[Vorin]] format. {{t|Rosharan date|YYYY|MM|WW|DD}}
   
This template can take in the arguments ''year'', ''month'', ''week'', and ''day''. You need not use every argument in order for this template to work. If any more than the year parameter is provided the date will be converted into a Vorin textual form, and hovering will show in the {{t|Rosharan numeric date}} format <code>YYYY.MM.WW.DD</code>. If the <code>missing-date</code> parameter is filled instead of the month/week/day parts, it will show a red question-mark with a hover error message. Similarly if the <code>year</code> is missing the template will show an error question-mark unless the <code>no-year</code> parameter is passed.
+
This template can take in the arguments ''year'', ''month'', ''week'', and ''day''. You need not use every argument in order for this template to work. If any more than the year parameter is provided the date will be converted into a Vorin textual form, and hovering will show in the {{t|Rosharan numeric date}} format <code>YYYY.MM.WW.DD</code>. If the <code>missing-date</code> parameter is filled instead of the month/week/day parts, it will show a red question-mark with a hover error message. Similarly if the <code>year</code> is missing the template will show an error question-mark unless the <code>no-year</code> parameter is passed. See {{t|date/no-args}} for a list of templates which require more detail to be added.
  +
  +
For reference, ''[[The Way of Kings]]'' is mostly set in 1173 and ''[[Oathbringer]]'' is set at the end of 1174.
   
 
[[category: date templates]]
 
[[category: date templates]]
Line 36: Line 38:
 
* The input {{t|Rosharan numeric date|1174|2|3|4}} yields '''{{Rosharan numeric date|1174|2|3|4}}'''.
 
* The input {{t|Rosharan numeric date|1174|2|3|4}} yields '''{{Rosharan numeric date|1174|2|3|4}}'''.
   
== Users ==
+
== Articles using Template ==
{{Special:WhatLinksHere/{{FULLPAGENAME}}|}}
+
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}}

Latest revision as of 19:53, 14 February 2024

This template outputs dates according to the Vorin format. {{Rosharan date|YYYY|MM|WW|DD}}

This template can take in the arguments year, month, week, and day. You need not use every argument in order for this template to work. If any more than the year parameter is provided the date will be converted into a Vorin textual form, and hovering will show in the {{Rosharan numeric date}} format YYYY.MM.WW.DD. If the missing-date parameter is filled instead of the month/week/day parts, it will show a red question-mark with a hover error message. Similarly if the year is missing the template will show an error question-mark unless the no-year parameter is passed. See {{date/no-args}} for a list of templates which require more detail to be added.

For reference, The Way of Kings is mostly set in 1173 and Oathbringer is set at the end of 1174.

Examples[edit]

Articles using Template[edit]