Module:ReturnImageForTemplate

From Resonite Wiki

Example of how to use this is on Template:GetDirectionNodePage


local p = {}


function p.ReturnImage( frame )
  mw.logObject(frame:getParent());
  local i = 1;
  local text = "";
  for i=1, frame.args[3] do
    text = text .. "_" .. frame:getParent().args[i];
  end
  
  return frame.args[1] .. text .. frame.args[2];
end

return p