Last modified: 2014-11-16 15:47:16 UTC
As can be seen at the following, the 'site' has a case in the general chunk, and each namespace can have another case. e.g. User & MediaWiki & Special are not case-sensitive, whereas the other namespaces are. https://en.wiktionary.org/w/api.php?action=query&meta=siteinfo&siprop=general|namespaces pywikibot (core and compat) only fetch and use the case rule from the general site data, not for each namespace.
Also all use of nocapitalize is probably problematic.
Change 151809 had a related patch set uploaded by XZise: Site.sametitle recognizes namespace capitalisation https://gerrit.wikimedia.org/r/151809
Change 161676 had a related patch set uploaded by XZise: [FIX] Only apply uppercase to Link title if namespace dictates so https://gerrit.wikimedia.org/r/161676
Change 161676 merged by jenkins-bot: [FIX] Only apply uppercase to Link title if namespace dictates so https://gerrit.wikimedia.org/r/161676
Change 151809 merged by jenkins-bot: [FEAT] Improved Site.sametitle https://gerrit.wikimedia.org/r/151809