<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
	<id>https://www.iran-pedia.org/w/index.php?action=history&amp;feed=atom&amp;title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C%3AGadget-close.js</id>
	<title>مدیاویکی:Gadget-close.js - تاریخچهٔ نسخه‌ها</title>
	<link rel="self" type="application/atom+xml" href="https://www.iran-pedia.org/w/index.php?action=history&amp;feed=atom&amp;title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C%3AGadget-close.js"/>
	<link rel="alternate" type="text/html" href="https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-close.js&amp;action=history"/>
	<updated>2026-04-26T05:53:53Z</updated>
	<subtitle>تاریخچهٔ نسخه‌ها برای این صفحه در ویکی</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-close.js&amp;diff=2618&amp;oldid=prev</id>
		<title>Rootadmin: ۱ نسخه واردشده</title>
		<link rel="alternate" type="text/html" href="https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-close.js&amp;diff=2618&amp;oldid=prev"/>
		<updated>2017-12-02T11:08:44Z</updated>

		<summary type="html">&lt;p&gt;۱ نسخه واردشده&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fa&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;نسخهٔ ‏۲ دسامبر ۲۰۱۷، ساعت ۱۳:۰۸&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;fa&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(بدون تفاوت)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Rootadmin</name></author>
	</entry>
	<entry>
		<id>https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-close.js&amp;diff=2617&amp;oldid=prev</id>
		<title>Rootadmin: ۱ نسخه واردشده</title>
		<link rel="alternate" type="text/html" href="https://www.iran-pedia.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-close.js&amp;diff=2617&amp;oldid=prev"/>
		<updated>2017-08-29T21:31:00Z</updated>

		<summary type="html">&lt;p&gt;۱ نسخه واردشده&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/*global jQuery, mediaWiki */&lt;br /&gt;
