Module:InfoboxImage: Difference between revisions
Content deleted Content added
Johnrdorazio (talk | contribs) m 1 revision imported |
add class param from sandbox as per edit request |
||
Line 12:
-- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it
-- link - page to visit when clicking on image
-- class - HTML classes to add to the image
-- Outputs:
-- Formatted image.
Line 190 ⟶ 191:
local upright = frame.args["upright"] or "";
local thumbtime = frame.args["thumbtime"] or "";
local center = frame.args["center"];
local class = frame.args["class"];
-- remove prefix if exists
Line 256 ⟶ 258:
if thumbtime ~= "" then
result = result .. "|thumbtime=" .. thumbtime;
end
end
-- if alt value is a keyword then do not use as a description
Line 269 ⟶ 274:
if title ~= "" and title ~= nil then
result = result .. "|" .. title;
▲ elseif alt ~= "" and alt ~= nil then
▲ result = result .. "|" .. alt;
end
result = result .. "]]";
|