Difference between revisions of "Module:Road data/size"
MyWikiBiz, Author Your Legacy — Friday December 05, 2025
Jump to navigationJump to search (Pywikibot 6.4.0) |
(No difference)
|
Latest revision as of 05:40, 16 July 2021
Documentation for this module may be created at Module:Road data/size/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 == 'jct' or style == 'list' then
return '24px'
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