Difference between revisions of "Template:Rosharan date"

From The Coppermind
Jump to navigation Jump to search
m (trim separator space when unnecessary)
m (add positional arguments)
Line 1: Line 1:
  +
{{#if:{{{year|}}}|<!--
{{{text|<span title="{{Rosharan numeric date|.|year={{{year}}}|month={{{month|}}}|week={{{week|}}}|day={{{day|}}}|}}"><!--
 
   
-->{{#switch:{{number|{{{month|}}}|}}|1=Jes|2=Nan|3=Chach|4=Vev|5=Palah|6=Shash|7=Betab|8=Kak|9=Tanat|10=Ish}}<!--
+
--><span title="{{Rosharan numeric date|{{{year}}}{{{month|}}}|{{{week|}}}|{{{day|}}}|}}"><!--
  +
-->{{#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}}<!--
 
-->{{#switch:{{number|{{{day| }}}|}}| 1=es| 2=an| 3=ach| 4=ev| 5=ah}}<!--
   
-->{{#if:{{{month|}}}|&#32;}}{{{year|}}}</span>}}}<noinclude>
+
-->{{#if:{{{month|}}}|&#32;}}{{{year|}}}</span><!--
  +
  +
end of {{{year}}}
  +
-->|{{#if:{{{1|}}}|<!--
  +
 
--><span 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|{{{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's format is: {{t|Rosharan date|2=year=YYYY|3=month=MM|4=week=WW|5=day=DD}}
Line 11: Line 31:
 
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 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:
+
== Examples ==
   
* The input <code>{{t|Rosharan date|2=year=1174}}</code> would yield '''{{Rosharan date|year=1174}}'''.
+
* The input <code>{{t|Rosharan date|1174}}</code> would yield '''{{Rosharan date|1174}}'''.
* The input <code>{{t|Rosharan date|2=year=1174|3=month=1|4=week=1|5=day=1}}</code> yields '''{{Rosharan date|year=1174|month=1|week=1|day=1}}'''.
+
* 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|2=year=1174|3=month=1|4=week=1|5=day=1}}</code> yields '''{{Rosharan numeric date|year=1174|month=1|week=1|day=1}}'''.
+
* The input <code>{{t|Rosharan numeric date|1174|2|3|4}}</code> yields '''{{Rosharan numeric date|1174|2|3|4}}'''.
   
[[Category: Templates]]
 
 
== Users ==
 
== Users ==
 
{{Special:WhatLinksHere/{{FULLPAGENAME}}|}}
 
{{Special:WhatLinksHere/{{FULLPAGENAME}}|}}

Revision as of 14:13, 9 December 2017


This template's format is: {{Rosharan date|year=YYYY|month=MM|week=WW|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

-->1174.

-->Nanachev 1174.

Users