Module:InfoboxImage: Difference between revisions

m
1 revision
m (1 revision)
 
m (1 revision)
(One intermediate revision by the same user not shown)
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
14,061

edits