Template:Hodie

From NovaRoma
(Difference between revisions)
Jump to: navigation, search
(new date fuction, document)
 
(add switch for short date)
Line 1: Line 1:
{{{{LOCALMONTHABBREV}} {{LOCALDAY}}|i}} {{{{CURRENTYEAR}} }}<noinclude>
+
{{{{LOCALMONTHABBREV}} {{LOCALDAY}}|i}} {{#switch:{{lc:{{{1|}}}}}|s=&nbsp;|#default={{{{CURRENTYEAR}} }}}}<noinclude>
  
 
==Usage==
 
==Usage==
Line 9: Line 9:
 
*Links to explanatory material.  
 
*Links to explanatory material.  
 
*Links are globalized.  
 
*Links are globalized.  
 +
 +
pass first parameter "s" for "short" date, i.e., no year.
  
 
[[Category:Date templates]]
 
[[Category:Date templates]]
 
</noinclude>
 
</noinclude>

Revision as of 06:47, 5 October 2008

a.d. XI Kal. Dec. M. Cotta C. Petronio cos. MMDCCLXXVII a.u.c.

Usage

{{Hodie}}

  • Always returns the correct Roman date.
  • Adjusts for leap year.
  • Links to explanatory material.
  • Links are globalized.

pass first parameter "s" for "short" date, i.e., no year.

Personal tools