Module:Infobox Monster: Difference between revisions
simplify infobox for passive monsters
mNo edit summary |
(simplify infobox for passive monsters) |
||
Line 87:
}
end
if infobox:
infobox:add_row{
{tag='th', content='Immune to', colspan="7"},▼
{tag='
}
end▼
end
▲ if infobox:is_param_defined(Infobox.param('vulnerable_to')) > 0 then
if infobox:is_param_defined(Infobox.param('vulnerable_to')) > 0 then
infobox:add_row{
{tag='th', content='Vulnerable to', colspan="7"},▼
{tag='
}
end
end
if infobox:is_param_defined(Infobox.param('variant')) > 0 and infobox:get_param(Infobox.param('variant'), 0) ~= 'N/A' then
Line 114 ⟶ 116:
{tag='td', content=Infobox.param('knowledge'), colspan="13"},
}
else
▲ end
{tag='th', content='[[File:Aggressive activity icon.png|3px|link=Aggressive]] [[Aggressive]]', colspan="7"},
{tag='td', content=Infobox.param('aggressive'), colspan="13"},
}
▲ end
{tag='th', content='Description', colspan="7"},▼
}
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
|