User:Redaking/common.js: Difference between revisions
Appearance
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary Tags: Manual revert Reverted |
||
Line 1: | Line 1: | ||
window.articleTranslatorConf = { |
|||
mw.loader.load( '//www.mediawiki.org/enwiki/w/load.php?modules=ext.gadget.Global-OWIDPopup' ); |
|||
homeWiki: 'arz', // home wiki, which language you want links to be translated to by default |
|||
fromLang: mw.config.get('wgPageContentLanguage'), // from language, which language you want links to be translated from by default, usually the wiki you are in anyway |
|||
translatorBarFormat: '$1translate$2 links from $3 to $4 $5', // translate what is in quotes except $1 $2 $3 $4 $5 which are placeholders |
|||
// importScript('مستخدم:Gerges Shamon/Gadget-speed-deletion.js'); |
|||
templateTranslatorText: 'Template translation', // translate what is in quotes |
|||
removeLinksAliasesText: 'Remove Links Aliases', // translate what is in quotes |
|||
importScript('user:Mr. Ibrahem/contenttranslation.js'); |
|||
interwikiCount: 'Language links count', // translate what is in quotes |
|||
linkedTo: 'Linked to', // translate what is in quotes |
|||
mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:Lupin/autoedit.js&action=raw&ctype=text/javascript'); |
|||
listOfUnavailablePagesOn: 'List of not present pages on' // translate what is in quotes |
|||
}; |
|||
mw.loader.load( "https://meta.wikimedia.org/enwiki/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" ); |
|||
importScript('User:Redaking/ArticleTranslator.js'); |
|||
mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:Frietjes/findargdups.js&action=raw&ctype=text/javascript'); |
|||
mw.loader.using( 'mediawiki.util' ).done(function(){ |
|||
mw.loader.load( "https://en.wikipedia.org/enwiki/w/index.php?title=User:PerfektesChaos/js/lintHint/d.js&action=raw&ctype=text/javascript" ); |
|||
/* |
|||
Code available at https://www.mediawiki.org/wiki/User:Bjohas/common.js |
|||
Documentation available at https://www.mediawiki.org/wiki/User:Bjohas/OSMgadget |
|||
*/ |
|||
//mw.loader.load("//www.mediawiki.org/enwiki/w/index.php?title=User:Bjohas/common.js&action=raw&ctype=text/javascript"); |
|||
//mw.loader.load('//ru.wikipedia.org/enwiki/w/index.php?title=MediaWiki:Gadget-wikidataInfoboxExport.js&action=raw&ctype=text/javascript'); |
|||
//var wgLangPrefs; |
|||
//if (!wgLangPrefs) wgLangPrefs = Array(); |
|||
//wgLangPrefs.push("ru"); |
|||
//importScript('مستخدم:Mr. Ibrahem/o.js'); |
|||
if ( mw.config.get('wgNamespaceNumber') === 10 ) { |
|||
importScript("user:Mr._Ibrahem/TDSkell.js"); |
|||
} |
|||
if ( mw.config.get('wgNamespaceNumber') === 14 ) { |
|||
mw.loader.load( "https://arz.wikipedia.org/enwiki/w/index.php?title=User:Mr._Ibrahem/Cat-a-lot.js&action=raw&ctype=text/javascript" ); |
|||
} |
|||
if ( mw.config.get('wgNamespaceNumber') != 828 ) { |
|||
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor |
|||
mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript'); |
|||
} else if (mw.config.get('wgPageName').search('/شرح') != -1) { |
|||
mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript'); |
|||
} |
|||
importScript("user:Mr._Ibrahem/ts.js"); |
|||
importScript("user:Mr._Ibrahem/t2.js"); |
|||
importScript('user:Mr. Ibrahem/test.js'); |
|||
//importScript("user:Mr._Ibrahem/md.js"); |
|||
//importScript('user:Majed/translator.js'); |
|||
//[[وب:مهذب ويكي]] |
|||
///////////////////////////////// |
|||
///addOnloadHook(function(){ |
|||
/// if(wgNamespaceNumber==0&&wgAction=="view") |
|||
/// { |
|||
// if(document.getElementById("ca-edit")) |
|||
/// mw.util.addPortletLink('p-cactions', 'javascript:stubtagtab()', 'بذرة', 'ca-stubtag', |
|||
/// 'إضافة قالب بذرة إلى هذه الصفحة', ''); |
|||
/// } |
|||
/// if(location.href.indexOf("&autoaddstubtag=")!=-1&&document.getElementById('wpTextbox1')!=null) |
|||
/// { |
|||
/// var x=decodeURIComponent(location.href.split("&autoaddstubtag=")[1]); |
|||
/// if(x=="") x=""; else x=""+x; |
|||
/// document.getElementById('wpTextbox1').value+=x; //add to the end of the article |
|||
/// document.getElementById('wpSummary').value= |
|||
/// "وسم {"+"{"+x+"}}"; |
|||
/// } |
|||
///});""" |
|||
///function stubtagtab() |
|||
///{ |
|||
/// var x= "هذا تعديل تجريبي"; |
|||
/// if(x==null) return; |
|||
/// location.href=wgServer+wgScript+"?title="+encodeURIComponent(wgPageName)+ |
|||
/// "&action=edit&autoclick=wpSave&autoaddstubtag="+encodeURIComponent(x); |
|||
///} |
|||
//-------------------------------- |
|||
// var homeWiki = "en"; |
|||
// var fromLang = "arz"; //the source language |
|||
// var translatorBarFormat = "$1translate $2 this link from $3 to $4"; // translate it to your language |
|||
// var templateTranslatorText = "Template translation"; // translate it to your language |
|||
// var removeLinksAliasesText = "Remove Links Aliases"; |
|||
// var doneText = "Done!"; // translate it to your language |
|||
//importScript('مستخدم:Muhammad Abul-Futooh/common.js'); |
|||
//importScript('en:User:Ebraminio/ArticleTranslator.js'); |
|||
///------------------------------------------------------------------------------ |
|||
//محتوى الوصلات الداخلية من صندوق التحرير |
|||
/// if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) > -1 ) { |
|||
/// mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:V111P/js/smartLinkingLoader.js' |
|||
/// + '&action=raw&ctype=text/javascript'); |
|||
///} |
|||
//------------------------------------------------------------------------------ |
|||
//إصلاح مشكلة أداة مقترحات العناوين |
|||
if ($.inArray(mw.config.get('wgAction'), ['edit', 'submit']) + 1) |
|||
mw.loader.using(['jquery.ui', 'jquery.textSelection'], function() { |
|||
//enable autocomplete for editbox, relative to editform in an offset of -80 vertical |
|||
$("#wpTextbox1").autoCompleteWikiText({ |
|||
positionAt: $('#wpTextbox1').prop('dir') == 'rtl' ? "right top" : "left top", |
|||
positionOf: '#editform', |
|||
positionOffset: "0 0", |
|||
menuCSS: { |
|||
background: '#E0EEF7', |
|||
opacity: 0.8 |
|||
}, |
|||
itemCSS: { |
|||
padding: 0, |
|||
margin: 0 |
|||
} |
|||
}); |
|||
}); |
|||
// [[:en:User:ProveIt GT]] |
|||
// mw.loader.load( '//en.wikipedia.org/enwiki/w/index.php?title=User:ProveIt_GT/ProveIt.js&action=raw&ctype=text/javascript' ); |
|||
/*[[ويكيبيديا:إضافة أدوات تحرير#النص الأول]]*/ |
|||
//importScript('مستخدم:حصار/AutoEd/complete.js'); |
|||
importScript('MediaWiki:Gadget-Extra-Edittools.js'); |
|||
importScript('MediaWiki:Gadget-Extra-Edittools2.js'); |
|||
//[[ويكيبيديا:أدوات المراجع]] |
|||
importScript('Mediawiki:Gadget-RefToolbar.js'); |
|||
importScript('Mediawiki:Gadget-CustomSideBarLinks.js'); |
|||
//[[ويكيبيديا:قائمة ملخصات تعديل#إضافة مواد]] |
|||
var summaries = window.summaries || []; |
|||
summaries = summaries.concat([ |
|||
"عنوان", |
|||
{"title": "طفيف"}, |
|||
{"title": "تعريب وصلات"}, |
|||
{"title": "اضافة خبر"}, |
|||
{"title": "زيادة عدد الصور المختارة"}, |
|||
{"title": "تنسيق ويكي ، تحديث، تدقيق لغوي ، توسيع"}, |
|||
{"title": " مراجعة ، ازالة نصوص ، تنسيق"}, |
|||
{"title": " مراجعة ، تنسيق"}, |
|||
{"title": "تنسيق ويكي ، تدقيق"}, |
|||
{"title": "تنسيق ويكي ، إزالة نصوص"}, |
|||
]); |
|||
//تلوين وصلات اللغات |
|||
//importScript('user:Majed/langlinks.js'); |
|||
//زر معاينة سريعة |
|||
//importScript('user:Majed/ajaxPreview.js'); |
|||
//استبدالات وإصلاحات للنص |
|||
//importScript('user:Majed/ReplaceAndFix.js'); |
|||
//معلومات أكثر عن الصفحة |
|||
//mw.loader.load('//meta.wikimedia.org/enwiki/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript'); |
|||
//معلومات عن الصفحة |
|||
//mw.loader.load('https://en.wikipedia.org/enwiki/w/index.php?action=raw&ctype=text/javascript&title=User:MusikAnimal/MoreMenu.js'); |
|||
//سكربت للتجارب |
|||
//importScript('user:Majed/myscript.js'); |
|||
//------------------------------------------------------------------------------ |
|||
//إضافة وصلات في الشريط العلوي |
|||
//mw.loader.load('https://en.wikipedia.org/enwiki/w/index.php?action=raw&ctype=text/javascript&title=user:IagoQnsi/addptlinks.js'); |
|||
// |
|||
// var ptLinksToAdd = [ |
|||
// { |
|||
// label: "صفحات جديدة", |
|||
// title: "صفحات جديدة", |
|||
// url: "خاص:صفحات جديدة", |
|||
// index: 5 |
|||
// } |
|||
// ]; |
|||
// DO NOT COPY IT FOR TRANSLATION, READ THE DOCUMENTATION [[:en:User talk:Ebraminio/ArticleTranslator.js]] |
|||
//أزرار مفيدية في صندوق التحرير |
|||
//importScript('user:Majed/extrabuttons.js'); |
|||
}); |
Revision as of 02:24, 12 September 2024
window.articleTranslatorConf = {
homeWiki: 'arz', // home wiki, which language you want links to be translated to by default
fromLang: mw.config.get('wgPageContentLanguage'), // from language, which language you want links to be translated from by default, usually the wiki you are in anyway
translatorBarFormat: '$1translate$2 links from $3 to $4 $5', // translate what is in quotes except $1 $2 $3 $4 $5 which are placeholders
templateTranslatorText: 'Template translation', // translate what is in quotes
removeLinksAliasesText: 'Remove Links Aliases', // translate what is in quotes
interwikiCount: 'Language links count', // translate what is in quotes
linkedTo: 'Linked to', // translate what is in quotes
listOfUnavailablePagesOn: 'List of not present pages on' // translate what is in quotes
};
importScript('User:Redaking/ArticleTranslator.js');