モジュール:EmailTracking

提供:ウィキボヤージュ
モジュールの解説[表示] [編集] [履歴] [キャッシュを破棄]

このモジュールは、テンプレート:Emailで扱うべきです。通常のページでは読み込まないでください。


このモジュールは、Wikimail送信リンクを生成します。

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;