模块:你知道吗:修订间差异
跳转到导航
跳转到搜索
小
已保护“模块:你知道吗”:高流量页面([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期))
正义羊-JRJSheep(讨论 | 贡献) (创建页面,内容为“-- implements 模板:你知道吗 local p = { } local function get_facts_from(title) frame = mw.getCurrentFrame() str = frame:expandTemplate{title = title} facts = {} for s in str:gmatch("[^\r\n]+") do table.insert(facts, s) end return facts end local function pick_facts(all_facts, n) facts = {} repeat i = math.random(1, #all_facts) if facts[i] == nil then facts[i] = all_facts[i] n = n - 1 end until n == 0 return facts……”) |
小 (已保护“模块:你知道吗”:高流量页面([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期))) |
(没有差异)
| |