User:Spratek11/common.js

importScript( 'User:Kephir/gadgets/table-editor' ); // Backlink: User:Kephir/gadgets/table-editor; // Qwikify $(document).ready( function {	// Make sure the utilities module is loaded (will only load if not already)	mw.loader.using( 'mediawiki.util', function  { // Wait for the page to be parsed $(document).ready( function { 	        //see below "Portlets" subsection	        var link = mw.util.addPortletLink( 'p-cactions', '#', 'Wikify_kuk', 'ca-wikify', 'Mark for wikification'); 	        $( link ).click( function ( event ) { event.preventDefault; doQwikify; } );	   } );	} ); } ); function doQwikify { document.editform.wpTextbox1.value = "{" + "{wikify}}\n\n" + document.editform.wpTextbox1.value; document.editform.submit; } //Taginfo

$(document).ready( function {	// Make sure the utilities module is loaded (will only load if not already)	mw.loader.using( 'mediawiki.util', function  { // Wait for the page to be parsed $(document).ready( function { 	        //see below "Portlets" subsection	        var link = mw.util.addPortletLink( 'p-cactions', '#', 'taginfo', 'ca-wikify', 'Mark for wikification'); 	        $( link ).click( function ( event ) { event.preventDefault; doTaginfo; } );	   } );	} ); } ); function doTaginfo { mw.loader.load( 'https://taginfo.openstreetmap.org/js/taglists.js'); }