Editing Module:Infobox NPC
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 9: | Line 9: | ||
local config = { |
local config = { |
||
infobox_name = 'NPC', |
infobox_name = 'NPC', |
||
class = {Infobox.smw_param('episode')}, |
|||
} |
} |
||
local params = { |
local params = { |
||
⚫ | |||
parse.name, |
parse.name, |
||
parse.image, |
parse.image, |
||
Line 19: | Line 17: | ||
parse.premium, |
parse.premium, |
||
parse.episode, |
parse.episode, |
||
⚫ | |||
{name = 'shop', func = parse.has_content, smw_property = 'Shop'}, -- TODO - move to Module:Param Parse once more details are available, and create property page |
{name = 'shop', func = parse.has_content, smw_property = 'Shop'}, -- TODO - move to Module:Param Parse once more details are available, and create property page |
||
parse. |
parse.examine, |
||
} |
} |
||
Line 42: | Line 41: | ||
{tag='th', content='[[Premium Pass|Premium]]', colspan="6"}, |
{tag='th', content='[[Premium Pass|Premium]]', colspan="6"}, |
||
{tag='td', content=Infobox.param('premium'), colspan="14"}, |
{tag='td', content=Infobox.param('premium'), colspan="14"}, |
||
} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
if infobox:is_param_defined(Infobox.param('shop')) > 0 then |
if infobox:is_param_defined(Infobox.param('shop')) > 0 then |
||
Line 50: | Line 53: | ||
end |
end |
||
infobox:add_row{ |
infobox:add_row{ |
||
{tag='th', content=' |
{tag='th', content='Examine', colspan="6"}, |
||
{tag='td', content=Infobox.param(' |
{tag='td', content=Infobox.param('examine'), colspan="14"} |
||
} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
:pad(20) |
:pad(20) |
||
:set_episode_class(infobox.args_raw['episode']) |
|||
return infobox |
return infobox |