Module:Time/sandbox: Difference between revisions

Content deleted Content added
Undid revision 858972337 by BrandonXLF (talk)
No edit summary
Line 288:
format = 'dmy'
end
end
if mw.ustring.match (utc_offset, '±') and not mw.ustring.match (utc_offset, '0:') then
return '<span style="font-size:100%" class="error">{{time}} – invalid usage of ± ([[Template:Time#Error messages|help]])</span>';
end
Line 348 ⟶ 344:
args[1], args[2] = get_full_utc_offset (args[1],args[2])
if mw.ustring.match (utc_offset, '±') and not mw.ustring.match (utc_offset, '0:') then
return '<span style="font-size:100%" class="error">{{time}} – invalid usage of ± ([[Template:Time#Error messages|help]])</span>';
end
if mw.ustring.match (args[1], '%.%d+') then