User:Менделеевец99/common.js

$('', {	id: 'pt-subpages',	html: $('', { href: 'https://en.wikipedia.org/wiki/Special:PrefixIndex/User:' + mw.config.get('wgUserName'), text: 'Subpages', }), }).insertBefore($('#pt-userpage')); $('', {	id: 'pt-export',	html: $('', { href: 'https://en.wikipedia.org/wiki/Special:Export', text: 'Export', }), }).insertBefore($('#pt-subpages')); $('', {	id: 'pt-Gagjets',	html: $('', { href: ' https://en.wikipedia.org/wiki/Special:Gadgets', text: 'G', }), }).insertBefore($('#pt-subpages')); var CR = String.fromCharCode(13); var LF = String.fromCharCode(10); mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Evad37/ToDoLister.js&action=raw&ctype=text/javascript"); mw.loader.load("//https://meta.wikimedia.org/wiki/User:Менделеевец99/global.js&action=raw&ctype=text/javascript"); mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Менделеевец99/addForceSummary.js&action=raw&ctype=text/javascript");//alert('Execution of page' + LF + 'wgPageName = ' + mw.config.get('wgPageName') + LF //+ 'wgNamespaceNumber = ' + mw.config.get('wgNamespaceNumber') );

function insertTags( tagOpen, tagClose, sampleText ) { // Used to determine where to insert tags $currentFocused = $( '#wpTextbox1' ); if ( $currentFocused && $currentFocused.length ) { $currentFocused.textSelection(				'encapsulateSelection', {					pre: tagOpen,					peri: sampleText,					post: tagClose				}			); }	} function insertSummary(Text) { var wpSummary = document.getElementById('wpSummary'); if (wpSummary) { var Sm = wpSummary.value; if (Sm.length > 0) Sm = Sm + ', '; wpSummary.value = Sm + Text;} } $(document).ready(function{

//Вставка дополнительной панели вставки символов $(' ').append(	'En: * [ ]  ' +  ' ' +   '&lt;!-- --> ' +   'Templates: Catmain ' +   'lang-ru ' +   '<a href=\'javascript:insertTags("{\{Infobox scientist","}}" + CR,"");javascript:insertSummary("Infobox scientist")\'>Infobox scientist</a> ' +   'Sections: <a href=\'javascript:insertTags(CR + "== See also ==" + CR,"","")\'>See also</a> ' +   '<a href=\'javascript:insertTags(CR + "== Biography ==" + CR,"","")\'>Biography</a> ' +   '<a href=\'javascript:insertTags(CR + "== References ==" + CR + "" + CR,"","")\'>References</a> ' + '<a href=\'javascript:insertTags(CR + "== Literature ==" + CR,"","")\'>Literature</a> ' + '<a href=\'javascript:insertTags(CR + "== External links ==" + CR,"","")\'>External links</a> ' + '<a href=\'javascript:insertTags("{\{Interlanguage link|EnglishArticleTitle|ru|","RussianArticleTitle}}","");javascript:insertSummary("Interlanguage link")\'>Inlang link</a> ' + '<a href=\'javascript:insertTags("[\[D. Mendeleev University of Chemical Technology of Russia|MCTI after D. Mendeleev]]","","")\'>MCTI</a> ' + '<a href=\'javascript:insertTags("[\[D. Mendeleev University of Chemical Technology of Russia|Moscow D. Mendeleev University of Chemical Technology]]","","")\'>MUCTR</a> ' + '<a href=\'javascript:insertTags("-- \~\~\~\~","","")\'>sign</a>').insertBefore('.mw-editTools');  });