跳转到内容

Module:Detect singular:修订历史

2024年9月10日 (星期二)

  • 当前先前 07:212024年9月10日 (二) 07:21 Qqkuro66541 留言 贡献 4,255字节 +4,255 建立内容为“local p = {} local getArgs = require('Module:Arguments').getArgs local yesNo = require('Module:Yesno') local getPlain = require('Module:Text').Text().getPlain -- function to determine whether "sub" occurs in "s" local function plainFind(s, sub) return mw.ustring.find(s, sub, 1, true) end -- function to count the number of times "pattern" (a regex) occurs in "s" local function countMatches(s, pattern) local _, count = mw.ustring.gsub(s, patt…”的新页面