Modul:Location map: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
k translate |
kTidak ada ringkasan suntingan |
||
Baris 120:
-- Finds a parameter in a transclusion of {{Coord}}.
local function coord2text(para,coord) -- this should be changed for languages which do not use Arabic numerals or the degree sign
local result = mw.text.split(mw.ustring.match(coord,'%-?[%,%d]+°[
if para == 'longitude' then result = {result[3], result[4]} end
if not tonumber(result[1]) or not result[2] then return error('Malformed coordinates value', 2) end
|