模块:沙盒/PexEric/heading

来自Local Chinese Wikipedia
跳转到导航 跳转到搜索

此模块的文档可以在Module:沙盒/PexEric/heading/doc创建

local p = {}

function p.main(frame)
    local title = frame.args[1] or ''
    
    title = mw.text.trim(title)
    
    if title == '' then
        return ''
    end
    
    return '== ' .. title .. ' ==\n'
end

return p