Difference between revisions of "Template:Rosharan date"

From The Coppermind
Jump to navigation Jump to search
m (remove link, counterproductive)
m (fix ishi pluralising)
Line 3: Line 3:
 
--><span class="date rosharan-date" {{#if:{{{month|}}}|title="{{Rosharan numeric date|{{{year}}}|{{{month|}}}|{{{week|}}}|{{{day|}}}|}}"}}><!--
 
--><span class="date rosharan-date" {{#if:{{{month|}}}|title="{{Rosharan numeric date|{{{year}}}|{{{month|}}}|{{{week|}}}|{{{day|}}}|}}"}}><!--
   
-->{{#switch:{{number|{{{month|}}}|}}|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|{{{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:{{{3|}}}||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|{{{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:{{{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|{{{4|}}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah}}<!--
 
-->{{#switch:{{number|{{{4|}}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah}}<!--
   

Revision as of 09:31, 16 January 2018

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.

Examples

Users