Editing Module:Experience/Album
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 12: | Line 12: | ||
error('{{Album XP}} transcluded without level') |
error('{{Album XP}} transcluded without level') |
||
end |
end |
||
local raw = (args[2] or ''):lower() == 'raw' |
|||
local level = tonumber(args[1]) |
local level = tonumber(args[1]) |
||
local xp = p._main(level) |
local xp = p._main(level) |
||
if xp ~= nil then |
if xp ~= nil then |
||
⚫ | |||
if raw then |
|||
⚫ | |||
end |
|||
return lang:formatNum(xp) |
|||
end |
end |
||
return args.default or '' |
return args.default or '' |