Module:InfoboxImage: Difference between revisions
Jump to navigation
Jump to search
>WOSlinker No edit summary |
>WOSlinker No edit summary |
||
Line 2: | Line 2: | ||
function i.InfoboxImage(frame) | function i.InfoboxImage(frame) | ||
if frame.args["image"] == "" or frame.args["image"] == nil then | |||
return "" | |||
end | |||
if string.sub(frame.args["image"],1,2) == "[[" then | if string.sub(frame.args["image"],1,2) == "[[" then | ||
return frame.args["image"]; | return frame.args["image"]; |
Revision as of 13:56, 28 August 2012
Documentation for this module may be created at Module:InfoboxImage/doc
local i = {}; function i.InfoboxImage(frame) if frame.args["image"] == "" or frame.args["image"] == nil then return "" end if string.sub(frame.args["image"],1,2) == "[[" then return frame.args["image"]; else return "[[File:" .. frame.args["image"] .. "|frameless]]" ; end end return i;