Jump to content

User:Frdp/common.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Frdp (talk | contribs) at 09:55, 12 October 2022. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* This script adds a "Page Curation" link to the top toolbar that points to Special:NewPagesFeed.
   It is primarily designed to assist new page reviewers. Page Curation is a feature-rich purpose-built
   system to review new pages. Be sure to have read and fully understood the instructions at New Pages Patrol.
   To use the script, add the following line to Special:MyPage/common.js:
 
importScript('User:Lourdes/PageCuration.js'); // Linkback: [[User:Lourdes/PageCuration.js]]

*/
 
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
	  mw.util.addPortletLink(
	    'p-personal',
	    mw.util.getUrl('Special:NewPagesFeed'),
	    'Page Curation',
	    'pt-pagecuration',
	    'View the new pages feed',
	    null,
	    '#pt-preferences'
	  );
	  if ( mw.config.get( 'wgPageContentLanguage' ) === 'en') {
	  	
	  //} else {
	  	mw.util.addPortletLink(
		    'p-personal',
		    'http://en.wikipedia.com/',
		    'GoToEN',
		    'pt-gotoenglishwiki',
		    'Go To English WP',
		    null,
		    '#pt-preferences'
		  );
	  }
//  }

});