(function($, mw) {&lt;br /&gt;
    &amp;#039;use strict&amp;#039;;&lt;br /&gt;
    var windowManager;&lt;br /&gt;
    var archiveSection;&lt;br /&gt;
    var commentInSection;&lt;br /&gt;
    var archiveSectionOptions = {&lt;br /&gt;
        install: function() {&lt;br /&gt;
            if ($.inArray(mw.config.get(&amp;quot;wgNamespaceNumber&amp;quot;), [1, 3, 4, 5, 7, 9, 11, 13, 15]) &amp;gt; -1) {&lt;br /&gt;
                $(&amp;#039;.mw-editsection&amp;#039;).each(function() {&lt;br /&gt;
                    var span = $(&amp;#039;&amp;lt;span&amp;gt;&amp;#039;, {&lt;br /&gt;
                        class: &amp;#039;mw-editsection mw-archivesection&amp;#039;&lt;br /&gt;
                    }).insertBefore(this);&lt;br /&gt;
                    span.append($(&amp;#039;&amp;lt;span&amp;gt;&amp;#039;, {&lt;br /&gt;
                        class: &amp;#039;mw-editsection-bracket&amp;#039;,&lt;br /&gt;
                        text: &amp;#039;[&amp;#039;&lt;br /&gt;
                    }));&lt;br /&gt;
                    span.append($(&amp;#039;&amp;lt;a&amp;gt;&amp;#039;, {&lt;br /&gt;
                        href: &amp;#039;#&amp;#039;,&lt;br /&gt;
                        title: &amp;#039;ثبت نظر (موافق/مخالف/شد/...)&amp;#039;,&lt;br /&gt;
                        style: &amp;#039;font-size: smaller;&amp;#039;,&lt;br /&gt;
                        text: &amp;#039;ثبت نظر&amp;#039;,&lt;br /&gt;
                    }).click(function(e) {&lt;br /&gt;
                        e.preventDefault();&lt;br /&gt;
                        var section = e.target;&lt;br /&gt;
                        mw.loader.using([&amp;#039;oojs-ui-core&amp;#039;, &amp;#039;oojs-ui-widgets&amp;#039;, &amp;#039;oojs-ui-windows&amp;#039;]).done(function() {&lt;br /&gt;
                            archiveSectionOptions.createCommentWindow(section);&lt;br /&gt;
                        });&lt;br /&gt;
                    }));&lt;br /&gt;
                    span.append($(&amp;#039;&amp;lt;span&amp;gt;&amp;#039;, {&lt;br /&gt;
                        class: &amp;#039;mw-editsection-bracket&amp;#039;,&lt;br /&gt;
                        text: &amp;#039; / &amp;#039;&lt;br /&gt;
                    }));&lt;br /&gt;
                    span.append($(&amp;#039;&amp;lt;a&amp;gt;&amp;#039;, {&lt;br /&gt;
                        href: &amp;#039;#&amp;#039;,&lt;br /&gt;
                        title: &amp;#039;جمع‌بندی این بخش&amp;#039;,&lt;br /&gt;
                        style: &amp;#039;font-size: smaller;&amp;#039;,&lt;br /&gt;
                        text: &amp;#039;جمع‌بندی&amp;#039;,&lt;br /&gt;
                    }).click(function(e) {&lt;br /&gt;
                        e.preventDefault();&lt;br /&gt;
                        var section = e.target;&lt;br /&gt;
                        mw.loader.using([&amp;#039;oojs-ui-core&amp;#039;, &amp;#039;oojs-ui-widgets&amp;#039;, &amp;#039;oojs-ui-windows&amp;#039;]).done(function() {&lt;br /&gt;
                            archiveSectionOptions.createArchiveWindow(section);&lt;br /&gt;
                        });&lt;br /&gt;
                    }));&lt;br /&gt;
                    span.append($(&amp;#039;&amp;lt;span&amp;gt;&amp;#039;, {&lt;br /&gt;
                        class: &amp;#039;mw-editsection-bracket&amp;#039;,&lt;br /&gt;
                        text: &amp;#039;]&amp;#039;&lt;br /&gt;
                    }));&lt;br /&gt;
                    // Late pre-loading&lt;br /&gt;
                    mw.loader.load([&amp;#039;oojs-ui-core&amp;#039;, &amp;#039;oojs-ui-widgets&amp;#039;, &amp;#039;oojs-ui-windows&amp;#039;]);&lt;br /&gt;
                });&lt;br /&gt;
            }&lt;br /&gt;
        },&lt;br /&gt;
        createArchiveWindow: function(section) {&lt;br /&gt;
            var query = archiveSectionOptions.getQuery(section);&lt;br /&gt;
            archiveSectionOptions.currentSectionId = query.section;&lt;br /&gt;
&lt;br /&gt;
            function ArchiveSection(config) {&lt;br /&gt;
                ArchiveSection.super.call(this, config);&lt;br /&gt;
            }&lt;br /&gt;
            OO.inheritClass(ArchiveSection, OO.ui.ProcessDialog);&lt;br /&gt;
            ArchiveSection.static.name = &amp;#039;archive&amp;#039;;&lt;br /&gt;
            ArchiveSection.static.title = &amp;#039;جمع‌بندی بخش&amp;#039;;&lt;br /&gt;
            ArchiveSection.static.actions = [{&lt;br /&gt;
                action: &amp;#039;archive&amp;#039;,&lt;br /&gt;
                label: &amp;#039;جمع‌بندی&amp;#039;,&lt;br /&gt;
                flags: &amp;#039;primary&amp;#039;&lt;br /&gt;
            }, {&lt;br /&gt;
                label: &amp;#039;لغو&amp;#039;,&lt;br /&gt;
                flags: &amp;#039;safe&amp;#039;&lt;br /&gt;
            }];&lt;br /&gt;
            ArchiveSection.prototype.initialize = function() {&lt;br /&gt;
                var fieldset = [];&lt;br /&gt;
                ArchiveSection.super.prototype.initialize.apply(this, arguments);&lt;br /&gt;
                this.panel = new OO.ui.PanelLayout({&lt;br /&gt;
                    padded: true,&lt;br /&gt;
                    expanded: false&lt;br /&gt;
                });&lt;br /&gt;
                this.content = new OO.ui.FieldsetLayout();&lt;br /&gt;
                archiveSectionOptions.switchTop = new OO.ui.ToggleSwitchWidget({&lt;br /&gt;
                    label: &amp;#039;جمع‌بندی بالای متن باشد&amp;#039;,&lt;br /&gt;
                    value: true,&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.switchSuccess = new OO.ui.ToggleSwitchWidget({&lt;br /&gt;
                    label: &amp;#039;بحث در رسیدن به اجماع موفق بود&amp;#039;,&lt;br /&gt;
                    value: true,&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.switchBold = new OO.ui.ToggleSwitchWidget({&lt;br /&gt;
                    label: &amp;#039;متن جمع‌بندی ضخیم نمایش داده شود&amp;#039;,&lt;br /&gt;
                    value: false,&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.textSummary = new OO.ui.TextInputWidget({&lt;br /&gt;
                    placeholder: &amp;#039;متن جمع‌بندی را وارد کنید&amp;#039;,&lt;br /&gt;
                });&lt;br /&gt;
                //archiveSectionOptions.textSummary.setRTL(true);&lt;br /&gt;
                fieldset.push(new OO.ui.FieldLayout(archiveSectionOptions.switchTop, {&lt;br /&gt;
                    label: &amp;#039;جمع‌بندی بالای متن باشد&amp;#039;,&lt;br /&gt;
                    align: &amp;#039;inline&amp;#039;,&lt;br /&gt;
                }));&lt;br /&gt;
                fieldset.push(new OO.ui.FieldLayout(archiveSectionOptions.switchSuccess, {&lt;br /&gt;
                    label: &amp;#039;بحث در رسیدن به اجماع موفق بود&amp;#039;,&lt;br /&gt;
                    align: &amp;#039;inline&amp;#039;,&lt;br /&gt;
                }));&lt;br /&gt;
                fieldset.push(new OO.ui.FieldLayout(archiveSectionOptions.switchBold, {&lt;br /&gt;
                    label: &amp;#039;متن جمع‌بندی ضخیم نمایش داده شود&amp;#039;,&lt;br /&gt;
                    align: &amp;#039;inline&amp;#039;,&lt;br /&gt;
                }));&lt;br /&gt;
                fieldset.push(new OO.ui.FieldLayout(archiveSectionOptions.textSummary, {&lt;br /&gt;
                    label: &amp;#039;جمع‌بندی:&amp;#039;,&lt;br /&gt;
                    align: &amp;#039;top&amp;#039;&lt;br /&gt;
                }));&lt;br /&gt;
                this.content.addItems(fieldset);&lt;br /&gt;
                this.panel.$element.append(this.content.$element);&lt;br /&gt;
                this.$body.append(this.panel.$element);&lt;br /&gt;
            };&lt;br /&gt;
            ArchiveSection.prototype.getActionProcess = function(action) {&lt;br /&gt;
                var dialog = this;&lt;br /&gt;
                if (action === &amp;#039;archive&amp;#039;) {&lt;br /&gt;
                    archiveSectionOptions.doEdit(archiveSectionOptions.currentSectionId, action);&lt;br /&gt;
                }&lt;br /&gt;
                return ArchiveSection.super.prototype.getActionProcess.call(this, action);&lt;br /&gt;
            };&lt;br /&gt;
            if (!windowManager) {&lt;br /&gt;
                windowManager = new OO.ui.WindowManager();&lt;br /&gt;
                $(&amp;#039;body&amp;#039;).append(windowManager.$element);&lt;br /&gt;
            }&lt;br /&gt;
            if (!archiveSection) {&lt;br /&gt;
                archiveSection = new ArchiveSection({&lt;br /&gt;
                    size: &amp;#039;medium&amp;#039;&lt;br /&gt;
                });&lt;br /&gt;
                windowManager.addWindows([archiveSection]);&lt;br /&gt;
            }&lt;br /&gt;
            windowManager.openWindow(archiveSection);&lt;br /&gt;
        },&lt;br /&gt;
        createCommentWindow: function(section) {&lt;br /&gt;
            var query = archiveSectionOptions.getQuery(section);&lt;br /&gt;
            archiveSectionOptions.currentSectionId = query.section;&lt;br /&gt;
&lt;br /&gt;
            function CommentInSection(config) {&lt;br /&gt;
                CommentInSection.super.call(this, config);&lt;br /&gt;
            }&lt;br /&gt;
            OO.inheritClass(CommentInSection, OO.ui.ProcessDialog);&lt;br /&gt;
            CommentInSection.static.name = &amp;#039;comment&amp;#039;;&lt;br /&gt;
            CommentInSection.static.title = &amp;#039;ثبت نظر&amp;#039;;&lt;br /&gt;
            CommentInSection.static.actions = [{&lt;br /&gt;
                action: &amp;#039;comment&amp;#039;,&lt;br /&gt;
                label: &amp;#039;ثبت نظر&amp;#039;,&lt;br /&gt;
                flags: &amp;#039;primary&amp;#039;&lt;br /&gt;
            }, {&lt;br /&gt;
                label: &amp;#039;لغو&amp;#039;,&lt;br /&gt;
                flags: &amp;#039;safe&amp;#039;&lt;br /&gt;
            }];&lt;br /&gt;
            CommentInSection.prototype.initialize = function() {&lt;br /&gt;
                var fieldset = [];&lt;br /&gt;
                CommentInSection.super.prototype.initialize.apply(this, arguments);&lt;br /&gt;
                this.panel = new OO.ui.PanelLayout({&lt;br /&gt;
                    padded: true,&lt;br /&gt;
                    expanded: false&lt;br /&gt;
                });&lt;br /&gt;
                this.content = new OO.ui.FieldsetLayout();&lt;br /&gt;
                archiveSectionOptions.pinguser = new OO.ui.ToggleSwitchWidget({&lt;br /&gt;
                    label: &amp;#039;آخرین کاربر پینگ شود؟&amp;#039;,&lt;br /&gt;
                    value: false,&lt;br /&gt;
                });&lt;br /&gt;
&lt;br /&gt;
                //archiveSectionOptions.pinguser.on( &amp;#039;change&amp;#039;, function () {&lt;br /&gt;
                //	alert(archiveSectionOptions.setPingUser(current2))		&lt;br /&gt;
                //});&lt;br /&gt;
&lt;br /&gt;
                archiveSectionOptions.radioComment = new OO.ui.RadioOptionWidget({&lt;br /&gt;
                    label: &amp;#039;پیام&amp;#039;,&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.radioDone = new OO.ui.RadioOptionWidget({&lt;br /&gt;
                    label: &amp;#039;شد&amp;#039;,&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.radioReject = new OO.ui.RadioOptionWidget({&lt;br /&gt;
                    label: &amp;#039;نشد&amp;#039;,&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.radioSupport = new OO.ui.RadioOptionWidget({&lt;br /&gt;
                    label: &amp;#039;موافق&amp;#039;,&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.radioOppose = new OO.ui.RadioOptionWidget({&lt;br /&gt;
                    label: &amp;#039;مخالف&amp;#039;,&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.radioDelete = new OO.ui.RadioOptionWidget({&lt;br /&gt;
                    label: &amp;#039;حذف&amp;#039;,&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.radioKeep = new OO.ui.RadioOptionWidget({&lt;br /&gt;
                    label: &amp;#039;بماند&amp;#039;,&lt;br /&gt;
                });&lt;br /&gt;
                fieldset.push(new OO.ui.FieldLayout(archiveSectionOptions.pinguser, {&lt;br /&gt;
                    label: &amp;#039;آخرین کاربر پینگ شود؟&amp;#039;,&lt;br /&gt;
                    align: &amp;#039;inline&amp;#039;,&lt;br /&gt;
                }));&lt;br /&gt;
                archiveSectionOptions.radioCommentType = new OO.ui.RadioSelectWidget({&lt;br /&gt;
                    items: [&lt;br /&gt;
                        archiveSectionOptions.radioComment,&lt;br /&gt;
                        archiveSectionOptions.radioDone,&lt;br /&gt;
                        archiveSectionOptions.radioReject,&lt;br /&gt;
                        archiveSectionOptions.radioSupport,&lt;br /&gt;
                        archiveSectionOptions.radioOppose,&lt;br /&gt;
                        archiveSectionOptions.radioDelete,&lt;br /&gt;
                        archiveSectionOptions.radioKeep&lt;br /&gt;
                    ]&lt;br /&gt;
                });&lt;br /&gt;
                archiveSectionOptions.radioCommentType.selectItem(archiveSectionOptions.radioComment);&lt;br /&gt;
                archiveSectionOptions.textComment = new OO.ui.TextInputWidget({&lt;br /&gt;
                    placeholder: &amp;#039;متن نظر را وارد کنید&amp;#039;,&lt;br /&gt;
                });&lt;br /&gt;
                //archiveSectionOptions.textComment.setRTL(true);&lt;br /&gt;
                fieldset.push(new OO.ui.FieldLayout(archiveSectionOptions.radioCommentType, {&lt;br /&gt;
                    label: &amp;#039;برچسب قبل از نظر&amp;#039;,&lt;br /&gt;
                    align: &amp;#039;top&amp;#039;&lt;br /&gt;
                }));&lt;br /&gt;
                fieldset.push(new OO.ui.FieldLayout(archiveSectionOptions.textComment, {&lt;br /&gt;
                    label: &amp;#039;متن نظر:&amp;#039;,&lt;br /&gt;
                    align: &amp;#039;top&amp;#039;&lt;br /&gt;
                }));&lt;br /&gt;
                this.content.addItems(fieldset);&lt;br /&gt;
                this.panel.$element.append(this.content.$element);&lt;br /&gt;
                this.$body.append(this.panel.$element);&lt;br /&gt;
            };&lt;br /&gt;
            CommentInSection.prototype.getActionProcess = function(action) {&lt;br /&gt;
                var dialog = this;&lt;br /&gt;
                if (action === &amp;#039;comment&amp;#039;) {&lt;br /&gt;
                    archiveSectionOptions.doEdit(archiveSectionOptions.currentSectionId, action);&lt;br /&gt;
                }&lt;br /&gt;
                return CommentInSection.super.prototype.getActionProcess.call(this, action);&lt;br /&gt;
            };&lt;br /&gt;
            if (!windowManager) {&lt;br /&gt;
                windowManager = new OO.ui.WindowManager();&lt;br /&gt;
                $(&amp;#039;body&amp;#039;).append(windowManager.$element);&lt;br /&gt;
            }&lt;br /&gt;
            if (!commentInSection) {&lt;br /&gt;
                commentInSection = new CommentInSection({&lt;br /&gt;
                    size: &amp;#039;medium&amp;#039;&lt;br /&gt;
                });&lt;br /&gt;
                windowManager.addWindows([commentInSection]);&lt;br /&gt;
            }&lt;br /&gt;
            windowManager.openWindow(commentInSection);&lt;br /&gt;
        },&lt;br /&gt;
        getQuery: function(section) {&lt;br /&gt;
            var href = $(section).parent().next().find(&amp;#039;a&amp;#039;).attr(&amp;#039;href&amp;#039;);&lt;br /&gt;
            var query = new mw.Uri(href).query;&lt;br /&gt;
            return query;&lt;br /&gt;
        },&lt;br /&gt;
        setPingUser: function(text) {&lt;br /&gt;
            var Plines = text.replace(&amp;#039;\r&amp;#039;, &amp;#039;&amp;#039;).split(&amp;#039;\n&amp;#039;);&lt;br /&gt;
            var Plastline = Plines[Plines.length - 1];&lt;br /&gt;
            var PingUsers = Plastline.match(/\[\[(?:بحث[_ ]کاربر|[Uu]ser[_ ][tT]alk)\:([^\]]+)\]\]/i)[1].split(&amp;#039;|&amp;#039;)[0]&lt;br /&gt;
            return &amp;#039;{{پینگ|&amp;#039; + PingUsers + &amp;#039;}}&amp;#039;&lt;br /&gt;
        },&lt;br /&gt;
        setIndentation: function(text, newText) {&lt;br /&gt;
            text = text.replace(&amp;#039;\r&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
            var lines = text.split(&amp;#039;\n&amp;#039;);&lt;br /&gt;
            var lastline = lines[lines.length - 1];&lt;br /&gt;
            var colons = lastline.match(&amp;#039;^:*&amp;#039;)[0].length;&lt;br /&gt;
            var indentation = &amp;#039;&amp;#039;;&lt;br /&gt;
            for (var i = 0; i &amp;lt; colons + 1; i++) {&lt;br /&gt;
                indentation += &amp;#039;:&amp;#039;;&lt;br /&gt;
            }&lt;br /&gt;
            text = text + &amp;#039;\n&amp;#039; + indentation + newText.trim();&lt;br /&gt;
            return text&lt;br /&gt;
        },&lt;br /&gt;
        doEdit: function(sectionId, action) {&lt;br /&gt;
            (new mw.Api()).get({&lt;br /&gt;
                format: &amp;#039;json&amp;#039;,&lt;br /&gt;
                action: &amp;#039;query&amp;#039;,&lt;br /&gt;
                titles: mw.config.get(&amp;quot;wgPageName&amp;quot;),&lt;br /&gt;
                rvsection: sectionId,&lt;br /&gt;
                prop: &amp;#039;revisions&amp;#039;,&lt;br /&gt;
                rvprop: &amp;#039;content&amp;#039;,&lt;br /&gt;
            }).then(function(data) {&lt;br /&gt;
                var page = data.query.pages[Object.keys(data.query.pages)[0]];&lt;br /&gt;
                var current = page.revisions[0][&amp;#039;*&amp;#039;];&lt;br /&gt;
                var header = current.substr(0, current.indexOf(&amp;#039;\n&amp;#039;));&lt;br /&gt;
                var content = current.substr(current.indexOf(&amp;#039;\n&amp;#039;) + 1);&lt;br /&gt;
                var newText = &amp;#039;&amp;#039;;&lt;br /&gt;
                var pingtxt = &amp;#039;&amp;#039;;&lt;br /&gt;
                var section_title = (current.match(/^(=+)[^=]*?(\1)$/m) || [&amp;#039;&amp;#039;])[0];&lt;br /&gt;
                section_title = section_title.replace(/\=/g, &amp;#039;&amp;#039;);&lt;br /&gt;
                var editSummary = &amp;#039;/&amp;#039; + &amp;#039;*&amp;#039; + section_title + &amp;#039;*&amp;#039; + &amp;#039;/ &amp;#039;;&lt;br /&gt;
                if (action == &amp;#039;archive&amp;#039;) {&lt;br /&gt;
                    editSummary += &amp;#039;جمع‌بندی: &amp;#039;;&lt;br /&gt;
                    editSummary += archiveSectionOptions.textSummary.getValue();&lt;br /&gt;
                    newText = header + &amp;#039;\n&amp;#039;;&lt;br /&gt;
                    // Per Special:Diff/18468612&lt;br /&gt;
                    if (mw.config.get(&amp;quot;wgPageName&amp;quot;) == &amp;quot;ویکی‌پدیا:درخواست_انتقال&amp;quot;) {&lt;br /&gt;
                        if (archiveSectionOptions.switchSuccess.getValue()) {&lt;br /&gt;
                            content = content.replace(/\{\{وضعیت\|?\}\}/, &amp;#039;{{وضعیت|شد}}&amp;#039;);&lt;br /&gt;
                        } else {&lt;br /&gt;
                            content = content.replace(/\{\{وضعیت\|?\}\}/, &amp;#039;{{وضعیت|نشد}}&amp;#039;);&lt;br /&gt;
                        }&lt;br /&gt;
                    }&lt;br /&gt;
                    newText += &amp;#039;{{بسته&amp;#039;;&lt;br /&gt;
                    if (archiveSectionOptions.switchSuccess.getValue()) {&lt;br /&gt;
                        newText += &amp;#039;}}\n&amp;#039;;&lt;br /&gt;
                    } else {&lt;br /&gt;
                        newText += &amp;#039;|ناموفق=بله}}\n&amp;#039;;&lt;br /&gt;
                    }&lt;br /&gt;
                    var summaryText = &amp;#039;&amp;#039;;&lt;br /&gt;
                    if (archiveSectionOptions.textSummary.getValue()) {&lt;br /&gt;
                        if (archiveSectionOptions.switchBold.getValue()) {&lt;br /&gt;
                            summaryText += &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;quot;;&lt;br /&gt;
                        }&lt;br /&gt;
                        summaryText += archiveSectionOptions.textSummary.getValue();&lt;br /&gt;
                        if (archiveSectionOptions.switchBold.getValue()) {&lt;br /&gt;
                            summaryText += &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;quot;;&lt;br /&gt;
                        }&lt;br /&gt;
                        summaryText += &amp;#039; ~~&amp;#039; + &amp;#039;~~\n&amp;#039;;&lt;br /&gt;
                    }&lt;br /&gt;
                    if (archiveSectionOptions.switchTop.getValue()) {&lt;br /&gt;
                        if (archiveSectionOptions.textSummary.getValue()) {&lt;br /&gt;
                            newText += &amp;#039;:&amp;#039; + summaryText;&lt;br /&gt;
                        }&lt;br /&gt;
                        newText += content;&lt;br /&gt;
                        if (newText.indexOf(&amp;#039;{{بسته&amp;#039;) &amp;gt; -1) newText += &amp;#039;\n{{پایان بسته}}&amp;#039;;&lt;br /&gt;
                    } else {&lt;br /&gt;
                        if (archiveSectionOptions.textSummary.getValue()) {&lt;br /&gt;
                            newText = archiveSectionOptions.setIndentation(newText + content, summaryText);&lt;br /&gt;
                        } else {&lt;br /&gt;
                            newText = newText + content;&lt;br /&gt;
                        }&lt;br /&gt;
                        if (newText.indexOf(&amp;#039;{{بسته&amp;#039;) &amp;gt; -1) newText += &amp;#039;\n{{پایان بسته}}&amp;#039;;&lt;br /&gt;
                    }&lt;br /&gt;
                    return (new mw.Api()).post({&lt;br /&gt;
                        format: &amp;#039;json&amp;#039;,&lt;br /&gt;
                        action: &amp;#039;edit&amp;#039;,&lt;br /&gt;
                        title: mw.config.get(&amp;quot;wgPageName&amp;quot;),&lt;br /&gt;
                        section: sectionId,&lt;br /&gt;
                        summary: editSummary,&lt;br /&gt;
                        text: newText,&lt;br /&gt;
                        token: mw.user.tokens.get(&amp;#039;editToken&amp;#039;)&lt;br /&gt;
                    });&lt;br /&gt;
                } else {&lt;br /&gt;
                    // editSummary += archiveSectionOptions.textComment.getValue();&lt;br /&gt;
                    var currentTxt = current.replace(&amp;#039;\r&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
                    var prefix = &amp;#039;&amp;#039;;&lt;br /&gt;
                    if (currentTxt.search(&amp;#039;\n*&amp;#039;) &amp;gt; 0) {&lt;br /&gt;
                        prefix = &amp;#039;* &amp;#039;;&lt;br /&gt;
                    } else if (currentTxt.search(&amp;#039;\n#&amp;#039;) &amp;gt; 0) {&lt;br /&gt;
                        prefix = &amp;#039;# &amp;#039;;&lt;br /&gt;
                    } else {&lt;br /&gt;
                        prefix = &amp;#039;* &amp;#039;;&lt;br /&gt;
                    }&lt;br /&gt;
                    if (archiveSectionOptions.pinguser.getValue()) {&lt;br /&gt;
                        var Pingtxt = archiveSectionOptions.setPingUser(currentTxt)&lt;br /&gt;
                    } else {&lt;br /&gt;
                        var Pingtxt = &amp;#039;&amp;#039;&lt;br /&gt;
                    }&lt;br /&gt;
                    if (archiveSectionOptions.radioDone.isSelected()) {&lt;br /&gt;
                        newText = Pingtxt + &amp;#039;{{شد}} &amp;#039;;&lt;br /&gt;
                        editSummary += &amp;#039;انجام شد&amp;#039;;&lt;br /&gt;
                    } else if (archiveSectionOptions.radioComment.isSelected()) {&lt;br /&gt;
                        newText = Pingtxt + &amp;#039;&amp;#039;;&lt;br /&gt;
                        editSummary += &amp;#039;پیام&amp;#039;;&lt;br /&gt;
                    } else if (archiveSectionOptions.radioReject.isSelected()) {&lt;br /&gt;
                        newText = Pingtxt + &amp;#039;{{نشد}} &amp;#039;;&lt;br /&gt;
                        editSummary += &amp;#039;انجام نشد&amp;#039;;&lt;br /&gt;
                    } else if (archiveSectionOptions.radioKeep.isSelected()) {&lt;br /&gt;
                        newText = prefix + Pingtxt + &amp;#039; {{بماند}} &amp;#039;;&lt;br /&gt;
                        editSummary += &amp;#039;ثبت نظر بماند&amp;#039;;&lt;br /&gt;
                    } else if (archiveSectionOptions.radioDelete.isSelected()) {&lt;br /&gt;
                        newText = prefix + Pingtxt + &amp;#039; {{حذف}} &amp;#039;;&lt;br /&gt;
                        editSummary += &amp;#039;ثبت نظر حذف شود&amp;#039;;&lt;br /&gt;
                    } else if (archiveSectionOptions.radioSupport.isSelected()) {&lt;br /&gt;
                        newText = prefix + Pingtxt + &amp;#039; {{موافق}} &amp;#039;;&lt;br /&gt;
                        editSummary += &amp;#039;ثبت نظر موافق&amp;#039;;&lt;br /&gt;
                    } else {&lt;br /&gt;
                        newText = prefix + Pingtxt + &amp;#039; {{مخالف}} &amp;#039;;&lt;br /&gt;
                        editSummary += &amp;#039;ثبت نظر مخالف&amp;#039;;&lt;br /&gt;
                    }&lt;br /&gt;
                    newText += archiveSectionOptions.textComment.getValue();&lt;br /&gt;
                    newText += &amp;#039; ~~&amp;#039; + &amp;#039;~~&amp;#039;;&lt;br /&gt;
                    if (archiveSectionOptions.radioSupport.isSelected() ||&lt;br /&gt;
                        archiveSectionOptions.radioOppose.isSelected() ||&lt;br /&gt;
                        archiveSectionOptions.radioDelete.isSelected() ||&lt;br /&gt;
                        archiveSectionOptions.radioKeep.isSelected()) {&lt;br /&gt;
                        newText = current + &amp;#039;\n&amp;#039; + newText;&lt;br /&gt;
                    } else {&lt;br /&gt;
                        newText = archiveSectionOptions.setIndentation(current, newText);&lt;br /&gt;
                    }&lt;br /&gt;
&lt;br /&gt;
                    return (new mw.Api()).post({&lt;br /&gt;
                        format: &amp;#039;json&amp;#039;,&lt;br /&gt;
                        action: &amp;#039;edit&amp;#039;,&lt;br /&gt;
                        title: mw.config.get(&amp;quot;wgPageName&amp;quot;),&lt;br /&gt;
                        section: sectionId,&lt;br /&gt;
                        summary: editSummary,&lt;br /&gt;
                        text: newText,&lt;br /&gt;
                        token: mw.user.tokens.get(&amp;#039;editToken&amp;#039;)&lt;br /&gt;
                    });&lt;br /&gt;
                }&lt;br /&gt;
            }).then(function() {&lt;br /&gt;
                if (action == &amp;#039;archive&amp;#039;) {&lt;br /&gt;
                    mw.notify(&amp;#039;در حال ثبت جمع‌بندی شما ...&amp;#039;);&lt;br /&gt;
                } else {&lt;br /&gt;
                    mw.notify(&amp;#039;در حال ثبت نظر شما ...&amp;#039;);&lt;br /&gt;
                }&lt;br /&gt;
                location.hash = $(&amp;#039;.mw-headline&amp;#039;)[sectionId - 1].id;&lt;br /&gt;
                location.reload(true);&lt;br /&gt;
            }, function(error) {&lt;br /&gt;
                mw.notify(&amp;#039;ثبت نظر یا جمع‌بندی ناموفق بود: &amp;#039; + error, {&lt;br /&gt;
                    type: &amp;#039;error&amp;#039;&lt;br /&gt;
                });&lt;br /&gt;
            })&lt;br /&gt;
        },&lt;br /&gt;
        currentSectionId: -1,&lt;br /&gt;
    };&lt;br /&gt;
    if (mw.config.get(&amp;#039;wgNamespaceNumber&amp;#039;) &amp;gt;= 0) {&lt;br /&gt;
        $(archiveSectionOptions.install);&lt;br /&gt;
    }&lt;br /&gt;
})(jQuery, mediaWiki);&lt;/div&gt;</summary>
		<author><name>Rootadmin</name></author>
	</entry>
</feed>