Module:InfoboxImage: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>WOSlinker
No edit summary
>WOSlinker
No edit summary
Line 3: Line 3:
function i.InfoboxImage(frame)
function i.InfoboxImage(frame)
--    if ustring.sub(frame["image"],1,2) == "[[" then
--    if ustring.sub(frame["image"],1,2) == "[[" then
         return frame["image"];
         return frame.args["image"];
--    else
--    else
--        return frame["image"];
--        return frame["image"];

Revision as of 13:46, 28 August 2012

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

local i = {};

function i.InfoboxImage(frame)
--    if ustring.sub(frame["image"],1,2) == "[[" then
        return frame.args["image"];
--    else
--        return frame["image"];
--    end
end

return i;