உள்ளடக்கத்துக்குச் செல்

Module:Road data/size

கட்டற்ற கலைக்களஞ்சியமான விக்கிப்பீடியாவில் இருந்து.
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..."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது)
(வேறுபாடு) ← பழைய திருத்தம் | புதிய திருத்தத்தைப் பார்க்கவும். (வேறுபாடு) | புதிய திருத்தம் → (வேறுபாடு)

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