Module:Infobox Monster: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(+support for knowledge points) |
(+add icon to knowledge th element) |
||
Line 120: | Line 120: | ||
{tag='td', content=Infobox.param('passive'), colspan="13"}, |
{tag='td', content=Infobox.param('passive'), colspan="13"}, |
||
} |
} |
||
if infobox:is_param_defined(Infobox.param('knowledge')) > 0 then |
if infobox:get_param(Infobox.param('passive'), 0) ~= 'No' and infobox:is_param_defined(Infobox.param('knowledge')) > 0 then |
||
infobox:add_row{ |
infobox:add_row{ |
||
{tag='th', content='Knowledge', colspan="7"}, |
{tag='th', content='[[File:Knowledge_icon.png|link=Knowledge|width=18x18]] [[Knowledge]]', colspan="7"}, |
||
{tag='td', content=Infobox.param('knowledge'), colspan="13"}, |
{tag='td', content=Infobox.param('knowledge'), colspan="13"}, |
||
} |
} |