Jump to content

Module:Sandbox/Kephir

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kephir (talk | contribs) at 21:37, 1 January 2014 (add page count). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- [[User:Kephir]]'s Scribunto sandbox
-- do not expect anything to stay here in place

return {
	do_it = function (frame)
		local output = {}
		for link in mw.text.unstrip(frame:preprocess("{{Special:PrefixIndex/User:Mr. Stradivarius}}")):gmatch([[<a href="/wiki/(.-)"]]) do
			table.insert(output, "* [[" .. mw.uri.decode(link, "WIKI") .. "]]")
		end
		return #output .. " pages.\n" .. table.concat(output, "\n")
	end
}