Module:Infobox Monster: Difference between revisions

simplify infobox for passive monsters
mNo edit summary
(simplify infobox for passive monsters)
Line 87:
}
end
if infobox:is_param_definedget_param(Infobox.param('immune_topassive'), 0) >== 0'No' then
if infobox:is_param_defined(Infobox.param('vulnerable_toimmune_to')) > 0 then
infobox:add_row{
{tag='th', content='Immune to', colspan="7"},
{tag='tdth', content=Infobox.param('immune_toImmune to'), colspan="137"},
{tag='thtd', content=Infobox.param('Immune toimmune_to'), colspan="713"},
}
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='tdth', content=Infobox.param('vulnerable_toVulnerable to'), colspan="137"},
{tag='thtd', content=Infobox.param('Vulnerable tovulnerable_to'), colspan="713"},
}
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
infobox:add_row{
{tag='th', content='[[File:Aggressive activity icon.png|3px|link=Aggressive]] [[Aggressive]]', colspan="7"},
{tag='td', content=Infobox.param('aggressive'), colspan="13"},
}
end
infobox:add_row{
{tag='th', content='Description', colspan="7"},
{tag='tdth', content=Infobox.param('descriptionDescription'), colspan="137"},
{tag='thtd', content=Infobox.param('Descriptiondescription'), colspan="713"},
}
}
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
2,644

edits