વિભાગ:InfoboxImage: આવૃત્તિઓ વચ્ચેનો તફાવત
Content deleted Content added
add center code from sandbox from User:Tlustulimu and also add title param |
|||
લીટી ૫:
-- sizedefault - default size to display the image if size param is blank
-- alt - alt text for image
-- border - set to yes if border
-- upright - upright image param
-- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it
Line ૧૨૮ ⟶ ૧૨૬:
local sizedefault = frame.args["sizedefault"];
local alt = frame.args["alt"];
local border = frame.args["border"];
local upright = frame.args["upright"] or "";
-- remove file: or image: prefix if exists
Line ૧૭૦ ⟶ ૧૬૬:
if alt ~= "" and alt ~= nil then
result = result .. "|alt=" .. alt;
end
if border == "yes" then
Line ૧૭૮ ⟶ ૧૭૨:
if upright ~= "" then
result = result .. "|upright=" .. upright;
end
result = result .. "]]";
|