Module:Param Parse: Difference between revisions
m
Fix pcall
m (Fix strict mode errors) |
m (Fix pcall) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3:
--]=]
-- <nowiki>
require('strict')
local Infobox = require('Module:Infobox')
local currency = require('Module:Currency').parse
Line 34 ⟶ 35:
return nil
end
local num = parse.number(out)
if num == nil then
return nil
Line 318 ⟶ 319:
-- Value
function parse.value_func(val)
local status, val = pcall(currency, val)
return currency(val)▼
if status then
end
end
parse.value = {
Line 528 ⟶ 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 544 ⟶ 549:
end
return '[[File:'..profession_valid..'_icon.png|link='..
end
|