Module:Param Parse: Difference between revisions

split the 'quest' param into two versions, one for infoboxes where it is mandatory, one for infoboxes where it is optional
(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:
}
 
-- Quest - for use by quest inventory items that are linked to a quest
-- Quest
function parse.quest_smw(quest) = {
if questname == 'Noquest_use' then,
func = parse.has_content,
return nil
smw_property = 'Quest use',
end
returnsmw_func = parse.has_content(quest),
category_incomplete = 'Needs quest'
end
}
 
-- Quest_use, for use by backpack items that involved in quests
parse.quest = {
name = 'quest',
func = parse.has_content,
smw_property = 'Quest',
smw_func = parse.quest_smwhas_content,
category_incomplete = 'Needs quest'
}
 
21,580

edits