Module:Coordinates: Difference between revisions

m
1 revision
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 == "N" or direction == "E" then
     if direction == "S" or direction == "W" then
        factor = 1
    else
         factor = -1
         factor = -1
     end
     end
14,061

edits