Module:Lockbox: Difference between revisions

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(item, 'File', rest):getContent()
table.insert(output, '* [[:' .. item .. ']]\n')
elseif ns == "Category" then
mw.title.makeTitle(item, 'Category', rest):getContent()
table.insert(output, '* [[:' .. item .. ']]\n')
elseif rest ~= '' then
else
mw.title.makeTitle(item, ''):getContent()
table.insert(output, '* [[' .. item .. ']]\n')