https://bugzilla.wikimedia.org/show_bug.cgi?id=59223
Web browser: --- Bug ID: 59223 Summary: Page.title(asLink=True) bases link format on config.mylang and config.family instead of a parameter Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl Classification: Unclassified Mobile Platform: ---
Currently, Page.title(asLink=True) bases it's format on the 'current site': [[wp:en:page]] will be rendered as [[page]] if the current site is enwiki, but as [[wp:en:page]] if the current site is nlwiktionary.
However, this is not necessarily what we want -- we want to use the link /on some page/ which may or may not be the 'current site'. Page.title should therefore take a Site object to override this behavior.