میڈیا وکی:Gadget-extra-toolbar-buttons-core.js
یاددہانی: محفوظ کرݨ دے بعد انہاں تبدیلیاں کوں ݙیکھݨ کیتے تہاکوں آپݨے براؤزر دا کیشی (cache) صاف کرݨاں ہوسی۔
- فائرفاکس/ سفاری: ڄݙݨ Reload تے کلک کرو تاں Shift دبا تے رکھو، یا Ctrl-F5 یا Ctrl-R دباؤ (Mac تے R-⌘)
- گوگل کروم: Ctrl-Shift-R دباؤ (Mac تے Shift-R-⌘)
- انٹرنیٹ ایکسپلورر: ڄݙݨ Refresh تے کلک کرو تاں Ctrl یا Ctrl-F5 دباؤ
- اوپیرا: Ctrl-F5 دباؤ۔
/*global mw */
/*jshint strict: false, browser: true, jquery: true */
/**
* Extra toolbar options
*
* Description: Adds extra buttons to the old (non-enhanced) editing toolbar.
*
* Maintainers: [[User:محمد شعیب]]
*/
function addExtraButtons () {
mw.toolbar.addButtons(
{
imageId: 'button-quote',
imageFile: '//upload.wikimedia.org/wikipedia/commons/0/07/Quotations_Marks.jpg',
speedTip: 'اقتباس',
tagOpen: '{{اقتباس|',
tagClose: '}}',
sampleText: 'یہاں اقتباس درج کریں'
},
{
imageId: 'button-insert-sheyr',
imageFile: '//upload.wikimedia.org/wikipedia/commons/0/07/Quotations_Marks.jpg',
speedTip: 'شعر درج کریں',
tagOpen: '{{شعر آغاز}}{{ب|',
tagClose: '}}{{شعر اختتام}}',
sampleText: 'یہاں شعر درج کریں'
},
{
imageId: 'button-insert-reference',
imageFile: '//upload.wikimedia.org/wikipedia/commons/0/07/Quotations_Marks.jpg',
speedTip: 'حوالہ جات کا سانچہ درج کریں',
tagOpen: '== حوالہ جات ==',
tagClose: '{{حوالہ جات}}',
sampleText: ''
}
);
}
mw.loader.using( 'user.options', function () {
// This can be the string "0" if the user disabled the preference ([[bugzilla:52542#c3]])
if ( mw.user.options.get( 'usebetatoolbar' ) != 1 && mw.user.options.get( 'showtoolbar' ) == 1 ) {
$.when(
mw.loader.using( 'mediawiki.toolbar' ),
$.ready
).then( addExtraButtons );
}
} );