Модуль:EmailTracking

Матеріал з Вікімандрів

Документацію для цього модуля можна створити у Модуль:EmailTracking/документація

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;