Module:Road data/size

தமிழர்விக்கியிலிருந்து
imported>Pagers பயனரால் செய்யப்பட்ட 10:05, 21 பெப்பிரவரி 2023 அன்றிருந்தவாரான திருத்தம் ("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 '24..."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது)
Jump to navigation Jump to search

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

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
"https://tamilar.wiki/w/index.php?title=Module:Road_data/size&oldid=302187" இலிருந்து மீள்விக்கப்பட்டது