Difference between revisions of "Template:Rosharan date"

From The Coppermind
Jump to navigation Jump to search
m (no-year only works with named arguments)
m (only title when there's more than only the year)
Line 1: Line 1:
 
{{#if:{{{year|}}}{{{no-year|}}}|<!--
 
{{#if:{{{year|}}}{{{no-year|}}}|<!--
   
--><span title="{{Rosharan numeric date|{{{year}}}{{{month|}}}|{{{week|}}}|{{{day|}}}|}}"><!--
+
--><span {{#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 12: Line 12:
 
-->|{{#if:{{{1|}}}|<!--
 
-->|{{#if:{{{1|}}}|<!--
   
--><span title="{{Rosharan numeric date|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|}}"><!--
+
--><span {{#if:{{{2|}}}|title="{{Rosharan numeric date|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|}}"}}><!--
   
 
-->{{#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}}<!-- -->}}<!--

Revision as of 14:29, 27 December 2017

This template outputs dates according to the Vorin format. This template takes in the arguments year, month, week, and day. You need not use every argument in order for this template to work.

This template's format is: {{Rosharan date|YYYY|MM|WW|DD}}

Examples

Users