MediaWiki:Gadget-mySandbox.js

Նշում՝ Պահելէ ետք կրնայ ըլլալ որ պէտք ունենաք մաքրելու դիտարկիչին պաշարը (cache) փոփոխութիւնները կարենալ տեսնելու համար։

  • Firefox / Safari: Սեղմած պահել Shiftը մինչ կը սեղմէք Reload, կամ ալ սեղմել Ctrl-F5 կամ Ctrl-R (⌘-R Macի վրայ)
  • Google Chrome: Սեղմել Ctrl-Shift-R (⌘-Shift-R Macի վրայ)
  • Internet Explorer: Սեղմած պահելCtrl մինչ կը սեղմէք Refresh, կամ ալ սեղմել Ctrl-F5
  • Opera: Երթալ Menu → Settings (Opera → Preferences Macի վրայ) եւ ապա Privacy & security → մաքրել թերթատման տեղեկութիւնները → Պաշարի մէջ դրուած նկարներ եւ նիշքեր.
/*  _____________________________________________________________________________
 * |                                                                             |
 * |                    === WARNING: GLOBAL GADGET FILE ===                      |
 * |                  Changes to this page affect many users.                    |
 * | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
 * |_____________________________________________________________________________|
 */


/**
 * Add a "My sandbox" link to the personal portlet menu.
 * Dependencies: mediawiki.util, mediawiki.Title, mediawiki.Uri
 *
 * @source mediawiki.org/wiki/Snippets/MySandbox
 * @version 2
 */
( function ( mw, $ ) {

	$( document ).ready( function () {
		var conf, title, url;

		// Costomize/Translate this to your needs
		conf = {
			subpageName: 'Սեւագրութիւն',
			portletLabel: 'Սեւագրութիւն',
			portletTooltip: 'Ձեր սեւագրութեան էջը (Սեւագրութիւնը)',
			editintroPagename: 'Կաղապար:Մասնակիցի Սեւագրութիւն',
			preloadPagename: 'Կաղապար:Մասնակիցի Սեւագրութիւն/նախաբեռնել'
		};
		// Don't alter the code below

		// Use Special:MyPage (as opposed to mw.user.getName()) so that it
		// works for logged-out users as well.
		title = new mw.Title( 'Special:MyPage/' + conf.subpageName );

		url = new mw.Uri( title.getUrl() );
		url.extend({
			action: 'edit',
			redlink: 1,
			editintro: new mw.Title( conf.editintroPagename ),
			preload: new mw.Title( conf.preloadPagename )
		});

		mw.util.addPortletLink(
			'p-personal',
			url,
			conf.portletLabel,
			'pt-mysandbox',
			conf.portletTooltip,
			null,
			'#pt-preferences'
		);
	});
}( mediaWiki, jQuery ) );

    // require_once "$IP/extensions/SandboxLink/SandboxLink.php";