Module:Infobox Item: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Change value to shop buy and shop sell price)
No edit summary
Line 22: Line 22:
parse.additional_episode,
parse.additional_episode,
parse.quest,
parse.quest,
parse.shop_buy,
parse.buy_price,
parse.shop_sell,
parse.sell_price,
parse.description,
parse.description,
parse.variant,
parse.variant,
Line 82: Line 82:
infobox:addClass('infobox-questitem')
infobox:addClass('infobox-questitem')
end
end
if infobox:is_param_defined(Infobox.param('shop_buy')) > 0 then
if infobox:is_param_defined(Infobox.param('buy_price')) == 0 or infobox:get_param(Infobox.param('buy_price'), 0) == 'No' then
infobox:add_row{
infobox:add_row{
{tag='th', content='Shop Buy', colspan="6"},
{tag='th', content='Buy Price', colspan="6"},
{tag='td', content=Infobox.param('shop_buy'), colspan="14"},
{tag='td', content=Infobox.param('buy_price'), colspan="14"},
}
}
end
end
if infobox:is_param_defined(Infobox.param('shop_sell')) > 0 then
if infobox:is_param_defined(Infobox.param('sell_price')) == 0 or infobox:get_param(Infobox.param('sell_price'), 0) == 'No' then
infobox:add_row{
infobox:add_row{
{tag='th', content='Shop Sell', colspan="6"},
{tag='th', content='Sell Price', colspan="6"},
{tag='td', content=Infobox.param('shop_sell'), colspan="14"},
{tag='td', content=Infobox.param('sell_price'), colspan="14"},
}
}
end
end