Module:Param Parse: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 467:
local level_valid = parse.number(level)
local profession_valid = parse.has_content(profession)
if not profession_valid and not level_valid then
return nil
end
if not profession_valid and level_valid then
-- Profession undefined but level defined, invalid, show an unknown profession
profession_valid = 'Unknown episode'
profession_valid_link = ''
end
if profession_valid and not level_valid then
-- Profession defined without level, invalid, show an unknown level
level_valid = '?'
end
return '[[File:'..profession_valid..'_icon.png|link='..profession_valid..'|width=18x18]] '..level_valid
|