Editing Module:Infobox Item
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 22: | Line 22: | ||
parse.additional_episode, |
parse.additional_episode, |
||
parse.quest, |
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.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 |
|||
infobox:add_row{ |
infobox:add_row{ |
||
⚫ | |||
{tag=' |
{tag='th', content='Buy Price', colspan="6"}, |
||
{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') |