Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(quest) |
(Testing unlock level parser) |
||
Line 447: | Line 447: | ||
} |
} |
||
-- Quest |
|||
function parse.quest_smw(quest) |
function parse.quest_smw(quest) |
||
if quest == 'No' then |
if quest == 'No' then |
||
Line 461: | Line 462: | ||
category_incomplete = 'Needs quest' |
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 |
return parse |
||
-- </nowiki> |
-- </nowiki> |