"मोड्युल:Coordinates" के अवतरणसभमे अन्तर
Content deleted Content added
अ ne:मोड्युल:Coordinates सँ १७३ अवतरण आयात केल गेल: आयात करैत |
अ सुधार |
||
पङ्क्त्ति २८:
--[[ Helper function, replacement for {{coord/display/title}} ]]
local function displaytitle(s, notes)
local l = "[[भौगोलिक निर्देशाङ्क प्रणाली|
local co = '<span id="coordinates">' .. l .. notes .. '</span>';
return '<span style="font-size: small;">' .. co .. '</span>';
पङ्क्त्ति ६९:
local result = ""
for i,v in ipairs(errors) do
local errorHTML = '<strong class="error">
result = result .. errorHTML .. "<br />"
end
पङ्क्त्ति १०४:
if uriComponents == "" then
-- RETURN error, should never be empty or nil
return "त्रुटि प्यारामिटर खाली
end
if args["name"] then
पङ्क्त्ति ११०:
end
local geodmshtml = '<span class="geo-dms" title="
.. '<span class="latitude">' .. convert("ne", coordinateSpec["dms-lat"]) .. '</span> '
.. '<span class="longitude">' .. convert("ne", coordinateSpec["dms-long"]) .. '</span>'
पङ्क्त्ति १३३:
end
local geodechtml = '<span class="geo-dec" title="
.. convert("ne", geodeclat) .. ' '
.. convert("ne", geodeclong)
पङ्क्त्ति २८२:
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
पङ्क्त्ति ३००:
end
if long_s >= 60 then
table.insert(errors, {source, "देशान्तर
end
if long_s < 0 then
table.insert(errors, {source, "देशान्तर
end
पङ्क्त्ति ३२०:
if not long then
return nil, {{"parseDec", "
elseif not tonumber(long) then
return nil, {{"parseDec", "
end
पङ्क्त्ति ३६१:
errors = validate( lat_d, lat_m, lat_s, long_d, long_m, long_s, 'parseDMS', true );
if not long_d then
return nil, {{"parseDMS", "
elseif not tonumber(long_d) then
return nil, {{"parseDMS", "
end
पङ्क्त्ति ४२३:
if not args[1] then
-- no lat logic
return errorPrinter( {{"formatTest", "
elseif not tonumber(args[1]) then
-- bad lat logic
return errorPrinter( {{"formatTest", "
elseif not args[4] and not args[5] and not args[6] then
-- dec logic
पङ्क्त्ति ४४७:
args[5], args[6], args[7], args[8], args.format)
if args[10] then
table.insert(errors, {'formatTest', 'अप्रत्यासित अतिरिक्त
end
if not result then
पङ्क्त्ति ४५८:
args[4], args[5], nil, args[6], args['format'])
if args[8] then
table.insert(errors, {'formatTest', 'अप्रत्यासित अतिरिक्त
end
if not result then
पङ्क्त्ति ४६९:
args[3], nil, nil, args[4], args.format)
if args[6] then
table.insert(errors, {'formatTest', 'अप्रत्यासित अतिरिक्त
end
if not result then
पङ्क्त्ति ४७७:
else
-- Error
return errorPrinter({{"formatTest", "अज्ञात आर्गुमेन्ट
end
result.name = args.name
पङ्क्त्ति ४९०:
local ret = specPrinter(args, result)
if #errors > 0 then
ret = ret .. ' ' .. errorPrinter(errors) .. '[[Category:विकृत निर्देशाङ्क
end
return ret, backward
पङ्क्त्ति ५०६:
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
|