વિભાગ:InfoboxImage: આવૃત્તિઓ વચ્ચેનો તફાવત

Content deleted Content added
Undid revision 561051446 by WOSlinker (talk)
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
-- title - title text for image
-- border - set to yes if border
-- center - set to yes, if the image has to be centered
-- 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 title = frame.args["title"];
local border = frame.args["border"];
local upright = frame.args["upright"] or "";
local center= frame.args["center"];
-- remove file: or image: prefix if exists
Line ૧૬૬ ⟶ ૧૭૦:
if alt ~= "" and alt ~= nil then
result = result .. "|alt=" .. alt;
elseif title ~= "" and title ~= nil then
result = result .. "|alt=" .. title;
end
if border == "yes" then
Line ૧૭૨ ⟶ ૧૭૮:
if upright ~= "" then
result = result .. "|upright=" .. upright;
end
if title ~= "" and title ~= nil then
result = result .. "|" .. title;
end
result = result .. "]]";