ملاحظة: بعد الحفظ، قد يلزمك إفراغ الكاش لرؤية التغييرات.

/*[[ويكيبيديا:إضافة أدوات تحرير#قائمة قوالب]]*/
(function (e, t, n) {
    var r = function (e, t, r, i) {
        var s = "";
        if (r === n ? true : r) s += "{" + "{";
        s += e;
        if (i === n ? true : i) s += "}" + "}";
        if (t) s += " – " + t;
        return s
    };
    var i = function (e, t, r) {
        var i = "";
        if (r === n ? true : r) i += "{" + "{";
        i += e;
        if (t) i += t;
        return i
    };
    var s = function (e, t, r, i) {
        var s = "";
        if (r === n ? true : r) s += "{" + "{";
        s += e;
        if (t) s += t;
        if (i === n ? true : i) s += "}" + "}";
        return s
    };
    var o = new Date;
    var u = o.getUTCFullYear() + "-" + (o.getUTCMonth() < 9 ? "0" : "") + (o.getUTCMonth() + 1) + "-" + (o.getUTCDate() < 9 ? "0" : "") + o.getUTCDate();
    var f = function () {
        t("#wpTextbox1").wikiEditor("addToToolbar", {
            section: "main",
            groups: {
                heading: {
                    tools: {
                        heading: {
                            label: "قالب",
                            type: "select",
                            list: {
                                /**بداية القائمة**/
                                disambiguation: {
                                    label: r("توضيح"),
                                    action: {
                                        type: "encapsulate",
                                        options: {
                                            pre: i("توضيح"),
                                            post: "}}",
                                            ownline: true
                                        }
                                    }
                                },
                                references: {
                                    label: r("مراجع"),
                                    action: {
                                        type: "encapsulate",
                                        options: {
                                            pre: i("مراجع"),
                                            post: "}}",
                                            ownline: false
                                        }
                                    } 
                                }/**نهاية القائمة: لا توضع فاصلة بعد العنصر الأخير**/
                            }
                        }
                    }
                }
            }
        })
    };
    if (t.inArray(e.config.get("wgAction"), ["edit", "submit"]) !== -1) {
        e.loader.using("user.options", function () {
            if (e.user.options.get("usebetatoolbar")) {
                e.loader.using("ext.wikiEditor", function () {
                    t(f)
                })
            } else {
                t(a)
            }
        })
    }
})(mediaWiki, jQuery)
/*[[ويكيبيديا:إضافة أدوات تحرير#أزرار قوالب]]*/
(function (e, t, n) {
    var r = function () {
        t("#wpTextbox1").wikiEditor("addToToolbar", {
            section: "main",
            group: "insert",
            tools: {
                /**بداية الأزرار**/
                template: {
                    label: "قالب",
                    type: "button",
                    icon: "//upload.wikimedia.org/wikipedia/commons/4/4a/Norwegian_template_sign.png",
                    action: {
                        type: "encapsulate",
                        options: {
                            pre: "{{",
                            post: "}}"
                        }
                    }
                },
                signature: {
                    label: "توقيع",
                    type: "button",
                    icon: "//upload.wikimedia.org/wikipedia/commons/3/34/Toolbar_miss_signature.png",
                    action: {
                        type: "encapsulate",
                        options: {
                            pre: "",
                            post: "--{{مستخدم:اسمي/توقيعي}} ~~\~\~~"
                        }
                    }
                }/**نهاية الأزرار: لا توضع فاصلة بعد العنصر الأخير**/
            }
        })
    };
    if (t.inArray(e.config.get("wgAction"), ["edit", "submit"]) !== -1) {
        e.loader.using("user.options", function () {
            if (e.user.options.get("usebetatoolbar")) {
                e.loader.using("ext.wikiEditor", function () {
                    t(r)
                })
            } else {
                t(customizeOrigToolbar)
            }
        })
    }
})(mediaWiki, jQuery)
//<source lang=javascript>
mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/core.js&action=raw&ctype=text/javascript'); //Imports the "framework" script needed to make this function
//Import individual modules for use

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/unicodify.js&action=raw&ctype=text/javascript'); // autoEdUnicodify() converts HTML entities to WikiText

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/isbn.js&action=raw&ctype=text/javascript'); // autoEdISBN() fixes ISBN syntax so that WikiMagic can work

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/whitespace.js&action=raw&ctype=text/javascript'); // autoEdWhitespace() cleans up whitespace

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/wikilinks.js&action=raw&ctype=text/javascript'); // autoEdWikilinks() simplifies and shortens wikilinks where appropriate

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/htmltowikitext.js&action=raw&ctype=text/javascript'); // autoEdHTMLtoWikitext() converts HTML to wikitext

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/headlines.js&action=raw&ctype=text/javascript'); // autoEdHeadlines() fixes common headline errors and renames some headers

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/unicodecontrolchars.js&action=raw&ctype=text/javascript'); // autoEdUnicodeControlChars() converts HTML to wikitext

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/unicodehex.js&action=raw&ctype=text/javascript'); // autoEdUnicodeHex() converts hex encoded characters to unicode

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/templates.js&action=raw&ctype=text/javascript'); // autoEdTemplates() cleans up templates

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/tablestowikitext.js&action=raw&ctype=text/javascript'); // autoEdTablestoWikitext() replaces HTML tables with wikitables

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/extrabreaks.js&action=raw&ctype=text/javascript'); // autoEdExtraBreaks() removes extra BR tags

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/links.js&action=raw&ctype=text/javascript'); // autoEdLinks() cleans up common link errors

