Jump to content

User talk:Lourdes/Backlinks

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconReliability
WikiProject iconThis page is part of WikiProject Reliability, a collaborative effort to improve the reliability of Wikipedia articles. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.

Adapted for all Wikipedias

[edit]

Hi Lourdes,

In 2017 you created the tool Backlinks and I have been an avid user for some years. Mostly active at Dutch Wikipedia I had to change the url from .en. to .nl. which is'nt a chore of course, but today I have created an internationalized version. It's very easy actually, see nl:user:Bertux/Backlinks.js if you wish:

""/w/index.php?title=Special:Search&search=\""+encodeURIComponent(mw.config.get("wgPageName"))+"\"+-linksto%3A"+encodeURIComponent(mw.config.get("wgPageName")), is replaced with
"https://"mw.config.get("wgContentLanguage")".wikipedia.org/w/..."

I have tested it at several wikis including some with non-western scripts like zhwiki, arwiki and yiwiki and it works in all of them. Of course users should call the tool from m:Special:MyPage/global.js to make this work.

I also encountered another stumbling block: the tool doesn't show up in the Vector 2022 skin so I have set Vector 2010 as my global default; I don't know if there is a better cure for this absenteeism  →bertux 08:41, 12 April 2023 (UTC)[reply]

Should you decide to change your tool accordingly please ping me; there is no sense in identical parallel versions. Thanks!  →bertux 08:44, 12 April 2023 (UTC)[reply]

Adapted for all Wikimedia projects

[edit]

Hi, I got a tip to simplyfy the code and make it work at c:, s: and d: too: just strip the site url (!), it is added implicitly.

So line 11 should simply read:

"/w/index.php?title=Special:Search&search=\""+encodeURIComponent(mw.config.get("wgPageName"))+"\"+-linksto%3A"+encodeURIComponent(mw.config.get("wgPageName")), →bertux 12:57, 12 April 2023 (UTC)[reply]

Lourdes banned

[edit]

The script is presumably unmaintained (t · c) buidhe 18:06, 30 November 2023 (UTC)[reply]