Module:Param Parse: Difference between revisions
Try to prettify invalid profession bubbles
mNo edit summary |
(Try to prettify invalid profession bubbles) |
||
Line 227:
function parse.profession_bubble_func(profession, level)
local profession_valid = parse.has_content(profession)
local profession_valid_link = profession_valid
local level_valid = parse.number(level)
local category_error = false
Line 234 ⟶ 235:
if not profession_valid and level_valid then
-- Profession undefined but level defined, invalid, show an unknown profession
profession_valid = 'Unknown
profession_valid_link = ''
category_error = true
end
Line 242 ⟶ 244:
category_error = true
end
return '[[File:'..profession_valid..' icon.png|x30px|link='..
end
function parse.profession_bubble_smw(profession, level)
|