function autoEdFunctions() { //Activates individual modules when "auto ed" tab is clicked

    var txt = document.editform.wpTextbox1;

    txt.value = autoEdUnicodify(txt.value);

    txt.value = autoEdISBN(txt.value);

    txt.value = autoEdWhitespace(txt.value);

    txt.value = autoEdUnicodeHex(txt.value);

    txt.value = autoEdWikilinks(txt.value);

    txt.value = autoEdHTMLtoWikitext(txt.value);

    txt.value = autoEdHeadlines(txt.value);

    txt.value = autoEdUnicodeControlChars(txt.value);

    txt.value = autoEdTemplates(txt.value);

    txt.value = autoEdTablestoWikitext(txt.value);

    txt.value = autoEdExtraBreaks(txt.value);

    txt.value = autoEdLinks(txt.value);

}

//</source>
syntaxHighlighterConfig = {
	boldOrItalicColor: "#cfb2d5",  //لون مخصص
	//commentColor:      "",       //تم استخدام اللون الافتراضي
	entityColor:       "",         //تم إزالة اللون
	externalLinkColor: "#e9e4cd",  //لون مخصص
	headingColor:      "#ccff00",  //لون مخصص
	hrColor:           "",         //تمت إزالة اللون
	listOrIndentColor: "",         //تمت إزالة اللون
	parameterColor:    "",         //تمت إزالة اللون
	signatureColor:    "",         //تمت إزالة اللون
	//tagColor:          "",       //تم استخدام اللون الافتراضي
	//tableColor:        "",       //تم استخدام اللون الافتراضي
	templateColor:     "#f9f9f9",  //لون مخصص
	wikilinkColor:     "#d6f1f1 ", //لون مخصص
};
importScript('User:Alnokta/correct.js');
//أزرار مفيدية في صندوق التحرير
importScript('user:Majed/extrabuttons.js');
//مترجم الوصلات الداخلية
importScript('user:Majed/translator.js');
//تلوين وصلات اللغات
//importScript('user:Majed/langlinks.js');
//زر معاينة سريعة
importScript('user:Majed/ajaxPreview.js');
//استبدالات وإصلاحات للنص
importScript('user:Majed/ReplaceAndFix.js');
//معلومات أكثر عن الصفحة
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');
//معلومات عن الصفحة
//mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:MusikAnimal/MoreMenu.js&action=raw&ctype=text/javascript');
//سكربت للتجارب
//importScript('user:Majed/myscript.js');
//------------------------------------------------------------------------------
// تغيير الألوان في أداة تلوين نصوص صندوق التحرير - يجب تفعيلها أولاً من التفضيلات
syntaxHighlighterConfig = {
	boldOrItalicColor: "#cfb2d5", // النص العريض أو المائل
	//commentColor:      "", //التعليق
	entityColor:       "", //
	externalLinkColor: "#e9e4cd", //الروابط الخارجية
	headingColor:      "#ccff00", //الترويسة
	hrColor:           "", //
	listOrIndentColor: "", //
	//parameterColor:    "", //
	signatureColor:    "", //
	//tagColor:          "", //
	//tableColor:        "", // الجدول
	templateColor:     "#f9f9f9", //القوالب 
	wikilinkColor:     "#d6f1f1 ", //الوصلة الداخلية
};
//------------------------------------------------------------------------------
//إضافة وصلات في الشريط العلوي
//mw.loader.load('https://en.wikipedia.org/w/index.php?title=user:IagoQnsi/addptlinks.js&action=raw&ctype=text/javascript');
//
// var ptLinksToAdd = [
//        {
//                label: "صفحات جديدة",
//                title: "صفحات جديدة",
//                url: "خاص:صفحات جديدة",
//                index: 5
//        }
// ];
 //------------------------------------------------------------------------------
 //محتوى الوصلات الداخلية من صندوق التحرير
