User:Frdp/common.js: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
'#pt-preferences' |
'#pt-preferences' |
||
); |
); |
||
/* |
|||
if ( mw.config.get( 'wgPageContentLanguage' ) === 'en') { |
if ( mw.config.get( 'wgPageContentLanguage' ) === 'en') { |
||
} else { |
//} else { |
||
mw.util.addPortletLink( |
mw.util.addPortletLink( |
||
'p-personal', |
'p-personal', |
||
'http://en.wikipedia.com/', |
|||
mw.util.getUrl('Special:NewPagesFeed'), |
|||
'GoToEN', |
'GoToEN', |
||
'pt-gotoenglishwiki', |
'pt-gotoenglishwiki', |
||
Line 32: | Line 31: | ||
); |
); |
||
} |
} |
||
// } |
|||
} |
|||
}); |
}); |
Revision as of 09:55, 12 October 2022
/* 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'
);
}
// }
});