Xqt claimed this task. Xqt added a comment.
The design of Page.templates() <https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#page.BasePage.templates> as well as Page.itertemplates() <https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#page.BasePage.itertemplates> are incluenced from compat version where only templates (ns 10) are given. That might be the reason why those both page methods do not support a `namespaces` parameter like pagetemplates <https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.site.html#pywikibot.site._generators.GeneratorsMixin.pagetemplates> do and the documentation also has only templates in mind: //Return a list of/Iterate Page objects for templates used on this Page. Template parameters are ignored. This method only returns embedded templates, ...// I think that namespaces parameter should be introduced there. TASK DETAIL https://phabricator.wikimedia.org/T365199 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Qwerfjkl, JJMC89, Aklapper, pywikibot-bugs-list, coldchrist, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org