A Wiki in the Desert
Log in

Difference between revisions of "Module:HerbGallery"

From A Wiki in the Desert
Line 2: Line 2:
  
 
function p.gallery( frame )
 
function p.gallery( frame )
 +
if not mw.smw then
 +
        return "mw.smw module not found"
 +
    end
 +
 +
    if frame.args[1] == nil then
 +
        return "no parameter found"
 +
    end
 +
   
 
return frame.args
 
return frame.args
 
end
 
end
  
 
return p
 
return p

Revision as of 02:39, 15 May 2021

Documentation for this module may be created at Module:HerbGallery/doc

local p = {} --p stands for package

function p.gallery( frame )
	if not mw.smw then
        return "mw.smw module not found"
    end

    if frame.args[1] == nil then
        return "no parameter found"
    end
    
	return frame.args
end

return p