Module:Coordinates: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
optional |name= for coordinsert as discussed on the talk page
normalize decimal notation in geohack urls to positive values, for maximum compatibility with geohack, WMA and geodata
வரிசை 419:
if not result then
return errorPrinter(errors);
end
-- formatting for geohack: geohack expects D_N_D_E notation or D;D notation
result.param = table.concat({args[1], 'N', args[2] or '', 'E', args[3] or ''}, '_')
-- wikiminiatlas doesn't support D;D notation
-- #coordinates parserfunction doesn't support negative decimals with NSWE
result.param = table.concat({
math.abs(tonumber(args[1])),
((tonumber(args[1]) or 0) < 0) and 'S' or 'N',
math.abs(tonumber(args[2])),
((tonumber(args[2]) or 0) < 0) and 'W' or 'E',
args[3] or ''}, '_')
elseif dmsTest(args[4], args[8]) then
-- dms logic
"https://ta.wikipedia.org/wiki/Module:Coordinates" இலிருந்து மீள்விக்கப்பட்டது