Module:ReturnImageForTemplate: Difference between revisions

From Resonite Wiki
m haha?
m maybe?
Line 4: Line 4:


function p.ReturnImage( frame )
function p.ReturnImage( frame )
   return frame.args[1] .. frame:getParent().args[1] .. frame.args[3];
   return frame.args[1] .. frame:getParent().args[1] .. frame.args[2];
end
end


return p
return p

Revision as of 21:57, 10 February 2024

Example of how to use this is on Template:GetDirectionNodePage


local p = {}


function p.ReturnImage( frame )
  return frame.args[1] .. frame:getParent().args[1] .. frame.args[2];
end

return p