MediaWiki:Gadget-WhatIsThat.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
![]() |
This user script seems to have a documentation page at MediaWiki:Gadget-WhatIsThat. |
/*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");
});
});
}