Module:InfoboxImage: Difference between revisions
Jump to navigation
Jump to search
>WOSlinker (Created page with "local i = {}; function i.InfoboxImage(args) -- if ustring.sub(args["image"],1,2) == "[[" then return args["image"]; -- else -- return args["image"]; -- ...") |
>WOSlinker No edit summary |
||
Line 1: | Line 1: | ||
local i = {}; | local i = {}; | ||
function i.InfoboxImage( | function i.InfoboxImage(frame) | ||
-- if ustring.sub( | -- if ustring.sub(frame["image"],1,2) == "[[" then | ||
return | return frame["image"]; | ||
-- else | -- else | ||
-- return | -- return frame["image"]; | ||
-- end | -- end | ||
end | end | ||
return i; | return i; |
Revision as of 13:45, 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["image"]; -- else -- return frame["image"]; -- end end return i;