Zelda110(留言 | 贡献)2025年12月13日 (六) 22:09的版本 (创建页面,内容为“local p = {} function p.extractLead(page, sentences) sentences = tonumber(sentences) or 2 local title = mw.title.new(page) if not title or not title.exists then return "" end local api = mw.ext.Api local result = api:get({ action = "query", prop = "extracts", exsentences = sentences, explaintext = true, titles = page }) local pages = result.query and result.query.pages if not…”)