10,731
edits
TheNightAvl (talk | contribs) No edit summary Tag: Manual revert |
TheNightAvl (talk | contribs) No edit summary |
||
Line 146: | Line 146: | ||
local p_lua, p_categories = p_data[1], p_data[2] | local p_lua, p_categories = p_data[1], p_data[2] | ||
if mw.ustring.find(category_name, p_lua) ~= nil then | if mw.ustring.find(category_name, p_lua) ~= nil then | ||
--[[ | --[[ | ||
if mw.ustring.find(category_name, "^Rhymes%:%S+%/%S+$") and mw.site.stats.pagesInCategory(category_name, "pages") > 1 then | if mw.ustring.find(category_name, "^Rhymes%:%S+%/%S+$") and mw.site.stats.pagesInCategory(category_name, "pages") > 1 then | ||
Line 153: | Line 152: | ||
table.insert(p_categories, p_new) | table.insert(p_categories, p_new) | ||
]]-- | ]]-- | ||
if mw.ustring.find(category_name, "^Rhymes%:%S+%/%S+$") and mw.site.stats.pagesInCategory(category_name, "pages") | if mw.ustring.find(category_name, "^Rhymes%:%S+%/%S+$") and mw.site.stats.pagesInCategory(category_name, "pages") < 2 then | ||
-- Hide category if only one entry | -- Hide category if only one entry | ||
return "__HIDDENCAT__" | return "__HIDDENCAT__" |