User:Otokoume/common.js

var title = mw.config.get( 'wgPageName' ); var namespace = mw.config.get( 'wgNamespaceNumber' );

if ( namespace % 2 == 0 ) { mw.util.addPortletLink (		'p-Minecraft_Wiki',		'//minecraft-ja.gamepedia.com/' + title,		'Japanese Page',		'',		'Go to the japanese page equivalent to the current page.'	); }