Module:DateI18n: Difference between revisions
From Neodyland Wiki
More actions
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) | ||