Module:Infobox Item: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Add buy_price/sell_price args instead of single value) |
Tag: Undo |
||
Line 22: | Line 22: | ||
parse.additional_episode, |
parse.additional_episode, |
||
parse.quest, |
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.description, |
||
parse.variant, |
parse.variant, |
||
parse.profession_bubble_a, |
parse.profession_bubble_a, |
||
parse.profession_bubble_b, |
parse.profession_bubble_b, |
||
-- Include these next params just to export data to smw |
|||
parse.profession_a_smw, |
parse.profession_a_smw, |
||
parse.profession_a_level_smw, |
parse.profession_a_level_smw, |
||
Line 71: | Line 71: | ||
} |
} |
||
if infobox:is_param_defined(Infobox.param('quest')) == 0 or infobox:get_param(Infobox.param('quest'), 0) == 'No' then |
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 |
|||
⚫ | |||
⚫ | |||
{tag=' |
{tag='td', content=Infobox.param('value'), colspan="14"}, |
||
{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='td', content=Infobox.param('sell_price'), colspan="14"}, |
|||
} |
} |
||
end |
|||
else |
else |
||
infobox:add_row{ |
infobox:add_row{ |
||
{tag='th', content='Quest', colspan="6"}, |
{tag='th', content='Quest', colspan="6"}, |
||
{tag='td', content=Infobox.param('quest'), colspan="14" |
{tag='td', content=Infobox.param('quest'), colspan="14"} |
||
} |
} |
||
infobox:addClass('infobox-questitem') |
infobox:addClass('infobox-questitem') |