//  if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) > -1 ) {
// 	mw.loader.load('//en.wikipedia.org/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
            }
        });
    });
//------------------------------------------------------------------------------
// قديمة أو لا تعمل أو لم يعد لها حاجة
// كتابة الوصف ووضع الترخيص عند رفع ملف  - لاحاجة له تم إضافته في ويكبيديا بشكل افتراضي
//importScript('user:Majed/upload-description.js');
//------------------------------------------------------------------------------
/* User:PleaseStand/hide-vector-sidebar.js */
importScript( 'User:PleaseStand/hide-vector-sidebar.js' );// Backlink: [[User:PleaseStand/hide-vector-sidebar.js]]
/* User:Rezonansowy/SimpleLightbox.js */
importScript( 'User:Rezonansowy/SimpleLightbox.js' );// Backlink: [[User:Rezonansowy/SimpleLightbox.js]]
/* User:Zocky/PicturePopupsVector.js */
importScript( 'User:Zocky/PicturePopupsVector.js' );// Backlink: [[User:Zocky/PicturePopupsVector.js]]
/* User:Gary/smaller templates.js */
importScript( 'User:Gary/smaller templates.js' );// Backlink: [[User:Gary/smaller templates.js]]
/* User:Gary/subjects age from year.js */
importScript( 'User:Gary/subjects age from year.js' );// Backlink: [[User:Gary/subjects age from year.js]]
/* User:Bawolff/wiktLookup.js */
importScript( 'User:Bawolff/wiktLookup.js' );// Backlink: [[User:Bawolff/wiktLookup.js]]
/* User:Numbermaniac/goToTop.js */
importScript( 'User:Numbermaniac/goToTop.js' );// Backlink: [[User:Numbermaniac/goToTop.js]]
/* User:Equazcion/Floater.js */
importScript( 'User:Equazcion/Floater.js' );// Backlink: [[User:Equazcion/Floater.js]]
/* User:Rezonansowy/FloatHead.js */
importScript( 'User:Rezonansowy/FloatHead.js' );// Backlink: [[User:Rezonansowy/FloatHead.js]]
/* User:Ravid ziv/highlightSearch.js */
importScript( 'User:Ravid ziv/highlightSearch.js' );// Backlink: [[User:Ravid ziv/highlightSearch.js]]
/* User:Zhaofeng Li/RefToggle.js */
importScript( 'User:Zhaofeng Li/RefToggle.js' );// Backlink: [[User:Zhaofeng Li/RefToggle.js]]
/* User:N8wilson/AQFetcher.js */
importScript( 'User:N8wilson/AQFetcher.js' );// Backlink: [[User:N8wilson/AQFetcher.js]]
/* User:Mxn/serendipity.js */
importScript( 'User:Mxn/serendipity.js' );// Backlink: [[User:Mxn/serendipity.js]]
/* User:Writ Keeper/Scripts/SearchNamespace.js */
importScript( 'User:Writ Keeper/Scripts/SearchNamespace.js' );// Backlink: [[User:Writ Keeper/Scripts/SearchNamespace.js]]
/* commons:MediaWiki talk:Gadget-search-new-tab.js */
importScript( 'commons:MediaWiki talk:Gadget-search-new-tab.js' );// Backlink: [[commons:MediaWiki talk:Gadget-search-new-tab.js]]
/* commons:MediaWiki talk:Search-results-new-tab.js */
importScript( 'commons:MediaWiki talk:Search-results-new-tab.js' );// Backlink: [[commons:MediaWiki talk:Search-results-new-tab.js]]
/* User:Writ Keeper/Scripts/googleTitle.js */
importScript( 'User:Writ Keeper/Scripts/googleTitle.js' );// Backlink: [[User:Writ Keeper/Scripts/googleTitle.js]]
/* User:Anomie/linkclassifier.js */
importScript( 'User:Anomie/linkclassifier.js' );// Backlink: [[User:Anomie/linkclassifier.js]]
/* User:Ucucha/duplinks.js */
importScript( 'User:Ucucha/duplinks.js' );// Backlink: [[User:Ucucha/duplinks.js]]
/* User:Lenore/autolink.js */
importScript( 'User:Lenore/autolink.js' );// Backlink: [[User:Lenore/autolink.js]]
/* User:Huji/Gadget-intropreload.js */
importScript( 'User:Huji/Gadget-intropreload.js' );// Backlink: [[User:Huji/Gadget-intropreload.js]]
/* User:Equazcion/ToggleEditNotices.js */
importScript( 'User:Equazcion/ToggleEditNotices.js' );// Backlink: [[User:Equazcion/ToggleEditNotices.js]]
/* User:Zellfaze/expandEdit.js */
importScript( 'User:Zellfaze/expandEdit.js' );// Backlink: [[User:Zellfaze/expandEdit.js]]
/* User:Gary/nominations viewer.js */
importScript( 'User:Gary/nominations viewer.js' );// Backlink: [[User:Gary/nominations viewer.js]]
/* User:Ais523/adminrights.js */
importScript( 'User:Ais523/adminrights.js' );// Backlink: [[User:Ais523/adminrights.js]]
/* User:Anomie/useridentifier.js */
importScript( 'User:Anomie/useridentifier.js' );// Backlink: [[User:Anomie/useridentifier.js]]
/* User:NuclearWarfare/Mark-blocked script.js */
importScript( 'User:NuclearWarfare/Mark-blocked script.js' );// Backlink: [[User:NuclearWarfare/Mark-blocked script.js]]
/* User:Ais523/votesymbols.js */
importScript( 'User:Ais523/votesymbols.js' );// Backlink: [[User:Ais523/votesymbols.js]]
/* User:PleaseStand/highlight-comments.js */
importScript( 'User:PleaseStand/highlight-comments.js' );// Backlink: [[User:PleaseStand/highlight-comments.js]]
/* User:Writ Keeper/Scripts/deletionFinder.js */
importScript( 'User:Writ Keeper/Scripts/deletionFinder.js' );// Backlink: [[User:Writ Keeper/Scripts/deletionFinder.js]]
/* User:Kephir/gadgets/unclutter.js */
importScript( 'User:Kephir/gadgets/unclutter.js' );// Backlink: [[User:Kephir/gadgets/unclutter.js]]
/*[[ويكيبيديا:إضافة أدوات تحرير#النص الثاني]]*/
importScript('MediaWiki:Gadget-Extra-Edittools2.js');