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.description, |
|||
} |
} |
||
Line 42: | Line 40: | ||
{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 |
||
infobox:add_row{ |
infobox:add_row{ |
||
{tag=' |
{tag='td', content='[[Shop]]'}, |
||
{tag='td', content=Infobox.param('shop') |
{tag='td', content=Infobox.param('shop')}, |
||
} |
} |
||
end |
end |
||
infobox: |
infobox:pad(20) |
||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
{tag='th', content='Description', colspan="6"}, |
|||
{tag='td', content=Infobox.param('description'), colspan="14"} |
|||
} |
|||
:pad(20) |
|||
return infobox |
return infobox |