== Background
In {T286659} we explored the best way to add interwiki links entry back into the sidebar as a temporary solution until this functionality was available in the ULS. This task tracks the implementation of the method identified in the spike
== Acceptance criteria
[] Add JavaScript to modern Vector which puts the link in the sidebar
[] The link should apply for pages without a language button
[] Make sure link doesn't appear in legacy vector (or other skins)
[] It should work in the exact same way it used to work, with a pop-up in wiki, without going to any other project.
== Developer notes
A carefully commented hack should be added like so:
```
// Temporary solution to T287206, can be removed when ULS dialog includes this link and button is shown on pages without language
var $editPage = $('#p-lang-btn .wbc-editpage')
if($editPage.length) {$editPage.text($editPage.attr('title'))}
var $li = $( '<li>' ).append( $editPage ); $li.appendTo( '#p-tb ul')
```
We'll also need to make sure the HTML is always present by using CSS to hide the language button for pages without languages. I suggest a class no-languages is added to the button and a display: none hides it.
== Design
{F34551079}
== QA
In modern Vector (useskinversion=2)
[] Ensure "Edit interlanguage links" link is added to the "Tools" menu in the sidebar and matches the styles of the links around it
[] Ensure the language button is only visible on pages with languages. It should be visible on https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_language_test_page There should be no languages section in the sidebar on this page.
[] Ensure the language button is only visible on pages with languages. It should NOT be visible on https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_Echo_link_test_0.0409507727617362. There should be no languages section in the sidebar on this page.
In legacy Vector (useskinversion=1)
[] Ensure the language section in the sidebar is present on https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_language_test_page?useskinversion=1 and has a gray "Add links" in the bottom right corner.
[] Ensure the language section in the sidebar is present on https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_Echo_link_test_0.0409507727617362?useskinversion=1 and has a gray "Add links" in the bottom right corner.
[] On both pages ensure "Edit interlanguage links" link is not added to the "Tools" menu in the sidebar
== QA Results - Beta
| **AC** | **Status** | **Details** |
| ----- | ----- | ----- |
| 1 | ✅ | T287206#7263600 |
| 2 | ✅ | T287206#7263600 |
| 3 | ✅ | T287206#7263600 |
| 4 | ✅ | T287206#7263600 |
| 5 | ✅ | T287206#7263600 |
| 6 | ✅ | T287206#7263600 |