Module:Param Parse: Difference between revisions
m
Fix pcall
m (Fix strict mode error) |
m (Fix pcall) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 319:
-- Value
function parse.value_func(val)
local status, val = pcall(currency, val)
return currency(val)▼
if status then
end
end
parse.value = {
Line 529 ⟶ 532:
local level_valid = parse.number(level)
local profession_valid = parse.has_content(profession)
local profession_valid_link = profession_valid
if not profession_valid and not level_valid then
Line 545 ⟶ 549:
end
return '[[File:'..profession_valid..'_icon.png|link='..
end
|