Module:HookCategories

local p = {} function p.cat(frame) if frame.args.skip ~= "" then return "" end local extension = frame.args.extension if extension == "" then local skin = frame.args.skin if skin == "" then local titleObj = mw.title.new("Manual:Hooks/" .. frame.args[1]) if titleObj.exists then if titleObj:getContent:find("removed *= *1.", 1, false) then return "" elseif titleObj:getContent:find("deprecated *= *1.", 1, false) then return "" end else return "" end else local titleObj = mw.title.new("Skin:" .. skin) if not titleObj.exists then return "" end end else local titleObj = mw.title.new("Extension:" .. extension) if not titleObj.exists then return "" end end end return p