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

من كوبتيكبيديا
مراجعة ٠٠:٥٠، ١٩ مارس ٢٠٢١ بواسطة Gerges (نقاش | مساهمات) (مراجعة واحدة)
(فرق) → مراجعة أقدم | المراجعة الحالية (فرق) | مراجعة أحدث ← (فرق)
اذهب إلى التنقل اذهب إلى البحث

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

  • فايرفوكس / سافاري: أمسك Shift أثناء ضغط Reload، أو اضغط على إما Ctrl-F5 أو Ctrl-R (⌘-R على ماك)
  • جوجل كروم: اضغط Ctrl-Shift-R (⌘-Shift-R على ماك)
  • إنترنت إكسبلورر: أمسك Ctrl أثناء ضغط Refresh، أو اضغط Ctrl-F5
  • أوبرا: اذهب إلى Menu → Settings (Opera → Preferences على ماك) ثم إلى Privacy & security → Clear browsing data → Cached images and files.
//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];
	}
});
*/