𨀈𬧐內容

恪別𡧲版𢯢𢷮𧵑「模庉:Icon」

Uy-ki có thể chỉnh sửa bằng chữ Hán Nôm 威其固体整𢯢憑𡨸漢喃
造張㵋貝內容「-- Mô đun này thực hiện Bản mẫu:Icon. local data = mw.loadData('模庉:Icon/data') local p = {} function p._main(args) local code = args.class or args[1] local iconData if code then code = code:match('^%s*(.-)%s*$'):lower() -- trim whitespace and put in lower case iconData = data[code] end if not iconData then iconData = data._DEFAULT end return string.format( '%s|link=', iconData.image, iconData.tooltip and '|' .. i…」
 
n 𠊝替文本-「[[Bản mẫu:」成「[[板㑄:」
 
𣳔1: 𣳔1:
-- Mô đun này thực hiện [[Bản mẫu:Icon]].
-- Mô đun này thực hiện [[板㑄:Icon]].


local data = mw.loadData('模庉:Icon/data')
local data = mw.loadData('模庉:Icon/data')

版㵋一𣅶21:32、𣈜18𣎃3𢆥2025

固体𢪏材料𧗱模庉尼在模庉:Icon/材料

-- Mô đun này thực hiện [[板㑄:Icon]].

local data = mw.loadData('模庉:Icon/data')

local p = {}

function p._main(args)
	local code = args.class or args[1]
	local iconData
	if code then
		code = code:match('^%s*(.-)%s*$'):lower() -- trim whitespace and put in lower case
		iconData = data[code]
	end
	if not iconData then
		iconData = data._DEFAULT
	end
	return string.format(
		'[[File:%s%s|%s|link=]]',
		iconData.image,
		iconData.tooltip and '|' .. iconData.tooltip or '',
		args.size or '16x16px'
	)
end

function p.main(frame)
	local args = {}
	for k, v in pairs(frame:getParent().args) do
		args[k] = v
	end
	return p._main(args)
end

return p