"ഘടകം:Location map" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
Jacob.jose (സംവാദം | സംഭാവനകൾ) No edit summary |
Jackmcbarn (സംവാദം | സംഭാവനകൾ) make the cause of the error more apparent when there's special characters in the name of a map |
||
വരി 1:
require('
local p = {}
local getArgs = require('
local function round(n, decimals)
വരി 14:
error('The name of the location map definition to use must be specified', 2)
end
local moduletitle = mw.title.new('
if not moduletitle then
error(
elseif moduletitle.exists then
local mapData = mw.loadData('
return function(name, params)
if name == nil then
return '
elseif mapData[name] == nil then
return ''
വരി 30:
end
end
elseif mw.title.new('
local cache = {}
if type(frame) ~= 'table' or type(frame.expandTemplate) ~= 'function' then
വരി 40:
else
if name == nil then
return '
elseif cache[name] == nil then
cache[name] = frame:expandTemplate{title = 'Location map ' .. map, args = { name }}
വരി 48:
end
else
error('Unable to find the specified location map definition. Neither "
end
end
വരി 329:
function p.mark(frame, args, map)
if not args then
args = getArgs(frame, {wrappers = '
end
if not map then
വരി 406:
function p.main(frame, args, map)
if not args then
args = getArgs(frame, {wrappers = '
end
if args.useWikidata == nil then
|