Module:Infobox NPC: Difference between revisions

Adding actions.
(colorize)
(Adding actions.)
 
(7 intermediate revisions by 5 users not shown)
Line 9:
local config = {
infobox_name = 'NPC',
class = {Infobox.smw_param('episode')},
}
local params = {
parse.professionactions,
parse.name,
parse.image,
Line 17 ⟶ 19:
parse.premium,
parse.episode,
parse.profession,
{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.examinedescription,
}
Line 41 ⟶ 42:
{tag='th', content='[[Premium Pass|Premium]]', colspan="6"},
{tag='td', content=Infobox.param('premium'), colspan="14"},
}
:add_row{
{tag='th', content='[[Profession]]', colspan="6"},
{tag='td', content=Infobox.param('profession'), colspan="14"},
}
if infobox:is_param_defined(Infobox.param('shop')) > 0 then
Line 53 ⟶ 50:
end
infobox:add_row{
{tag='th', content='ExamineActions', colspan="6"},
{tag='td', content=Infobox.param('examineactions'), colspan="14"}
}
infobox:add_row{
{tag='th', content='[[Profession]]Description', colspan="6"},
{tag='td', content=Infobox.param('professiondescription'), colspan="14"},
}
:pad(20)
:set_episode_class(infobox.args_raw['episode'])
return infobox
809

edits