Module:Infobox Item: Difference between revisions

544 bytes removed ,  Wednesday at 21:38
Undo revision 33969 by Artoire (talk): We only want sell price / value on the card in game
(Add buy_price/sell_price args instead of single value)
(Undo revision 33969 by Artoire (talk): We only want sell price / value on the card in game)
Tag: Undo
 
Line 22:
parse.additional_episode,
parse.quest,
parse.value,
{ name = 'buy_price', func = parse.value_func, category_incomplete = 'Items needing buy price', smw_property = 'Shop buy price', smw_func = parse.number },
{ name = 'sell_price', func = parse.value_func, category_incomplete = 'Items needing buy price', smw_property = 'Shop buy price', smw_func = parse.number },
parse.description,
parse.variant,
parse.profession_bubble_a,
parse.profession_bubble_b,
-- Include these next params just to export data to smw
parse.profession_a_smw,
parse.profession_a_level_smw,
Line 71:
}
if infobox:is_param_defined(Infobox.param('quest')) == 0 or infobox:get_param(Infobox.param('quest'), 0) == 'No' then
infobox:add_row{
if infobox:get_param(Infobox.param('buy_price'), 0) ~= 'No' then
{tag='th', content='Sell PriceValue', colspan="6"},
infobox:add_row{
{tag='thtd', content=Infobox.param('Buy Pricevalue'), colspan="614"},
{tag='td', content=Infobox.param('buy_price'), colspan="14"},
}
end
if infobox:get_param(Infobox.param('sell_price'), 0) ~= 'No' then
infobox:add_row{
{tag='th', content='Sell Price', colspan="6"},
{tag='td', content=Infobox.param('sell_price'), colspan="14"},
}
end
else
infobox:add_row{
{tag='th', content='Quest', colspan="6"},
{tag='td', content=Infobox.param('quest'), colspan="14" }
}
infobox:addClass('infobox-questitem')
209

edits