Jump to content

Module:Road data/size

Gikan sa Bikol Sentral na Wikipedia, an talingkas na ensiklopedya
Pagbabago puon kaitong 01:37, 22 Hulyo 2025 ni ShiminUfesoj (urulay | ambag) (Pinagmukna an pahina kaining "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 =...")
(iba) ← Mas luma | Presenteng pagbabago (iba) | Mas bago → (iba)
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