میڈیاویکی:Gadget-extra-toolbar-buttons-core.js
یاددہانی: محفوظ کرنے کے بعد تازہ ترین تبدیلیوں کو دیکھنے کے لیے آپ کو اپنے براؤزر کا کیش صاف کرنا ہوگا۔
- فائرفاکس/ سفاری: جب Reload پر کلک کریں تو Shift دبا کر رکھیں، یا Ctrl-F5 یا Ctrl-R دبائیں (Mac پر R- )
- گوگل کروم: Ctrl-Shift-R دبائیں (Mac پر Shift-R-⌘)
- انٹرنیٹ ایکسپلورر: جب Refresh پر کلک کریں تو Ctrl یا Ctrl-F5 دبائیں
- اوپیرا: Tools → Preferences میں جائیں اور کیش صاف کریں
اس اسکرپٹ کی دستاویزی تفصیلات میڈیاویکی:Gadget-extra-toolbar-buttons-core پر درج کی جا سکتی ہیں۔ |
/*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 );
}
} );