Difference between revisions of "Template:Rosharan numeric date"

m
add positional variant
(+tempalte)
 
m (add positional variant)
<includeonly><!-- output YYYY.MM.WW.DD
 
if year is passed use named parameters
-->{{#if:{{{year|}}}|<!--
 
-->{{{year}}}<!--
-->{{#if:{{{month|}}}|{{{sep|.}}}{{number|{{{month}}}|}}<!--
-->}}|}}|}}<!--
 
-->|<!--
--></includeonly><noinclude>
 
otherwise use up to four numbered parameters
 
-->{{{1}}}<!--
-->{{#if:{{{2|}}}|{{{sep|.}}}|}}<!--
-->{{{2|}}}<!--
-->{{#if:{{{3|}}}|{{{sep|.}}}|}}<!--
-->{{{3|}}}<!--
-->{{#if:{{{4|}}}|{{{sep|.}}}|}}<!--
-->{{{4|}}}<!--
 
-->}}</includeonly><noinclude>
 
This template outputs a [[Rosharan]] numeric date in the format <code>YYYY.MM.DD.HH</code> up to the precision given. Usage is similar to {{t|Rosharan date}}:
:<code>{{t|Rosharan numeric date|2=year=YYYY|3=month=MM|4=week=WW|5=day=DD}}</code>
 
AThe <code>{{{year}}}YYYY</code> mustis be givenmandatory, but the <code>{{{month}}}MM</code>, <code>{{{week}}}WW</code>, or <code>{{{day}}}DD</code> are optional up to the precision wanted. <code>{{{sep}}}</code> can be used to exchange the <code>.</code> for a different separator.
 
[[category: templates]]
40,275

edits