Difference between revisions of "Template:Rosharan date"

m
add positional arguments
m (trim separator space when unnecessary)
m (add positional arguments)
{{#if:{{{year|}}}|<!--
{{{text|<span title="{{Rosharan numeric date|.|year={{{year}}}|month={{{month|}}}|week={{{week|}}}|day={{{day|}}}|}}"><!--
 
--><span title="{{#switch:Rosharan numeric date|{{number|{year}}}{{{month|}}}|{{{week|}}}|1=Jes{{{day|2=Nan}}}|3=Chach|4=Vev|5=Palah|6=Shash|7=Betab|8=Kak|9=Tanat|10=Ish}}"><!--
 
-->{{#switch:{{number|{{{week| }}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah| 6=ash| 7=ab| 8=ak| 9=at|10=ish}}<!--
-->{{#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|{{{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|{{{day| }}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah}}<!--
 
-->{{#if:{{{month|}}}|&#32;}}{{{year|}}}</span>}}}<noinclude>!--
 
end of {{{year}}}
-->|{{#if:{{{1|}}}|<!--
 
{{{text|--><span title="{{Rosharan numeric date|.|year={{{year1}}}|month={{{month2|}}}|week={{{week3|}}}|day={{{day4|}}}|}}"><!--
 
-->{{#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|{{{4|}}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah}}<!--
 
-->{{#if:{{{2|}}}|&#32;}}{{{1|}}}</span><!--
 
end of {{{1}}}
-->|<!--
 
--><includeonly>{{date/no-args}}</includeonly><!--
 
-->}}|}}<noinclude>[[category: date templates]]
 
This template's format is: {{t|Rosharan date|2=year=YYYY|3=month=MM|4=week=WW|5=day=DD}}
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.
 
== Examples: ==
 
* The input <code>{{t|Rosharan date|2=year=1174}}</code> would yield '''{{Rosharan date|year=1174}}'''.
* The input <code>{{t|Rosharan date|2=year=1174|2|3=month=1|4=week=1|5=day=1}}</code> yields '''{{Rosharan date|year=1174|month=12|week=13|day=14}}'''.
* The input <code>{{t|Rosharan numeric date|2=year=1174|2|3=month=1|4=week=1|5=day=1}}</code> yields '''{{Rosharan numeric date|year=1174|month=12|week=13|day=14}}'''.
 
[[Category: Templates]]
== Users ==
{{Special:WhatLinksHere/{{FULLPAGENAME}}|}}
40,275

edits