Difference between revisions of "Module:EmailTracking"

From Northumberland Climbing
Jump to navigation Jump to search
newcastle>ARR8
m (Changed protection level for "Module:EmailTracking": High traffic page ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)))
 
m (1 revision imported)
 
(No difference)

Latest revision as of 06:17, 2 August 2020

Documentation for this module may be created at Module:EmailTracking/doc

local i = {}
 
function i.EmailTracking(frame)
    local output = '';
    local email = frame.args["email"] or '';
    if mw.ustring.match(email,'@.*@') ~= nil then
        output = '[[' .. 'Category:Listing with multiple email addresses]]<span class="phoneinfo" style="display:none;">MULTIPLE-EMAIL</span>';
    end
    if mw.title.getCurrentTitle().namespace ~= 0 then
        output = '';
    end
    return output;
end
 
return i;