Module:Road data/size

require("strict")

local p = {}

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