Page MenuHomePhabricator

Page.title(asLink=True) bases link format on config.mylang and config.family instead of a parameter
Closed, ResolvedPublic

Description

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.


Version: core-(2.0)
Severity: normal

Details

Reference
bz59223

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:16 AM
bzimport set Reference to bz59223.

Change 105436 had a related patch set uploaded by Xqt:
(bug 59223) Page.title(asLink=True) accepts a site object "insite",

https://gerrit.wikimedia.org/r/105436

Change 105436 merged by jenkins-bot:
(bug 59223) Page.title(asLink=True) accepts a site object "insite",

https://gerrit.wikimedia.org/r/105436