Module:Catalog lookup link: Difference between revisions

Created page with "--[[ |1=, |2=, |3=, |4=, |5=, |6=, |7=, |8=, |9=: Optional unnamed parameters for 0 to 9 items to be listed. Whitespace is trimmed off both ends and the strings are urlencoded as if they were query strings. |article-link=: Optional Wikipedia article name to link to. |article-name=: Optional alternative text to be displayed for |article-link= link in front of catalog link. If not specified, |article-link= is used for display as well. If both parameters are not specified..."
 
No edit summary
 
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};