Jump to content

Module:Road data/size/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 00:23, 19 December 2021 (adj). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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 '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