FANDOM


-- Various utility functions
 
local p = {}
 
-- return pagename without any disambiguation title
function p.corename(frame)
    local result = mw.ustring.gsub(mw.title.getCurrentTitle().subpageText, '%s%(.*', '')
    return result
end
 
return p