Module:Sandbox/ChaoticShadow/InfoboxBuilder: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 137: Line 137:
end
end


--[[
{ content, title }
]]--
function InfoboxBuilder:addImage(...)
function InfoboxBuilder:addImage(...)
local argt = ...
local argt = ...
Line 147: Line 150:
local t = {}
local t = {}
for i, v in ipairs(argt) do
for i, v in ipairs(argt) do
table.insert(t, i, self:getContent(v))
table.insert(t, i, v.title .. "=" .. self:getContent(v))
end
end
content = mw.getCurrentFrame()
content = mw.getCurrentFrame()