Module:Infobox Item: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Adding actions.)
m (make actions param optional)
Line 82: Line 82:
infobox:addClass('infobox-questitem')
infobox:addClass('infobox-questitem')
end
end
if infobox:is_param_defined(Infobox.param('actions')) > 0 then
infobox:add_row{
infobox:add_row{
{tag='th', content='Actions', colspan="6"},
{tag='th', content='Actions', colspan="6"},
{tag='td', content=Infobox.param('actions'), colspan="14"}
{tag='td', content=Infobox.param('actions'), colspan="14"}
}
}
infobox:add_row{
infobox:add_row{
{tag='th', content='Description', colspan="6"},
{tag='th', content='Description', colspan="6"},
{tag='td', content=Infobox.param('description'), colspan="14"}
{tag='td', content=Infobox.param('description'), colspan="14"}
}
}
end
if infobox:is_param_defined(Infobox.param('variant')) > 0 and infobox:get_param(Infobox.param('variant'), 0) ~= 'N/A' then
if infobox:is_param_defined(Infobox.param('variant')) > 0 and infobox:get_param(Infobox.param('variant'), 0) ~= 'N/A' then
infobox:add_row{
infobox:add_row{