Jump to content

Module:Catalog lookup link: Difference between revisions

+templatestyles
 
allow calling _main from Lua
Line 127: Line 127:
]]
]]


local function main (frame)
local function _main (args, frame)
local args = getArgs (frame);
if not frame then
frame = mw.getCurrentFrame();
end
local out_text = '';
local out_text = '';


Line 211: Line 214:
end
end


return {main = main};
local function main (frame)
local args = getArgs (frame);
return _main (args, frame)
end
 
return {main = main, _main = _main};
Cookies help us deliver our services. By using our services, you agree to our use of cookies.