MediaWiki:Gadget-WhatIsThat.js
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.
/*global mw, jQuery*/
/*jshint curly:false, strict:false */
if (mw.config.get('wgNamespaceNumber') === 6) {
jQuery(document).ready(function () {
var portlet = mw.util.addPortletLink('p-tb', '#', "WhatIsThat?", 'tb-whatisthat', 'Add new language descriptions');
jQuery(portlet).click(function(e) {
e.preventDefault();
var OpenWindow = window.open("https://multidesc.toolforge.org/index.php?raw&image=" + encodeURIComponent(mw.config.get('wgPageName')), "whatisthat-results", "height=550, width=800,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,status=no");
});
});
}