imported>WOSlinker
use require('strict') instead of require('Module:No globals')
 
(No difference)

Latest revision as of 10:01, 21 October 2022

Documentation for this module may be created at Module:Road data/size/sandbox/doc

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