Module:Util

local p = {}

-- strip 'mcw:' from given name function p.stripInterwiki(name) if name == nil then return nil elseif name:sub(1, 4) == 'mcw:' then return name:sub(5) else return name end end

function p.exists(title) frame = mw.getCurrentFrame local exists = frame:callParserFunction{name='#ifexist:', args={title, 'true', 'false'}} if exists == 'true' then return true else return false end end

return p