Module:InfoboxImage: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
m (Changed protection level of Module:InfoboxImage: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite)))
(add link param)
Line 10: Line 10:
-- upright - upright image param
-- upright - upright image param
-- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it
-- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it
-- link - page to visit when clicking on image
-- Outputs:
-- Outputs:
-- Formatted image.
-- Formatted image.
Line 128: Line 129:
local sizedefault = frame.args["sizedefault"];
local sizedefault = frame.args["sizedefault"];
local alt = frame.args["alt"];
local alt = frame.args["alt"];
local link = frame.args["link"];
local title = frame.args["title"];
local title = frame.args["title"];
local border = frame.args["border"];
local border = frame.args["border"];
Line 174: Line 176:
if alt ~= "" and alt ~= nil then
if alt ~= "" and alt ~= nil then
result = result .. "|alt=" .. alt;
result = result .. "|alt=" .. alt;
end
if link ~= "" and link ~= nil then
result = result .. "|link=" .. link;
end
end
if border == "yes" then
if border == "yes" then