Xqt added a comment.
In T265800#6727873 <https://phabricator.wikimedia.org/T265800#6727873>, @Mike_Peel wrote: > Just a follow-up note in case others encounter this problem: in the end I had to use .ns_title() instead of .title, as .title does not include the namespace (e.g., 'Category:Blah' becomes 'Blah')! Yes, this is intentional. You have to use `ns_title()` or better `canonical_title()` to include the namespace. `astext()` which is the same as __str__ includes the wikitext link bracket. Note: there are no equivalent title parameters like in `Page.title()`. TASK DETAIL https://phabricator.wikimedia.org/T265800 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Mpaa, Xqt, matej_suchanek, Aklapper, pywikibot-bugs-list, Mike_Peel, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
