Modulo:InfoboxImage: Malsamoj inter versioj

[kontrolita revizio][kontrolita revizio]
Enhavo forigita Enhavo aldonita
aldono laŭ la angla modulo
aldono de plia parametro
Linio 1:
-- Inputs:
-- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link
-- ending - An optional parameter for the file ending, like jpg, jpeg, png, svg.
-- size - size to display the image
-- maxsize - maximum size for image
Linio 125 ⟶ 126:
else
local result = "";
local ending = frame.args["ending"];
local size = frame.args["size"];
local maxsize = frame.args["maxsize"];
Linio 163 ⟶ 165:
size = size .. "px";
end
-- add an ending to the image name
if ending ~="" and ending ~=nil then
image = image .. "." .. ending
end
result = "[[File:" .. image;