Модуль:Бәәрн Бәәлһн Һазрин Зург: хүвлвр хоорндк йилһән
Аһулһнь уга кегдлә Аһулһнь немгдлә
Ясврин тәәлвр уга |
Ясврин тәәлвр уга |
||
3-гч мөр:
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('
--Module:Location Map >> Модуль:Бәәрн Бәәлһн Һазрин Зург
if not moduletitle then
error('"' .. map .. '" is not a valid name for a location map definition', 2)
elseif moduletitle.exists then
local mapData = mw.loadData('
return function(name, params)
if name == nil then
return '
elseif mapData[name] == nil then
return ''
Мөр 30 ⟶ 31:
end
end
elseif mw.title.new('
local cache = {}
if type(frame) ~= 'table' or type(frame.expandTemplate) ~= 'function' then
Мөр 37 ⟶ 38:
return function(name, params)
if params then
return frame:expandTemplate{title = '
else
if name == nil then
return '
elseif cache[name] == nil then
cache[name] = frame:expandTemplate{title = '
end
return cache[name]
Мөр 315 ⟶ 316:
function p.mark(frame, args, map)
if not args then
args = getArgs(frame, {wrappers = '
end
if not map then
Мөр 396 ⟶ 397:
function p.main(frame, args, map)
if not args then
args = getArgs(frame, {wrappers = '
end
if args.useWikidata == nil then
|