မေႃႇၵျူး:Coordinates: လွင်ႈပႅၵ်ႇပိူင်ႈ ၼႂ်းၵႄႈ လွင်ႈၶူၼ်ႉၶႆႈ
Content deleted Content added
mNo edit summary |
Reverted to revision 3984733 by Ninjastrikers (talk). (TW) |
||
ထႅဝ် 27:
--[[ Helper function, replacement for {{coord/display/title}} ]]
local function displaytitle(s, notes)
local l = "[[Geographic coordinate system|
local co = '<span id="coordinates">' .. l .. notes .. '</span>';
return '<span style="font-size: small;">' .. co .. '</span>';
ထႅဝ် 37:
end
--[[
local function dmsTest(first, second)
if type(first) ~= 'string' or type(second) ~= 'string' then
ထႅဝ် 57:
end
--[[
local function optionalArg(arg, supplement)
return arg and arg .. supplement or ''
ထႅဝ် 63:
--[[
Formats any error messages generated for display
]]
Line 70 ⟶ 68:
local result = ""
for i,v in ipairs(errors) do
local errorHTML = '<strong class="error">
result = result .. errorHTML .. "<br />"
end
Line 77 ⟶ 75:
--[[
Determine the required CSS class to display coordinates
Line 102 ⟶ 94:
--[[
specPrinter
Line 173 ⟶ 160:
end
--[[
local function convert_dec2dms_d(coordinate)
local d = math_mod._round( coordinate, 0 ) .. "°"
Line 179 ⟶ 166:
end
--[[
local function convert_dec2dms_dm(coordinate)
coordinate = math_mod._round( coordinate * 60, 0 );
Line 189 ⟶ 176:
end
--[[
local function convert_dec2dms_dms(coordinate)
coordinate = math_mod._round( coordinate * 60 * 60, 0 );
Line 202 ⟶ 189:
--[[
Helper function, convert decimal latitude or longitude to
degrees, minutes, and seconds format based on the specified precision.
Line 228 ⟶ 212:
--[[
Convert DMS format into a N or E decimal coordinate
]]
Line 255 ⟶ 237:
end
--[[
Checks input values to for out of range errors.
]]
Line 329 ⟶ 309:
--[[
parseDec
Line 367 ⟶ 342:
--[[
parseDMS
Line 423 ⟶ 393:
--[[
Check the input arguments for coord to determine the kind of data being provided
and then make the necessary processing.
Line 508 ⟶ 475:
--[[
Generate Wikidata tracking categories.
]]
Line 576 ⟶ 541:
--[[
Helper function to determine whether to use D, DM, or DMS
format depending on the precision of the decimal input.
|