Currently set by javascript : some of them also change the label of the link, so we'll need to set the text y using a Mediawiki: page too.
/******************************************************************************* * === Lien d'import de fichiers === * Changer le lien d'import en lien vers la page [[Aide:Importer un fichier]]. * Copié depuis Wikipédia. *******************************************************************************/ jQuery(function() { $( '#t-upload a' ).attr( 'href', '/wiki/Aide:Importer_un_fichier' ); });
/** * Enllaç de càrrega per defecte a la pàgina d'ajuda * Amb els ginys es pot eliminar i es pot afegir també un enllaç a Commons */ var LienUpload = function () { var uploadLink = document.getElementById("t-upload"); if (!uploadLink) return; var a = uploadLink.firstChild; a.setAttribute('href', '/wiki/Ajuda:Carregar_un_fitxer'); }; $(LienUpload);
/** * Lien d'import * Changer le lien d'import en lien vers la page [[Aide:Importer un fichier]] (depuis fr.wikipedia) */ function LienUpload() { uploadLink = document.getElementById("t-upload"); if (!uploadLink) return; a = uploadLink.firstChild; a.setAttribute('href', '/wiki/Aide:Importer_un_fichier'); } jQuery(document).ready(LienUpload);
/** * Wêneyekî Commonsê bar bike */ if (document.getElementById('t-upload')){ var link = document.getElementById('t-upload'); var a_link = link.firstChild; a_link.href = '//commons.wikimedia.org/wiki/Commons:Upload?uselang=ku'; a_link.title = 'Li Wikimedia Commonsê wêneyekî bar bike'; }
// De uploadlinks in de zijbalk verwijzen hiermee naar Commons function uploadlinkToCommons() { var upload = document.getElementById("t-upload"); if(!upload) return; upload.getElementsByTagName('a')[0].href = "//commons.wikimedia.org/wiki/Commons:Upload/nl?uselang=" + mw.config.get('wgUserLanguage'); } $(uploadlinkToCommons);
/** * Ändrar uppladdningslänken i verktygslådan till att hänvisa till sidan [[Wikipedia:Ladda upp filer]] */ function LienUpload() { var uploadLink = document.getElementById("t-upload"); if (!uploadLink) return; var a = uploadLink.firstChild; a.setAttribute('href', '/wiki/Wikiversity:Ladda_upp_filer'); } $(LienUpload);
$( '#t-upload' ).find( 'a' ).prop( { href: '/wiki/Вікіпедія:Майстер завантаження файлів' } );
/* Cố định liên kết "Tải tập tin lên" */ mw.hook("wikipage.content").add(function() { $("#t-upload a").attr("href", mw.util.getUrl("Wikipedia:Tải tập tin lên")); });
/* Chuyển hướng liên kết "Tải lên tập tin" đến Wikimedia Commons. */ mw.hook("wikipage.content").add(function() { $("#t-upload a").attr("href", mw.util.getUrl("Commons:Special:UploadWizard")); });
/** * Cố định liên kết "Tải lên tập tin". */ mw.hook("wikipage.content").add(function() { $("#t-upload a").attr("href", mw.util.getUrl("Commons:Special:UploadWizard/vi")); });