Fallout中文維基
Advertisement

此模块的文档可以在模块:Util/doc创建

-- 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
Advertisement