--[[
	Source script:	https://it.wikivoyage.org/wiki/Module:EmailTracking
	Maintainer:		Andyrom75
]]
local p = {}
 
function p.EmailTracking(frame)
	return frame.args and p.EmailTrackingValue( frame.args.email ) or ''
end

function p.EmailTrackingValue( email, demo )
    if mw.ustring.match(email or '','@.*@') then
	        return '[[' .. (mw.title.getCurrentTitle().namespace == 0 and '' or ':' ) .. 'Category:Listing with multiple email addresses]]<span class="phoneinfo" style="display:none;">MULTIPLE-EMAIL</span>'
    end
    return ''
end
 
return p