45,337
edits
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
local gsub = mw.ustring.gsub | local gsub = mw.ustring.gsub | ||
local PAGENAME = gsub(mw.title.getCurrentTitle().text, "%s", " ") | local PAGENAME = gsub(mw.title.getCurrentTitle().text, "%s", " ") | ||
local NAMESPACE = mw.title.getCurrentTitle().nsText | |||
local match = mw.ustring.match | local match = mw.ustring.match | ||
local gmatch = mw.ustring.gmatch | local gmatch = mw.ustring.gmatch | ||
Line 17: | Line 18: | ||
end | end | ||
return table.concat(out_categories, "") | return NAMESPACE == "Template" and "" or table.concat(out_categories, "") | ||
end | end | ||