Difference between revisions of "Template:Rosharan date"

From The Coppermind
Jump to navigation Jump to search
m (missing date can be alongside the month)
m (link to template if missing date)
Line 1: Line 1:
 
{{#if:{{{year|}}}{{{no-year|}}}|<!--
 
{{#if:{{{year|}}}{{{no-year|}}}|<!--
   
--><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:{{{3|}}}||i}}<!-- -->}}<!--
Line 18: Line 18:
 
-->{{#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> }}{{{1|}}}</span><!--
+
-->{{#if:{{{2|}}}|&#32;|}}{{#if:{{{missing-date|}}}|[[Template: Rosharan date|<span class="error" title="{{date/no-args}}">?</span>]]&#32;}}{{{1|}}}</span><!--
   
 
end of {{{1}}}
 
end of {{{1}}}

Revision as of 20:57, 28 December 2017

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