Editing Template:Rosharan numeric date
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<includeonly><!-- output YYYY.MM.WW.DD |
<includeonly><!-- output YYYY.MM.WW.DD |
||
if year is passed use named parameters |
|||
-->{{#if:{{{year|}}}|<!-- |
|||
-->{{{year}}}<!-- |
-->{{{year}}}<!-- |
||
-->{{#if:{{{month|}}}|{{{sep|.}}}{{number|{{{month}}}|}}<!-- |
-->{{#if:{{{month|}}}|{{{sep|.}}}{{number|{{{month}}}|}}<!-- |
||
Line 10: | Line 6: | ||
-->}}|}}|}}<!-- |
-->}}|}}|}}<!-- |
||
⚫ | |||
-->|<!-- |
|||
otherwise use up to four numbered parameters |
|||
-->{{{1}}}<!-- |
|||
-->{{#if:{{{2|}}}|{{{sep|.}}}|}}<!-- |
|||
-->{{{2|}}}<!-- |
|||
-->{{#if:{{{3|}}}|{{{sep|.}}}|}}<!-- |
|||
-->{{{3|}}}<!-- |
|||
-->{{#if:{{{4|}}}|{{{sep|.}}}|}}<!-- |
|||
-->{{{4|}}}<!-- |
|||
⚫ | |||
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}}: |
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|YYYY|MM|WW|DD}}</code> |
:<code>{{t|Rosharan numeric date|2=year=YYYY|3=month=MM|4=week=WW|5=day=DD}}</code> |
||
A <code>{{{year}}}</code> must be given, but the <code>{{{month}}}</code>, <code>{{{week}}}</code>, or <code>{{{day}}}</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]] |
|||
== Articles using Template == |
|||
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}} |
|||
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}} |