Content deleted Content added
? |
hmm, it was documented to work |
||
Line 17:
item = mw.text.trim(item)
local ns, rest = match(item, "^(.-):(.*)")
if not ns or not mw.site.namespaces[ns] then
mw.title.makeTitle('Template', item):getContent()
table.insert(output, '* [[Template:' .. item .. ']]\n')
elseif (ns == "File") or (ns == "Image") then
mw.title.makeTitle(
table.insert(output, '* [[:' .. item .. ']]\n')
elseif ns == "Category" then
mw.title.makeTitle(
table.insert(output, '* [[:' .. item .. ']]\n')
elseif rest ~= '' then
mw.title.makeTitle(item, ''):getContent()
table.insert(output, '* [[' .. item .. ']]\n')
|