Example of how to use this is on Template:GetDirectionNodePage
local p = {} function p.ReturnImage( frame ) mw.logObject(frame:getParent()); return frame.args[1] .. frame:getParent().args[1] .. frame.args[2]; end return p