Difference between revisions of "Template:Rosharan date"

From The Coppermind
Jump to navigation Jump to search
m (try)
m (fix)
Line 1: Line 1:
 
{{{text|<span title="{{Rosharan numeric date|.|year={{{year}}}|month={{{month|}}}|week={{{week|}}}|day={{{day|}}}|}}"><!--
{{#if:{{{1|}}}|<!--
 
 
output YYYY.MM.WW.DD
 
-->{{{year}}}<!--
 
-->{{#if:{{{month|}}}|{{{1}}}{{number|{{{month}}}|}}<!--
 
-->{{#if:{{{week|}}}|{{{1}}}{{number|{{{week}}}|}}<!--
 
-->{{#if:{{{day|}}}|{{{1}}}{{number|{{{day}}}|}}<!--
 
-->}}|}}|}}<!--
 
 
-->|<!--
 
 
output textual month/week/day parts followed by numeric year (surrounded with YYYY.MM.WW.DD titled span)
 
 
-->{{{text|<span title="{{date/sa|.|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}}<!--
 
-->{{#switch:{{number|{{{month|}}}|}}|1=Jes|2=Nan|3=Chach|4=Vev|5=Palah|6=Shash|7=Betab|8=Kak|9=Tanat|10=Ish}}<!--
Line 18: Line 5:
 
-->{{#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}}<!--
   
--> {{{year|}}}</span>}}}<!--
+
--> {{{year|}}}</span>}}}<noinclude>
 
ENDIFEQ
 
-->}}<noinclude>
 
   
 
This template's format is: <nowiki>{{date/sa|year=YYYY|month=MM|week=WW|day=DD}}</nowiki>
 
This template's format is: <nowiki>{{date/sa|year=YYYY|month=MM|week=WW|day=DD}}</nowiki>

Revision as of 19:07, 8 December 2017

This template's format is: {{date/sa|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:

  • The input {{date/sa|year=1174}} would yield 1174.
  • The input {{date/sa|year=1174|month=1|week=1|day=1}} yields Jeseses 1174.
  • The input {{date/sa|year=1174|month=1|week=1|day=1|.}} yields Jeseses 1174.

Users