Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Support unlock_level = N/A for things that aren't unlocked (like Training Dummy and quest bosses))
(split the 'quest' param into two versions, one for infoboxes where it is mandatory, one for infoboxes where it is optional)
Line 655: Line 655:
}
}


-- Quest - for use by quest inventory items that are linked to a quest
-- Quest
function parse.quest_smw(quest)
parse.quest = {
if quest == 'No' then
name = 'quest_use',
func = parse.has_content,
return nil
smw_property = 'Quest use',
end
return parse.has_content(quest)
smw_func = parse.has_content,
category_incomplete = 'Needs quest'
end
}


-- Quest_use, for use by backpack items that involved in quests
parse.quest = {
parse.quest = {
name = 'quest',
name = 'quest',
func = parse.has_content,
func = parse.has_content,
smw_property = 'Quest',
smw_property = 'Quest',
smw_func = parse.quest_smw,
smw_func = parse.has_content,
category_incomplete = 'Needs quest'
}
}