Module:Variants: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Fix errors) |
(Print unknown icon for professions with only a level) |
||
Line 82: | Line 82: | ||
local function formatProfessionLevel(profession, level, high) |
local function formatProfessionLevel(profession, level, high) |
||
if not profession then |
if not (profession or level) then |
||
return nil |
return nil |
||
end |
end |
||
profession = profession or 'Unknown profession' |
|||
local level_text = tostring(level or '?') |
local level_text = tostring(level or '?') |
||
if high then |
if high then |