Difference between revisions of "Template:Rosharan date"

From The Coppermind
Jump to navigation Jump to search
m (only title when there's more than only the year)
m (+classes)
Line 1: Line 1:
 
{{#if:{{{year|}}}{{{no-year|}}}|<!--
 
{{#if:{{{year|}}}{{{no-year|}}}|<!--
   
--><span {{#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 12: Line 12:
 
-->|{{#if:{{{1|}}}|<!--
 
-->|{{#if:{{{1|}}}|<!--
   
--><span {{#if:{{{2|}}}|title="{{Rosharan numeric date|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|}}"}}><!--
+
--><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}}<!-- -->}}<!--
 
-->{{#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}}<!-- -->}}<!--
Line 25: Line 25:
 
--><includeonly><span class="error" title="{{date/no-args}}">?</span></includeonly><!--
 
--><includeonly><span class="error" title="{{date/no-args}}">?</span></includeonly><!--
   
-->}}|}}<noinclude>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.
+
-->}}|}}<noinclude>This template outputs dates according to the [[Vorin]] format. {{t|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
This template's format is: {{t|Rosharan date|YYYY|MM|WW|DD}}
 
   
 
[[category: date templates]]
 
[[category: date templates]]
Line 33: Line 33:
 
== Examples ==
 
== Examples ==
   
* The input <code>{{t|Rosharan date|1174}}</code> would yield '''{{Rosharan date|1174}}'''.
+
* The input {{t|Rosharan date|1174}} 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 {{t|Rosharan date|1174|2|3|4}} 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}}'''.
+
* The input {{t|Rosharan numeric date|1174|2|3|4}} yields '''{{Rosharan numeric date|1174|2|3|4}}'''.
   
 
== Users ==
 
== Users ==

Revision as of 14:45, 27 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

Examples

Users