Module:Age: Difference between revisions

156 bytes added ,  7 years ago
new show=h, show=hm where days not wanted; show error for an unsupported show (occurs with partial dates)
(fix <span> anchor for error message)
(new show=h, show=hm where days not wanted; show error for an unsupported show (occurs with partial dates))
Line 146:
w = { 'w', id = 'w' },
wd = { 'w', 'd', id = 'wd' },
h = { 'H', id = 'h' },
hm = { 'H', 'M', id = 'hm' },
d = { 'd', id = 'd' },
dh = { 'd', 'H', id = 'dh' },
Line 369 ⟶ 371:
end
local values = { diff:age(show.id, diff_options) }
if values[1] then
return make_text(values, show, names[abbr], text_options)
end
return message('Parameter show=' .. show.id .. ' is not supported here')
end
 
Anonymous user