Module:EmailTracking
Jump to navigation
Jump to search
Text | Code | Result |
---|---|---|
Right examples | ||
info@wikivoyage.org | {{#invoke:EmailTracking|EmailTracking|email=info@wikivoyage.org}} | |
Wrong examples | ||
info@wikivoyage.org, it@wikivoyage.org | {{#invoke:EmailTracking|EmailTracking|email=info@wikivoyage.org, it@wikivoyage.org}} | Category:Listing with multiple email addresses |
info@wikivoyage.org; it@wikivoyage.org | {{#invoke:EmailTracking|EmailTracking|email=info@wikivoyage.org; it@wikivoyage.org}} | Category:Listing with multiple email addresses |
--[[
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