Loading AI tools
来自维基百科,自由的百科全书
您可能想要创建本Scribunto模块的文档。 编者可以在本模块的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模块的子页面。 |
local z = {}
function getCandidates( frame )
local page = mw.title.new( frame.args.title ):getContent()
local list = {}
for n,m in mw.ustring.gmatch( page, frame.args.pattern ) do
list[n] = m
end
return list
end
function z.count( frame )
return #getCandidates( frame )
end
function z.result( frame )
local result = getCandidates( frame )
local linkprefix = frame.args.linkprefix
local date = frame.args.date
return frame:expandTemplate { title = linkprefix, args = { result[date] } }
end
return z
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.