MediaWiki:Gadget-refToolbar.js

Catatan: Sasudah manabikkan, Sanak mungkin harus meminteh singgahan paramban Sanak untuak maliek parubahan.

  • Firefox / Safari: Tahan Shift sambia mangklik Reload, atau takan Ctrl-F5 atau Ctrl-R (⌘-R di Mac)
  • Google Chrome: Takan Ctrl-Shift-R (⌘-Shift-R di Mac)
  • Internet Explorer/Edge: Tahan Ctrl sambia mangklik Refresh, atau takan Ctrl-F5
  • Opera: Pai ka Menu → Settings (Opera → Preferences di Mac) lalu ka Privacy & security → Clear browsing data → Cached images and files.
/**
 * Lihat panduan pengalihan di [[:en:Wikipedia:RefToolbar/2.0#Porting_to_another_wiki]]
 */
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 && window.refToolbarInstalled === undefined ) {
        if ( mw.user.options.get( 'usebetatoolbar' ) && mw.user.options.get( 'usebetatoolbar-cgd' ) ) {
                $.getScript( '//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarBase.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400', function() {
                        // Enhanced editing toolbar is on with dialogs. Load standard refToolbar.
                        mw.loader.using( 'ext.wikiEditor', function () {
                                mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbar.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400' );
                        });
                });
        } else if (mw.user.options.get( 'usebetatoolbar' ) ) {
                // Dialogs are off. Load refToolbar 2.0 without dialogs.
                mw.loader.using( 'ext.wikiEditor', function () {
                        mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarNoDialogs.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400' );
                });
        } else {
                // Enhanced editing toolbar is off. Load legacy refToolbar 1.0.
                mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarLegacy.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400' );
        }
        //Muatkan pesanan-pesanan setempat.
        importScript('MediaWiki:RefToolbarMessages-id.js');
        window.refToolbarInstalled = true;
}