Difference between revisions of "Template:Rosharan date"

m
+classes
m (only title when there's more than only the year)
m (+classes)
{{#if:{{{year|}}}{{{no-year|}}}|<!--
 
--><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}}<!-- -->}}<!--
-->|{{#if:{{{1|}}}|<!--
 
--><span class="date rosharan-date" {{#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}}<!-- -->}}<!--
--><includeonly><span class="error" title="{{date/no-args}}">?</span></includeonly><!--
 
-->}}|}}<noinclude>This template outputs dates according to the [[Vorin]] format. This{{t|Rosharan template takes in the arguments ''year'', ''month'', ''week'', and ''day''. You need not use every argument in order for this template to work.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
This template's format is: {{t|Rosharan date|YYYY|MM|WW|DD}}
 
[[category: date templates]]
== Examples ==
 
* The input <code>{{t|Rosharan date|1174}}</code> would yield '''{{Rosharan date|1174}}'''.
* The input <code>{{t|Rosharan date|1174|2|3|4}}</code> yields '''{{Rosharan date|1174|2|3|4}}'''.
* The input <code>{{t|Rosharan numeric date|1174|2|3|4}}</code> yields '''{{Rosharan numeric date|1174|2|3|4}}'''.
 
== Users ==
40,275

edits