Module:Infobox Item: Difference between revisions

544 bytes added ,  Yesterday at 21:35
Add buy_price/sell_price args instead of single value
No edit summary
Tag: Manual revert
(Add buy_price/sell_price args instead of single value)
Line 22:
parse.additional_episode,
parse.quest,
{ name = 'buy_price', func = parse.value_func, category_incomplete = 'Items needing buy price', smw_property = 'Shop buy price', smw_func = parse.number },
parse.value,
{ 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
if infobox:get_param(Infobox.param('buy_price'), 0) ~= 'No' then
infobox:add_row{
{tag='th', content='Value', colspan="6"},
{tag='tdth', content=Infobox.param('valueBuy Price'), colspan="146"},
{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='ValueSell 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')
121

edits