Changes

Jump to navigation Jump to search

Module:InfoboxImage

220 bytes added, 12:53, 26 May 2013
add upright
-- sizedefault - default size to display the image if size param is blank
-- alt - alt text for image
-- border - set to 1 if border
-- upright - upright image param
-- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it
-- Outputs:
local alt = frame.args["alt"];
local border = frame.args["border"];
local upright = frame.args["upright"] or "";
-- remove file: or image: prefix if exists
if border == "yes" then
result = result .. "|border";
end
if upright ~= "" then
result = result .. "|upright=" .. upright;
end
result = result .. "]]";
Anonymous user

Navigation menu