Page MenuHomePhabricator

[Task] Make wikibase-linkitem-alreadylinked link directly to the article that is already linked
Open, LowPublic

Description

The message wikibase-linkitem-alreadylinked has a link to the item page in the repository. This is convenient, but it should also link to the article that is already linked.

Event Timeline

Amire80 created this task.Jun 2 2015, 6:59 PM
Amire80 raised the priority of this task from to Needs Triage.
Amire80 updated the task description. (Show Details)
Amire80 added a subscriber: Amire80.
Restricted Application added a project: Wikidata. · View Herald TranscriptJun 2 2015, 6:59 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Lydia_Pintscher triaged this task as Low priority.Jun 12 2015, 10:54 AM
Lydia_Pintscher set Security to None.
Lydia_Pintscher moved this task from incoming to ready to go on the Wikidata board.
Bene added a comment.Jun 12 2015, 11:00 AM

Just a thought, I think it would also help if the link lead to the sitelinks section and not to the top of the page.

hoo added a comment.Jun 21 2015, 4:06 PM

It is easy to just add [[…]] around the $2, but for some reason that breaks the wikitext parsing in JavaScript:

"mediawiki.jqueryMsg: wikibase-linkitem-alreadylinked: Parse error at position 115 in input: The page you wanted to link with is already attached to an [$1 item] on the central data repository which links to [[$2]] on this site. Items can only have one page per site attached. Please choose a different page to link with."
Lydia_Pintscher renamed this task from wikibase-linkitem-alreadylinked should link directly to the article that is already linked to [Task] Make wikibase-linkitem-alreadylinked link directly to the article that is already linked.Aug 13 2015, 8:08 PM
Restricted Application added a subscriber: PokestarFan. · View Herald TranscriptJul 26 2017, 11:45 PM

Change 511922 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[mediawiki/extensions/Wikibase@master] Make wikibase-linkitem-alreadylinked link directly to the article that is already linked

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

that breaks the wikitext parsing in JavaScript

Couldn't reproduce that anymore...

Change 511922 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Make wikibase-linkitem-alreadylinked link directly to the article that is already linked

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