FANDOM


-- Implements [[Template:Shortcut]]
 
-- <nowiki>
 
local getArgs = require("Dev:Arguments").getArgs;
local anchor  = require("Module:Anchor")._main;
 
return {
    main = function( frame )
        local args = getArgs(frame);
 
        local shorts = {};
        local keys   = {};
 
        for k,s in pairs(args) do
            if (k ~= "msg" and s ~= nil and s ~= '') then
                shorts[#shorts + 1] = '[{{fullurl:' .. s .. '|redirect=no}} ' .. s .. ']<br>';
                keys[#keys + 1] = k;
            end
        end
 
        return frame:preprocess(
            anchor( unpack(keys) )
            .. table.concat(shorts)
            .. (args.msg or "")
        )
    end
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.