Difference between revisions of "Template:Rosharan date"

From The Coppermind
Jump to navigation Jump to search
m
(Changing template to add a space between year and month/week/day. Currently the output is broken; hope I don't break anything more)
Line 1: Line 1:
{{{text|{{{year|}}}{{#switch:{{lc:{{{month|}}}|}}
+
{{{text|{{#switch:{{lc:{{{month|}}}|}}
 
|jes|1=Jes
 
|jes|1=Jes
 
|nan|2=Nan
 
|nan|2=Nan
Line 27: Line 27:
 
|vev|4=ev
 
|vev|4=ev
 
|palah|5=ah
 
|palah|5=ah
}}|}}}<noinclude>
+
}}|}}} {{{year|}}}<noinclude>
   
  +
This template's format is: <nowiki>{{date/sa|year=YYYY|month=MM|week=WW|day=DD}}</nowiki>
Vorin dates are in Vorin dates
 
  +
  +
This template outputs dates in Rosharan 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 <nowiki>{{date/sa|year=1174|month=1|week=1|day=1}}</nowiki> would yield '''{{date/sa|year=1174|month=1|week=1|day=1}}'''.
  +
  +
* The input <nowiki>{{date/sa|year=1174}}</nowiki> would yield '''{{date/sa|year=1174}}'''.
   
 
[[Category: Templates]]
 
[[Category: Templates]]

Revision as of 18:25, 5 November 2015


This template's format is: {{date/sa|year=YYYY|month=MM|week=WW|day=DD}}

This template outputs dates in Rosharan 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|month=1|week=1|day=1}} would yield Jeseses 1174.
  • The input {{date/sa|year=1174}} would yield 1174.