模組:Road data/size
模块文档[创建]
您可能想要创建本Scribunto模块的文档。 编者可以在本模块的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模块的子页面。 |
local p = {}
require('Module:No globals')
local getArgs = require('Module:Arguments').getArgs
local format = mw.ustring.format
local function main(args)
local style = args.style
if style == 'infobox' then
return '70px'
elseif style == 'small' then
return '40px'
elseif style == 'list' then
return '25px'
elseif style == 'rdt' then
return '17px'
elseif style == 'jcttest' then
return '24'
else return '20px'
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