Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:DateI18n: Difference between revisions

From Neodyland Wiki
code cleanup
m allow "case=-" to mean the same as "case="
Line 383: Line 383:


-- HTML formating of date string and tagging for microformats (only for absolute dates with a year).
-- HTML formating of date string and tagging for microformats (only for absolute dates with a year).
if class and class ~= '' and datecode:sub(1,1) == 'Y' then  
if class and class ~= '' and class ~= '-' and datecode:sub(1,1) == 'Y' then  
local pat = '<time class="%s" datetime="%s" lang="%s" dir="%s" style="white-space:nowrap">%s</time>'
local pat = '<time class="%s" datetime="%s" lang="%s" dir="%s" style="white-space:nowrap">%s</time>'
datestr = pat:format(class, timeStamp, lang, langObj:getDir(), datestr)
datestr = pat:format(class, timeStamp, lang, langObj:getDir(), datestr)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.