Page MenuHomePhabricator

Discussion: Unable to quickly add interwiki links via Wikidata’s "Add link" interface
Closed, ResolvedPublic

Description

Since language links were moved to the top right of the page, the option to Add links when you create a new page has disappeared.

interwikiaddlinks.png (143×316 px, 6 KB)

Event Timeline

stjn renamed this task from Unable to quickly add interwiki links to Unable to quickly add interwiki links via Wikidata’s "Add link" interface.May 7 2021, 4:50 PM
stjn added a subscriber: Amire80.

For the new version of the language selector we considered a possible way to integrate related functionality (T265996) where this option could live.

more-options.png (316×879 px, 37 KB)

However, the new version of the language selector is not available yet. So the teams involved can explore an alternative solution (temporary or definitive) for this.

For the new version of the language selector we considered a possible way to integrate related functionality (T265996) where this option could live.

Not possible for obvious reason: language selector is (rightfully) not rendered if there are no languages connected to the article.

For the new version of the language selector we considered a possible way to integrate related functionality (T265996) where this option could live.

Not possible for obvious reason: language selector is (rightfully) not rendered if there are no languages connected to the article.

In T275147 there were some discussion on how the language selector could become an entry point to create content in the missing languages, which would enable also this scenario. I think that could help users in the habit of looking for language-related options in the same place. But, again, the new language selector is not available yet, so these are just plans for the near future.

From a user/editor perspective the add links function should definitely be available on all pages as it simplifies the linking of newly created pages with existing pages in other projects. I would even be preferable if you could as well from this add links button link to other wikimedia projects eg. Commons.

so I will for the moment switch back to the legacy vector skin! till either this exisiting functionality of the legacy vector skin will be available in the new vector skin.

To avoid duplicating functionality, our plan is to re-introduce this functionality using the new version of the ULS as @Pginer-WMF mentioned above. In the meantime, we are building a url parameter which allows the old interlanguage links to show in the sidebar T282543: Add parameter that allows language button to be seen across all wikis within the new version of the skin. I admit it's not a perfect solution for our side, but it is a temporary one. In the meantime, we can also look into other temporary options that present the link in the sidebar.

Note, In the mean time this snippet of code can be used to display the edit button. Perhaps a useful temporary gadget or site/user script?

var wid = mw.config.get('wgWikibaseItemId');
var url = 'https://www.wikidata.org/wiki/Special:EntityPage/' + wid + '#sitelinks-wikipedia';
if ( $('.wb-langlinks-edit').length ) {
  $('.wb-langlinks-edit').insertAfter('#p-lang-btn');
} else {
  $('<a>').attr('href', url ).text( mw.msg( 'wikibase-editlinks' ) ).insertAfter( '#firstHeading' )
}

Note, In the mean time this snippet of code can be used to display the edit button. Perhaps a useful temporary gadget or site/user script?

$('.wb-langlinks-edit').insertAfter('#p-lang-btn')

This works when interwiki links are specified. If not specified, the interwiki link adder button does not appear at all. Because of this, I have to log in to Wikidata to link to Interwiki links. :(

Robby triaged this task as High priority.Jun 11 2021, 8:48 AM

By now it is on Commons no longer possible to add site links through the

2021-06-11 10_43_00-Category_Coaches of Scarborough Athletic FC - Wikimedia Commons — Mozilla Firefo.png (1×1 px, 184 KB)
as shown here as soon as you fill in the field for the language the next field page is not accessible.

this is quite annoying as you need to manually create the item in wikidata in order to add the interwikilinks.

Aklapper raised the priority of this task from High to Needs Triage.Jun 11 2021, 9:18 AM

I increased priority in order to attract attention on the way the software is reacting by now since yesterday.

indeed my knowledge does not allow me to fix this annoying issue.

@Aklapper @Robby I think the bug in the latest screenshot is a separate issue that needs a separate phabricator ticket. I can reproduce that issue on Commons at the moment. Possibly it should be unbreak-now...

Just ran in to this when trying to help troubleshoot a page for someone. Is there a ?useskin= option to use the legacy vector by the way?

I don't see a screen shot like the one in the description - there is no "Add links" link at all when I just checked a page on vecwiki for example.

There is no need to append the useskinversion or opt out of legacy Vector. If you want the add links option, it's better to simply disable the compact languages button:

Screen Shot 2021-07-13 at 9.37.12 AM.png (320×962 px, 52 KB)

Once that's done add the following to your user CSS:

#p-lang-btn ul { column-count: 3; }
#p-lang-btn .after-portlet {
  position: absolute;
  top: 0;
  right: 0;
}

Result:

Screen Shot 2021-07-13 at 9.38.51 AM.png (498×1 px, 97 KB)

There is no need to append the useskinversion or opt out of legacy Vector. If you want the add links option, it's better to simply disable the compact languages button:

Screen Shot 2021-07-13 at 9.37.12 AM.png (320×962 px, 52 KB)

Once that's done add the following to your user CSS:

#p-lang-btn ul { column-count: 3; }
#p-lang-btn .after-portlet {
  position: absolute;
  top: 0;
  right: 0;
}

Result:

Screen Shot 2021-07-13 at 9.38.51 AM.png (498×1 px, 97 KB)

None of them work. Both of these don't add an "interwiki adder button" to a newly created page.

None of them work. Both of these don't add an "interwiki adder button" to a newly created page.

Did you try my suggestion at
https://phabricator.wikimedia.org/T282026#7093767 ?

adding a note from our team meeting the other week: the Wikidata item link in the sidebar could be used as a replacement for the former Add links button.

image.png (734×1 px, 379 KB)

None of them work. Both of these don't add an "interwiki adder button" to a newly created page.

Did you try my suggestion at
https://phabricator.wikimedia.org/T282026#7093767 ?

but these are hacks, a proper solution in the software is needed.

I've created a separate subtask to review our options here, including adding the link to its previous location temporarily until we have a solution within the ULS: T286659: [SPIKE] Explore adding interwiki links link back to sidebar.

None of them work. Both of these don't add an "interwiki adder button" to a newly created page.

Did you try my suggestion at
https://phabricator.wikimedia.org/T282026#7093767 ?

Yes, I did.

Most of the users don't know how to link using Wikidata. New users are asking where did this feature go. Also, content translation could be reacher there, but now it is not possible to automatically start translating an article using the grey link we used to have there.

Today I had another user asking if I knew how to do interwiki linking in the new system and why this feature is gone. I think the priority should be higher, as this is breaking something we had for years.

After performing some reasearch on our options in T286659: [SPIKE] Explore adding interwiki links link back to sidebar we have identified the best way forward. We will be adding the links addition functionality back into the sidebar until the release of the new ULS that will include this functionality. This work will be tracked in T287206: Add link to add interwiki links back to the sidebar

ovasileva claimed this task.

Resolving this task, please review T287206: Add link to add interwiki links back to the sidebar for next steps.

ovasileva renamed this task from Unable to quickly add interwiki links via Wikidata’s "Add link" interface to Discussion: Unable to quickly add interwiki links via Wikidata’s "Add link" interface.Jul 23 2021, 4:21 PM