Template:Hodie

From NovaRoma
(Difference between revisions)
Jump to: navigation, search
(new date fuction, document)
 
m (try to get rid of extra space)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
{{{{LOCALMONTHABBREV}} {{LOCALDAY}}|i}} {{{{CURRENTYEAR}} }}<noinclude>
+
{{{{LOCALMONTHABBREV}} {{LOCALDAY}}|i}} {{#switch:{{lc:{{{1|}}}}}|s=|#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>

Latest revision as of 06:52, 5 October 2008

a.d. X 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