Module:InfoboxImage: Difference between revisions

Jump to navigation Jump to search
imported>WOSlinker
No edit summary
imported>WOSlinker
No edit summary
Line 5: Line 5:
         return frame.args["image"];
         return frame.args["image"];
     else
     else
         return "TODO";
         return "[[File:" .. frame.args["image"] .. "|frameless]]" ;
     end
     end
end
end


return i;
return i;

Revision as of 18:49, 28 August 2012

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

local i = {};

function i.InfoboxImage(frame)
    if string.sub(frame.args["image"],1,2) == "[[" then
        return frame.args["image"];
    else
        return "[[File:" .. frame.args["image"] .. "|frameless]]" ;
    end
end

return i;