Module:Sandbox/Kephir: Difference between revisions
Appearance
Content deleted Content added
I just have to try it myself now. |
add page count |
||
Line 8: | Line 8: | ||
table.insert(output, "* [[" .. mw.uri.decode(link, "WIKI") .. "]]") |
table.insert(output, "* [[" .. mw.uri.decode(link, "WIKI") .. "]]") |
||
end |
end |
||
return table.concat(output, "\n") |
return #output .. " pages.\n" .. table.concat(output, "\n") |
||
end |
end |
||
} |
} |
Revision as of 21:37, 1 January 2014
-- [[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
}