Module:Sandbox/ChaoticShadow/InfoboxBuilder: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 252: | Line 252: | ||
local content = '?' |
local content = '?' |
||
local actual_args = {} |
|||
for _,v in ipairs(argt) do |
|||
local c = v.content |
|||
⚫ | |||
-- c = self:getContent(c) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
-- end |
|||
⚫ | |||
⚫ | |||
local v = argt[1] -- tables start at 1 |
|||
⚫ | |||
if v.tag == 'argtd' then |
if v.tag == 'argtd' then |
||
c = self:getContent(c) |
|||
end |
end |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
return self |
|||
⚫ | |||
⚫ | |||
else |
else |
||
local t = {} |
local t = {} |
||
for |
for _,v in ipairs(actual_args) do |
||
table.insert(t, i, v.title .. "=" .. v.content) |
|||
if v.tag == 'argtd' then |
|||
c = self:getContent(c) |
|||
end |
|||
table.insert(t, i, v.title .. "=" .. c) |
|||
end |
end |
||