模組:沙盒/Oudoubleyang/PageCount

文档图示 模块文档[创建]
local p = {}

function p.PageCount(frame)
    local count = 0
    local list = frame:expandTemplate{title = "User:Oudoubleyang/Pages"}
    for i in string.gmatch(list, "\n#[^#*:]") do
        count = count + 1
    end
    return count
end

return p

-- This page is forked from 模块:沙盒/Tang891228/OrderListCount.