MediaWiki:Globals.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/**
* Javascript on this page will be loaded by both MediaWiki:Common.js and
* MediaWiki:Mobile.js. The mobile site does _not_ load Common.js, so this is
* a way of providing Javascript that should be common to both the desktop
* and the mobile site. This is not a feature of MediaWiki, but a local
* implementation on the Wikimedia Incubator. This page is loaded in Common.js
* and Mobile.js using `mw.loader.load`.
*
* If you add code to this page, please document what it does and where it is
* used to the best of your abilities.
*/
/* global mw, $ */
/**
* Incubator specific mw.config options
*
* Add options to mw.config that are specific to the Wikimedia Incubator.
* @version 2.1 (2022-08-05)
* @author Jon Harald Søby
*/
$( function() {
/* wgWmincLowercaseLanguages
*
* Some languages don't capitalize the first letter in a sentence, and
* so titles starting with lowercase letters should be allowed even outside
* of Wiktionaries (where allowing titles to start with lowercase is the
* default setting). This corresponds to the setting wgCapitalLinks = false
* in InitialiseSettings.php
*/
var lowercaseLanguages = [ 'ami', 'bnn', 'cop', 'jbo', 'ka', 'lut', 'mnc', 'oge', 'pwn', 'pyu', 'ssf', 'sxr', 'szy', 'tay', 'xmf', 'xsy' ];
mw.config.set( 'wgWmincLowercaseLanguages', lowercaseLanguages );
var signLanguages = [ 'ads', 'aed', 'aen', 'afg', 'ase', 'asp', 'asq', 'asw', 'bfi', 'bfk', 'bog', 'bqn', 'bqy', 'bvl', 'bzs', 'cds', 'csc', 'csd', 'cse', 'csf', 'csg', 'csl', 'csn', 'csq', 'csr', 'doq', 'dse', 'dsl', 'ecs', 'esl', 'esn', 'eso', 'eth', 'fcs', 'fse', 'fsl', 'fss', 'gds', 'gse', 'gsg', 'gsm', 'gss', 'gus', 'hab', 'haf', 'hds', 'hks', 'hos', 'hps', 'hsh', 'hsl', 'icl', 'inl', 'ins', 'ise', 'isg', 'isr', 'jcs', 'jhs', 'jls', 'jos', 'jsl', 'jus', 'kgi', 'kvk', 'lbs', 'lls', 'lsg', 'lsl', 'lso', 'lsp', 'lst', 'lsy', 'mdl', 'mfs', 'mre', 'msd', 'msr', 'mzc', 'mzg', 'mzy', 'nbs', 'ncs', 'nsi', 'nsl', 'nsp', 'nsr', 'nzs', 'okl', 'pks', 'prl', 'prz', 'psc', 'psd', 'psg', 'psl', 'pso', 'psp', 'psr', 'pys', 'rms', 'rsi', 'rsl', 'sdl', 'sfb', 'sfs', 'sgg', 'sgx', 'slf', 'sls', 'sqk', 'sqs', 'ssp', 'ssr', 'svk', 'swl', 'syy', 'tse', 'tsm', 'tsq', 'tss', 'tsy', 'tza', 'ugn', 'ugy', 'ukl', 'uks', 'vgt', 'vsi', 'vsl', 'vsv', 'xki', 'xml', 'xms', 'yds', 'ysl', 'zib', 'zsl' ];
mw.config.set( 'wgWmincSignLanguages', signLanguages );
mw.hook( 'incubator.globalsReady' ).fire();
});