Module:Road data/size
Appearance
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
![]() | This Lua module is used on approximately 22,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
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 '72px'
elseif style == 'small' then
return '40px'
elseif style == 'list' then
return '32px'
elseif style == 'rdt' then
return '17px'
else return '24px'
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