Module:Infobox NPC: Difference between revisions

203 bytes removed ,  Monday at 01:23
Adding actions.
No edit summary
(Adding actions.)
 
(5 intermediate revisions by 4 users not shown)
Line 13:
local params = {
parse.professionactions,
parse.name,
parse.image,
Line 18 ⟶ 19:
parse.premium,
parse.episode,
{name = 'location', func = parse.has_content, smw_property = 'Location'},
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 43 ⟶ 42:
{tag='th', content='[[Premium Pass|Premium]]', colspan="6"},
{tag='td', content=Infobox.param('premium'), colspan="14"},
}
:add_row{
{tag='th', content='Location', colspan="6"},
{tag='td', content=Infobox.param('location'), 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 59 ⟶ 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='LocationDescription', colspan="6"},
{tag='td', content=Infobox.param('locationdescription'), colspan="14"},
}
:pad(20)
809

edits