"मोड्युल:Coordinates" के अवतरणसभमे अन्तर

Content deleted Content added
ne:मोड्युल:Coordinates सँ १७३ अवतरण आयात केल गेल: आयात करैत
सुधार
 
पङ्क्त्ति २८:
--[[ Helper function, replacement for {{coord/display/title}} ]]
local function displaytitle(s, notes)
local l = "[[भौगोलिक निर्देशाङ्क प्रणाली|निर्देशाङ्कहरूनिर्देशाङ्क]]: " .. s
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">निर्देशाङ्कहरूनिर्देशाङ्क: ' .. v[2] .. '</strong>'
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, "अक्षांश सेकेण्डसेकेन्ड >= 60"})
end
if lat_s < 0 then
table.insert(errors, {source, "अक्षांश सेकेण्डसेकेन्ड < 0"})
end
if long_d >= 360 then
पङ्क्त्ति ३००:
end
if long_s >= 60 then
table.insert(errors, {source, "देशान्तर सेकेण्डसेकेन्ड >= 60"})
end
if long_s < 0 then
table.insert(errors, {source, "देशान्तर सेकेण्डसेकेन्ड < 0"})
end
 
पङ्क्त्ति ३२०:
 
if not long then
return nil, {{"parseDec", "छुटेकोछुटल देशान्तर"}}
elseif not tonumber(long) then
return nil, {{"parseDec", "देशान्तरलाईदेशान्तरकेँ अङ्ककोअङ्कक रूपमारूपमे पार्स गर्ननै सकिएनकएल जा सकल: " .. long}}
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", "देशान्तरलाईदेशान्तरकेँ अङ्कको रूपमाअङ्कक रूपमे पार्स गर्ननै कएल जा सकिएनसकल:" .. long_d }}
end
 
पङ्क्त्ति ४२३:
if not args[1] then
-- no lat logic
return errorPrinter( {{"formatTest", "छुटेकोछुटल अक्षांश"}} )
elseif not tonumber(args[1]) then
-- bad lat logic
return errorPrinter( {{"formatTest", "अक्षांशलाईअक्षांशकेँ अङ्ककोअङ्कक रूपमा पार्स गर्ननै सकिएनकएल जा सकल:" .. args[1]}} )
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 = 'विकिडाटामे निर्देशाङ्क'
ret = 'विकिडाटामा निर्देशाङ्कहरू'
elseif snaktype == 'somevalue' then
ret = 'विकिडाटामाविकिडाटामे निर्देशाङ्ककोनिर्देशाङ्कक अज्ञात मान राखिएकोराखल गेल अछि'
elseif snaktype == 'novalue' then
ret = 'विकिडाटामे निर्देशाङ्कक मान अनुपलब्ध'
ret = 'विकिडाटामा निर्देशाङ्कको मान राखिएको छैन्'
end
else
-- We have to either import the coordinates to Wikidata or remove them here.
ret = 'विकिडाटामे निर्देशाङ्क अनुपलब्ध'
ret = 'विकिडाटामा निर्देशाङ्कहरू छैनन्'
end
end