Module:Param Parse: Difference between revisions

Testing unlock level parser
(quest)
(Testing unlock level parser)
Line 447:
}
 
-- Quest
function parse.quest_smw(quest)
if quest == 'No' then
Line 461 ⟶ 462:
category_incomplete = 'Needs quest'
}
 
-- Unlock Level
function parse.unlock_level_func(level, profession)
local level_num = parse.number(level)
return '[[File:'..profession..'_icon.png|x30px|link='..profession..']] '..level_num
end
 
parse.unlock_level = {
name = 'unlock_level',
func = {name = parse.unlock_level_func, params = {Infobox.raw_param('unlock_level'), Infobox.param('profession')}},
smw_property = 'Unlocked at',
}
 
return parse
-- </nowiki>
131

edits