14,061
edits
m (1 revision) |
m (1 revision) |
||
(One intermediate revision by the same user not shown) | |||
Line 367: | Line 367: | ||
local seconds = tonumber(seconds_str) or 0 | local seconds = tonumber(seconds_str) or 0 | ||
local factor | local factor = 1 | ||
direction = mw.ustring.gsub(direction, '^[ ]*(.-)[ ]*$', '%1'); | direction = mw.ustring.gsub(direction, '^[ ]*(.-)[ ]*$', '%1'); | ||
if direction == " | if direction == "S" or direction == "W" then | ||
factor = -1 | factor = -1 | ||
end | end |