Jump to content

Module:If any equal

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MusikBot II (talk | contribs) at 18:00, 20 December 2023 (Protected "Module:If any equal": High-risk template or module: 2808 transclusions (more info) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite))). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

require('strict')
local p = {}

p.main = function(frame)
	local match = false
	for name, value in pairs(frame.args) do
		if type(name)=='number' and value:lower()==frame.args.value:lower() then
			match = true
			break
		end
	end
	return match and 'yes' or 'no'
end

return p