Module:Road data/size/sandbox
< Module:Road data | size
This is the module sandbox page for Module:Road data/size (diff). |
local p = {}
require('strict')
local getArgs = require('Module:Arguments').getArgs
local format = mw.ustring.format
local function main(args)
local style = args.style
if style == 'infobox' then
return '70', '150'
elseif style == 'small' then
return '40', '90'
elseif style == 'list' then
return '25', '60'
else
return '20', '50'
end
end
function p._size(args)
return main(args)
end
function p.size(frame)
local args = getArgs(frame)
return p._size(args);
end
return p