Jump to content

User:DannyS712 test/template.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by DannyS712 test (talk | contribs) at 02:16, 21 March 2019 (more customizing). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//<nowiki<includeonly />>
$(function (){
var {{{1}}}_config = {
	name: '[[User:DannyS712/{{{2}}}|{{{2}}}.js]]',
	version: 1.0,
	debug: true
};
var {{{1}}}_summary = '{{{summary|SUMMARY}}} with ' + {{{1}}}_config.name + ' (version ' + {{{1}}}_config.version + ')';
var scriptUrl = mw.config.get( 'wgScriptPath' ) + '/api.php';

mw.loader.using( 'mediawiki.util', function () {
    $(document).ready( function () { 
    	mw.util.addPortletLink ( 'p-cactions', 'javascript:void(0)', '{{{2}}}', '{{{id}}}', '{{{tooltip|TOOLTIP}}}');
    	$('#{{{id}}}').on('click', function() {
        	{{{3}}}();
    	} );
    } );
} );
function {{{3}}}(){
}
});
//</nowiki>