User talk:Lourdes/Backlinks
Reliability | ||||
|
Adapted for all Wikipedias
editHi 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)
- 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)
Adapted for all Wikimedia projects
editHi, 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)
Lourdes banned
editThe script is presumably unmaintained (t · c) buidhe 18:06, 30 November 2023 (UTC)