Module:Infobox Item: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
InvalidCards (talk | contribs) (Let's see if this works) |
(Working on profession bubbles, might break temporarily) |
||
Line 21: | Line 21: | ||
parse.value, |
parse.value, |
||
parse.examine, |
parse.examine, |
||
parse.profession_bubble_a, |
|||
parse.profession_bubble_b, |
|||
} |
} |
||
Line 55: | Line 57: | ||
{tag='td', content=Infobox.param('examine'), colspan="14"} |
{tag='td', content=Infobox.param('examine'), colspan="14"} |
||
} |
} |
||
local bubble_a = infobox:is_param_defined(Infobox.param('profession_bubble_a')) > 0 |
|||
⚫ | |||
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 |
|||
⚫ | |||
return infobox |
return infobox |