Page MenuHomePhabricator

[Task] Linker::formatComment should support comments that refer to another wiki.
Closed, ResolvedPublic

Description

Linker::formatComment will currently format any wiki links as links to the local wiki. It should get an additional parameter, $wikiId, that would cause any links to be interpretet as interwiki links to that wiki. Linker::formatComment() It uses Linker::formatLinksInComment() internally, which already supports the $wikiId parameter for this purpose, so formatComment would just need to pass it through. formatAutocomments() may also get such a parameter, but since it returns wikitext which will then be processed by formatLinksInComment, care must be taken to not apply the interwiki prefix twice.

Rationale: Wikibase injects edit summaries from the data repo into clinet wiki's recentchanges tables. These comments should be formatted so that wiki links point to the data repo, not pages on the local wiki.

Details

Related Gerrit Patches:

Event Timeline

daniel created this task.Sep 7 2015, 9:47 AM
daniel claimed this task.
daniel raised the priority of this task from to Medium.
daniel updated the task description. (Show Details)
daniel updated the task description. (Show Details)Sep 7 2015, 9:50 AM
daniel set Security to None.
Lydia_Pintscher renamed this task from Linker::formatComment should support comments that refer to another wiki. to [Task] Linker::formatComment should support comments that refer to another wiki..Sep 7 2015, 1:01 PM

Change 236568 had a related patch set uploaded (by Daniel Kinzler):
Allow Linker::formatComment to link to another wiki per default.

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

hashar removed a subscriber: hashar.Sep 7 2015, 5:28 PM

Change 236568 merged by jenkins-bot:
Allow Linker::formatComment to link to another wiki per default.

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

daniel closed this task as Resolved.Sep 22 2015, 9:44 AM