User:Matěj Grabovský/vector.js

/* Add WP:Reflinks launcher in the toolbox on left */ mw.util.addPortletLink(	'p-tb',    // toolbox portlet	'https://tools.wmflabs.org/fengtools/reflinks/result.php?page=' + mw.config.get('wgPageName'),	'Reflinks'  // link label );

/* Split TOC into columns (max. 4) if it doesn't fit vertically into 600px */ var $toc = $('#toc'); if($toc.length) { $toc.find('h2').text('Table of Contents'); if($toc.height > 600) { var columnCount = Math.min(Math.ceil($toc.height / 500), 4); $toc.find('> ul').css('column-count', columnCount); } }

/* Links to the Manual of Style in the sidebar */ mw.util.addPortletLink(	'p-interaction',	'https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style',	'Manual of Style',	'n-style',	'Wikipedia:Manual of Style',	null,	$('#n-aboutsite')); mw.util.addPortletLink(	'p-interaction',	'https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Layout',	'MoS/Layout',	'n-layout',	'Wikipedia:Manual of Style/Layout',	null,	$('#n-aboutsite')); /** * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor. * @see https://meta.wikimedia.org/wiki/TemplateScript * @update-token */ mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');