Razlika između verzija stranice "Modul:Coordinates"
[pregledana izmjena] | [pregledana izmjena] |
Uklonjeni sadržaj Dodani sadržaj
No edit summary |
No edit summary |
||
Red 101:
if uriComponents == "" then
-- RETURN error, should never be empty or nil
return "
end
if args["name"] then
Red 107:
end
local geodmshtml = '<span class="geo-dms" title="Karte, Maps,
.. '<span class="latitude">' .. coordinateSpec["dms-lat"] .. '</span> '
.. '<span class="longitude">' ..coordinateSpec["dms-long"] .. '</span>'
Red 130:
end
local geodechtml = '<span class="geo-dec" title="Karte, Maps,
.. geodeclat .. ' '
.. geodeclong
Red 249:
if strong then
if lat_d < 0 then
table.insert(errors, {source, "
end
if long_d < 0 then
table.insert(errors, {source, "
end
--[[
Red 267:
if lat_d > 90 then
table.insert(errors, {source, "
end
if lat_d < -90 then
table.insert(errors, {source, "
end
if lat_m >= 60 then
table.insert(errors, {source, "
end
if lat_m < 0 then
table.insert(errors, {source, "
end
if lat_s >= 60 then
table.insert(errors, {source, "
end
if lat_s < 0 then
table.insert(errors, {source, "
end
if long_d >= 360 then
table.insert(errors, {source, "
end
if long_d <= -360 then
table.insert(errors, {source, "
end
if long_m >= 60 then
table.insert(errors, {source, "
end
if long_m < 0 then
table.insert(errors, {source, "
end
if long_s >= 60 then
table.insert(errors, {source, "
end
if long_s < 0 then
table.insert(errors, {source, "
end
Red 459:
args[3], nil, nil, args[4], args.format)
if args[6] then
table.insert(errors, {'formatTest', '
end
if not result then
Red 496:
if snaktype == 'value' then
-- coordinates exist both here and on Wikidata, and can be compared.
ret = '
elseif snaktype == 'somevalue' then
ret = '
elseif snaktype == 'novalue' then
ret = '
end
else
-- We have to either import the coordinates to Wikidata or remove them here.
ret = '
end
end
if ret then
return string.format('[[
else
return ''
|