Difference between revisions of "Template:Rosharan numeric date"

m
→‎Users: modernize
(+tempalte)
 
m (→‎Users: modernize)
 
(3 intermediate revisions by the same user not shown)
<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>[[category: date templates]]
 
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.
 
== Articles using Template ==
[[category: templates]]
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}}
40,275

edits