Mô đun:If empty

local p = {}

function p.main(frame)
	local args = require('Mô đun:Arguments').getArgs(frame, {wrappers = 'Bản mẫu:If empty', removeBlanks = false})

	-- For backwards compatibility reasons, the first 8 parameters can be unset instead of being blank,
	-- even though there's really no legitimate use case for this. At some point, this will be removed.
	local lowestNil = math.huge
	for i = 8,1,-1 do
		if args[i] == nil then
			args[i] = ''
			lowestNil = i
		end
	end

	for k,v in ipairs(args) do
		if v ~= '' then
			if lowestNil < k then
				-- If any uses of this template depend on the behavior above, add them to a tracking category.
				-- This is a rather fragile, convoluted, hacky way to do it, but it ensures that this module's output won't be modified
				-- by it.
				frame:extensionTag('ref', '[[Thể loại:Trường hợp của Bản mẫu:If_empty thiếu đối số]]', {group = 'TrackingCategory'})
				frame:extensionTag('references', '', {group = 'TrackingCategory'})
			end
			return v
		end
	end
end

return p
Chúng tôi bán
Bài viết liên quan
Giới thiệu AG Adara - Magenta Meteor Artery Gear: Fusion
Giới thiệu AG Adara - Magenta Meteor Artery Gear: Fusion
Sở hữu năng lực xoá buff diện rộng kèm hiệu ứng Speed Reduction, đặc biệt là rush action cực khủng
Phân biệt Dũng Giả, Anh Hùng và Dũng Sĩ trong Tensura
Phân biệt Dũng Giả, Anh Hùng và Dũng Sĩ trong Tensura
Về cơ bản, Quả Trứng Dũng Giả cũng tương tự Hạt Giống Ma Vương, còn Chân Dũng Giả ngang với Chân Ma Vương.
Highlands Coffee bá chủ thị trường cà phê Việt
Highlands Coffee bá chủ thị trường cà phê Việt
Highlands Coffee hiện đang là một trong những thương hiệu cà phê được ưa chuộng nhất trên mảnh đất hình chữ S
Cold  Eyes - Truy lùng siêu trộm
Cold Eyes - Truy lùng siêu trộm
Cold Eyes là một bộ phim hành động kinh dị của Hàn Quốc năm 2013 với sự tham gia của Sol Kyung-gu, Jung Woo-sung, Han Hyo-joo, Jin Kyung và Lee Junho.