User:Gadget850/common.js

// Add custom CharInsert entries window.charinsertCustom = { 'Insert2': ' – — ° ′ ″ ≈ ≠ ≤ ≥ ± − × ÷ ← → · §     ', 'CSS': ' update.obsolete.HTML style="+" margin:.1em.auto; text-align:.center; margin-left:.auto; margin-right:.auto; ' };

window.popupPreviewKillTemplates = false; window.popupPreviewRawTemplates = false;

// d:User:Yair rand/checksitelinks.js mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript");

importScript('User:Frietjes/findargdups.js'); // User:Frietjes/findargdups

importScript('Wikipedia:AutoEd/complete.js'); importScript('Wikipedia:AutoEd/fullwidth.js');

importScript("User:PleaseStand/segregate-refs.js"); var SegregateRefsJsAllowConversion = true;

importScript('User:Anomie/previewtemplatelastmod.js'); // Linkback: User:Anomie/previewtemplatelastmod.js importScript('User:Anomie/linkclassifier.js'); // Linkback: User:Anomie/linkclassifier.js importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: User:Anomie/linkclassifier.css

importScript('User:Gadget850/HarvErrors.js'); importScript('MediaWiki:ListrefErrors.js'); importScript('User:Gadget850/RefErrors.js'); importScript('User:Gadget850/EquationRefErrors.js');

importScript('User:Ais523/bracketmatch.js'); // Linkback: User:Ais523/bracketmatch.js

importScript('User:Equazcion/SidebarTranslate.js'); //User:Equazcion/SidebarTranslate var sidebarTranslateGoogleLink = "(t)";importScript('User:Manishearth/sidebartranslinks.js'); //User:Manishearth/sidebartranslinks.js

importScript('User:Gadget850/Advisor.js');

importScript('User:Ohconfucius/script/formatgeneral.js'); //User:Ohconfucius/script/formatgeneral.js importScript('User:Ohconfucius/script/MOSNUM dates.js'); //User:Ohconfucius/script/MOSNUM dates.js

mw.util.addPortletLink ('p-tb', mw.config.get('wgServer')+mw.config.get('wgArticlePath').replace("$1", "Special:PrefixIndex/"+mw.config.get('wgPageName')+"/"), 'Subpages'); mw.util.addPortletLink ('p-tb', '/wiki/Special:Preferences#mw-prefsection-rendering', 'My CSS/JS'); mw.util.addPortletLink ('p-tb', '/wiki/User:Gadget850/bsi', 'My image toolbox'); mw.util.addPortletLink ('p-tb', '/wiki/User:Gadget850/Tools', 'My general toolbox'); mw.util.addPortletLink ('p-tb', '/wiki/User:Gadget850/FAQ', 'My FAQ'); mw.util.addPortletLink ('p-tb', '/wiki/User:Gadget850/Reference_markup_snippets', 'My reference snippets'); mw.util.addPortletLink ('p-tb', '/wiki/Special:PrefixIndex/User:Gadget850', 'My subpages'); mw.util.addPortletLink ('p-tb', '/wiki/Help:Citation Style 1/snippets', 'Cite snippets'); mw.util.addPortletLink ('p-tb', 'http://toolserver.org/~dispenser/cgi-bin/webchecklinks.py/' + wgPageName  + '?client=script&citeweb=on&overwrite=&limit=20&lang=' + wgContentLanguage, 'Checklinks');

$(function { var xmlurl = 'http://validator.w3.org/check?uri=' + encodeURIComponent('http:' + mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=-&curid=' + wgArticleId + '&uselang=' + wgContentLanguage) + '&charset=%28detect+automatically%29&doctype=Inline&group=0';  mw.util.addPortletLink ('p-tb',xmlurl,'W3C HTML Validator');  var cssurl = 'http://jigsaw.w3.org/css-validator/validator?uri=' + encodeURIComponent('http:' + mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=-&curid=' + wgArticleId + '&uselang=' + wgContentLanguage);  mw.util.addPortletLink ('p-tb',cssurl,'W3C CSS 2.1'); });

if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) { $(document).ready( function {		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'code nowiki': { label: 'CodeNowiki', type: 'button', icon: 'https://upload.wikimedia.org/wikipedia/commons/7/73/Button_code_nowiki.png', action: { type: 'encapsulate', options: { pre: " " }					}				}			}		} );		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'poem': { label: 'Poem', type: 'button', icon: 'https://upload.wikimedia.org/wikipedia/commons/c/cd/Button_poem.png', action: { type: 'encapsulate', options: { pre: " ", post: " " }					}				}			}		} );		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'comment': { label: 'HTML comment', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/e/e7/Toolbaricon_hidden.png', action: { type: 'encapsulate', options: { pre: "" }					}				}			}		} );		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'blockquote': { label: 'Blockquote', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/4/4e/Toolbaricon_quote.png', action: { type: 'encapsulate', options: { pre: " ", post: " " }					}				}			}		} );		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'transclude': { label: 'Transclude', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/2/20/Toolbaricon_transclude.png', action: { type: 'encapsulate', options: { pre: "" }					}				}			}		} );	} ); }