Module:Infobox Monster: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 20:
{name = 'hp', func = parse.number}, -- TODO - move to Module:Param Parse once more details are available, and create smw_property
{name = 'xp', func = parse.number}, -- TODO - same as above
{name = 'att_style', func = parse.has_content},
{name = 'immune_to', func = parse.has_content},
{name = 'vulnerable_to', func = parse.has_content},
parse.variant,
parse.passive,
Line 55 ⟶ 58:
{tag='td', content=Infobox.param('xp'), colspan="14"},
}
if infobox:is_param_defined(Infobox.param('att_style')) > 0 then
infobox:add_row{
{tag='th', content='[[Attack Style]]', colspan="6"},
{tag='td', content=Infobox.param('att_style'), colspan="14"},
}
end
if infobox:is_param_defined(Infobox.param('immune_to')) > 0 then
infobox:add_row{
{tag='th', content='Immune To', colspan="6"},
{tag='td', content=Infobox.param('immune_to'), colspan="14"},
}
end
if infobox:is_param_defined(Infobox.param('vulnerable_to')) > 0 then
infobox:add_row{
{tag='th', content='Vulnerable to', colspan="6"},
{tag='td', content=Infobox.param('vulnerable_to'), colspan="14"},
}
end
if infobox:is_param_defined(Infobox.param('variant')) > 0 then
infobox:add_row{
152

edits