                 URLQueryItem(name: "titles", value: query),
                 URLQueryItem(name: "redirects", value: "1"),
             ]
-            if useRichText {
+            if !useRichText {
                 queryItems.append(URLQueryItem(name: "explaintext", value: ""))
             }
         }

                URLQueryItem(name: "pageids", value: id),
                URLQueryItem(name: "redirects", value: "1"),
            ]
            if useRichText {
                queryItems.append(URLQueryItem(name: "explaintext", value: ""))
            }
        case .wikipediaAbstract(let query, let useRichText, let lang):

                URLQueryItem(name: "pageids", value: id),
                URLQueryItem(name: "redirects", value: "1"),
            ]
            if !useRichText {
                queryItems.append(URLQueryItem(name: "explaintext", value: ""))
            }
        case .knownWikipediaThumbnail(let id, let width, let lang):
