@DeletedUser41170185 (talk | contribs) mNo edit summary |
@DeletedUser41170185 (talk | contribs) mNo edit summary |
||
Line 11: | Line 11: | ||
function p.main(frame) |
function p.main(frame) |
||
− | local args = get_args(frame,{ |
+ | local args = get_args(frame, { |
wrappers = { |
wrappers = { |
||
'Template:Attribute bonuses' |
'Template:Attribute bonuses' |
Latest revision as of 12:44, 20 April 2018
▶️
Planeshift.
The documentation for this module can be found at Template:Attribute bonuses.
You may be forwarded to another wiki language, in case a translation is not available.
The actual data is stored in Module:Attribute bonuses/data.
Dependencies
local p = {}
local get_args = require('Module:Arguments').getArgs
local data = mw.loadData('Module:Attribute bonuses/data')
local i18n = {
error = {
no_input = 'Input missing',
},
}
function p.main(frame)
local args = get_args(frame, {
wrappers = {
'Template:Attribute bonuses'
}
})
return p._main(args)
end
function p._main(args)
assert(args[1], i18n.error.no_input)
local bonus_name = mw.ustring.lower(args[1])
return data[bonus_name]
end
return p