Module:Sandbox/Kephir
Appearance
-- [[User:Kephir]]'s Scribunto sandbox
-- do not expect anything to stay here in place
return {
do_it = function (frame)
local output = {}
local strip_marker = frame:preprocess("{{Special:PrefixIndex/User:Mr. Stradivarius}}")
for link in mw.text.unstrip(strip_marker):gmatch([[<a href="/wiki/(.-)"]]) do
table.insert(output, "* [[" .. mw.uri.decode(link, "WIKI") .. "]]")
end
return #output .. " pages.\n" .. table.concat(output, "\n") ..
"\nstrip marker:<pre>" .. strip_marker:gsub("UNIQ", "UNIQ") .. "</pre>" ..
"strip marker contents:<pre>" .. mw.text.unstrip(strip_marker) .. "</pre>"
end,
}