Module:Infobox Item: Difference between revisions

Working on profession bubbles, might break temporarily
(Let's see if this works)
(Working on profession bubbles, might break temporarily)
Line 21:
parse.value,
parse.examine,
parse.profession_bubble_a,
parse.profession_bubble_b,
}
Line 55 ⟶ 57:
{tag='td', content=Infobox.param('examine'), colspan="14"}
}
local bubble_a = infobox:is_param_defined(Infobox.param('profession_bubble_a')) > 0
:pad(20)
local bubble_b = infobox:is_param_defined(Infobox.param('profession_bubble_b')) > 0
if bubble_a and bubble_b then
infobox:add_row{
{tag='td', content=Infobox.param('profession_bubble_a'), class='infobox-bubble', colspan="10"},
{tag='td', content=Infobox.param('profession_bubble_b'), class='infobox-bubble', colspan="10"},
addClass = 'infobox-bubble'
}
elseif bubble_a then
infobox:add_row{
{tag='td', content=Infobox.param('profession_bubble_a'), class='infobox-bubble', colspan="20"},
addClass = 'infobox-bubble'
}
elseif bubble_b then
infobox:add_row{
{tag='td', content=Infobox.param('profession_bubble_b'), class='infobox-bubble', colspan="20"},
addClass = 'infobox-bubble'
}
end
infobox:pad(20)
return infobox