Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/**
 * Adds a tab to link to the page with the same title on the English Wiktionary
 * @author Grunny (and adapted by Peterdownunder
 */
$( function () {
	var enwikiUrlPath = 'http://en.wiktionary.org/wiki/';
	if( mw.config.get( 'wgServer' ).indexOf( 'https://' ) === 0 ) {
		enwikiUrlPath = mw.config.get( 'wgServer' ) + '/wiktionary/en/wiki/';
	}
	if( mw.config.get( 'skin' ) === 'vector' ) {
		//Could just use p-views in the addPortletLink for vector, but it looks weird after the watch star
		$( '#p-views ul li#ca-history' ).after( '<li id="ca-enwiki-link"><span><a href="' + enwikiUrlPath + encodeURIComponent( mw.config.get( 'wgPageName' ) )
			+ '" title="View same page on the English Wiktionary">EnWikt</a></span></li>' );
	} else {
		mw.util.addPortletLink( 'p-cactions', enwikiUrlPath + encodeURIComponent( mw.config.get( 'wgPageName' ) ),
			"enwiki", "ca-enwiki-link", "View same page on the English Wiktionary" );
	}
} );


/**
 * Adds a tab to link to the page with the same title on the Simple English Wikipedia
 * @author Grunny (and adapted by Peterdownunder
 */
$( function () {
	var enwikiUrlPath = 'http://simple.wikipedia.org/wiki/';
	if( mw.config.get( 'wgServer' ).indexOf( 'https://' ) === 0 ) {
		enwikiUrlPath = mw.config.get( 'wgServer' ) + '/wikipedia/simple/wiki/';
	}
	if( mw.config.get( 'skin' ) === 'vector' ) {
		//Could just use p-views in the addPortletLink for vector, but it looks weird after the watch star
		$( '#p-views ul li#ca-history' ).after( '<li id="ca-enwiki-link"><span><a href="' + enwikiUrlPath + encodeURIComponent( mw.config.get( 'wgPageName' ) )
			+ '" title="View same page on the Simple English Wikipedia">SimpleWiki</a></span></li>' );
	} else {
		mw.util.addPortletLink( 'p-cactions', enwikiUrlPath + encodeURIComponent( mw.config.get( 'wgPageName' ) ),
			"enwiki", "ca-enwiki-link", "View same page on the Simple English Wikipedia" );
	}
} );