Module:Infobox

local p = {}

function p.gallery(f) local args = f:getParent.args if args.image2 then local o = {} for i=1,9 do			local a = args["image"..(i==1 and "" or i)] if a then o[#o+1] = (a:match("%[%[File:([^%]|]+)") or a).."|"..(args["t"..i] or i) end end return f:preprocess("") end return args.image end

return p