ميدياويكي:Gadget-LeftLeaningItalics.js

من كوبتيكبيديا
اذهب إلى التنقل اذهب إلى البحث
لم تعد النسخة القابلة للطباعة مدعومة وقد تحتوي على أخطاء في العرض. يرجى تحديث علامات متصفحك المرجعية واستخدام وظيفة الطباعة الافتراضية في متصفحك بدلا منها.

ملاحظة: بعد النشر، أنت قد تحتاج إلى إفراغ الكاش الخاص بمتصفحك لرؤية التغييرات.

  • فايرفوكس / سافاري: أمسك Shift أثناء ضغط Reload، أو اضغط على إما Ctrl-F5 أو Ctrl-R (⌘-R على ماك)
  • جوجل كروم: اضغط Ctrl-Shift-R (⌘-Shift-R على ماك)
  • إنترنت إكسبلورر/إيدج: أمسك Ctrl أثناء ضغط Refresh، أو اضغط Ctrl-F5
  • أوبرا: اضغط Ctrl-F5.
//TODO: fix block display

//إمالة النص اإلى اليسار
mw.util.addCSS('i, em, .comment, /*.co1,*/ .co2, /*.coMULTI,*/ .special-label, .special-query, .allpagesredirect, .redirect-in-category { font-style: normal !important; position: relative; padding-right: 5px; display: inline-block; -webkit-transform: skew(12deg); -moz-transform: skew(12deg); -ms-transform: skew(12deg); -o-transform: skew(12deg); transform: skew(12deg); }');

/*
//إضافة زر للخط المائل إلى اليمين
(function (mw, $, undefined) {
	var customizeBetaToolbar = function () {
		$('#wpTextbox1').wikiEditor('addToToolbar', {
			'section': 'main',
			'group': 'format',
			'tools': {
				'rightleaning': {
					label: 'مائل إلى اليمين',
					type: 'button',
					icon: '//upload.wikimedia.org/wikipedia/commons/2/22/Toolbaricon_italic_a.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{إ|",
							peri: "مائل إلى اليمين",
							post: "}}",
						}
					}
				}
			}
		});
	};
	if ($.inArray(mw.config.get('wgAction'), ['edit', 'submit']) !== -1) {
		mw.loader.using('user.options', function () {
			if (mw.user.options.get('usebetatoolbar')) {
				mw.loader.using('ext.wikiEditor', function () {
					$(customizeBetaToolbar);
				});
			} else {
				$(customizeOrigToolbar);
			}
		});
	}
})(mediaWiki, jQuery);
 
//تغيير إيقونة زر النص الغليظ والنص المائل
$('#wpTextbox1').on('wikiEditor-toolbar-buildSection-main', function (event, section) {
	if (!('ar' in section.groups.format.tools.bold.icon)) {
		section.groups.format.tools.bold.icon'ar'] = 'format-bold-F.png';
		section.groups.format.tools.bold.offset['ar'] = [2, -214];
	}
	if (!('ar' in section.groups.format.tools.italic.icon)) {
		section.groups.format.tools.italic.icon['ar'] = '//upload.wikimedia.org/wikipedia/commons/3/32/Toolbaricon_italic_L.png';
		section.groups.format.tools.italic.offset['ar'] = [2, -214];
	}
});
*/