Jump to content

Module:Remove redlinks

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Frostly (talk | contribs) at 02:02, 7 February 2024 (create). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local p = {}

function p.listExistingPages(frame)
    local output = ""

    for i, title in ipairs(frame.args) do
        if  mw.title.new(title).exists then
            output = output .. "* [[" .. title .. "]]\n"
        end
    end

    -- Return the output
    return output
end

-- Export the module
return p