Gebruiker:Bertux/Backlinks.js
Uiterlijk
Opmerking: na het publiceren is het wellicht nodig uw browsercache te legen om de veranderingen te zien.
- Firefox / Safari: houd Shift ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
- Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
- Edge: houd Ctrl ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5.
/* This script adds a "Mogelijke links" link to the left toolbar, which searches out articles
where possible backlinks may be created for the current page. To use the script, add the following line to m:Special:MyPage/global.js:
importScript('User:Bertux/Backlinks.js'); // Linkback: [[User:Bertux/Backlinks.js]]
Alternatively you can copy this file to your user space and replace all instances of "Bertux" with your username, also in the line in m:Special:MyPage/global.js.
Then you can also replace "* Mogelijke links" ("* Possible links") and "Links toevoegen naar dit artikel" ("Add links to this article") with any text.
Internationalized: wgContentLanguage instead of 'en'; 'Bertux' instead of 'Lourdes'
Original: importScript('User:Lourdes/Backlinks.js'); // Linkback: [[User:Lourdes/Backlinks.js]]
*/
mw.loader.using("mediawiki.util", function() {
mw.util.addPortletLink(
"p-tb",
"/w/index.php?title=Special:Search&search=\""+encodeURIComponent(mw.config.get("wgPageName"))+"\"+-linksto%3A"+encodeURIComponent(mw.config.get("wgPageName")),
"* Mogelijke links",
"t-wdlh-check",
"Links toevoegen naar dit artikel"
);
});