מדיה ויקי:Gadget-CommonsUpload.js: הבדלים בין גרסאות בדף

תוכן שנמחק תוכן שנוסף
Hoo man (שיחה | תרומות)
מ Bot: Security fix: protocol-relative URLs per https://meta.wikimedia.org/?oldid=3197161 (questions?).
ערן (שיחה | תרומות)
מ קישור לאשף העלאה
שורה 1:
/* שינוי קישורי ההעלאה: קישור אחד לדף הסבר (שממנו יש קישורים לדפים הרלוונטיים), וקישור ישיר לוויקישיתוף */
$(document).ready(function uploadLink() {
var commonsLink = "//commons.wikimedia.org/w/index.php?title=Special:UploadWizard&uselang=he";
if( document.getElementById( "t-upload" ) ) {
if (typeof(customCommonsLink) != 'undefined') commonsLink = customCommonsLink;
document.getElementById( "t-upload" ).innerHTML += ' / <a href="//commons.wikimedia.org/wiki/Special:Upload">לוויקישיתוף</a>';
try }{
if ( $('#t-upload').length )
}
$('#t-upload').html('<a href="'+mw.util.wikiGetlink('ויקיפדיה:העלאת_קובץ_לשרת')+'">' + ( wgUserLanguage == "he" || wgUserLanguage == "fairuse" ? 'העלאת קובץ לשרת' : 'Upload file to server' ) + '</a>' +
 
' / <a id="commonsLink" href="' + commonsLink + '">' + ( wgUserLanguage == "he" || wgUserLanguage == "fairuse" ? 'לוויקישיתוף' : "to commons" ) + '</a>');
addOnloadHook(uploadLink);
}
catch(e)
{
return;// lets just ignore what's happened
}
});