Module:Time ago: Difference between revisions
m
1 revision imported
(Use non-breaking space between number and unit) |
Johnrdorazio (talk | contribs) m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 156: | Line 156: | ||
else | else | ||
result_num_text = tostring( result_num ) | result_num_text = tostring( result_num ) | ||
end | |||
-- numeric or string | |||
local numeric_out = args.numeric | |||
local result = "" | |||
if numeric_out then | |||
result = tostring( result_num ) | |||
else | |||
result = result_num_text .. ' ' .. result_unit .. suffix -- Spaces for suffix have been added in earlier. | |||
end | end | ||
return result .. purge | return result .. purge | ||
end | end |