Module:InfoboxImage: Difference between revisions

add link param
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:
-- upright - upright image param
-- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it
-- link - page to visit when clicking on image
-- Outputs:
-- Formatted image.
Line 128 ⟶ 129:
local sizedefault = frame.args["sizedefault"];
local alt = frame.args["alt"];
local link = frame.args["link"];
local title = frame.args["title"];
local border = frame.args["border"];
Line 174 ⟶ 176:
if alt ~= "" and alt ~= nil then
result = result .. "|alt=" .. alt;
end
if link ~= "" and link ~= nil then
result = result .. "|link=" .. link;
end
if border == "yes" then
Anonymous user