User:Pamputt/biloxi.js

// This gadget adds a list of characters used in Biloxi and Ofo languages // to the vector toolbar

// List of the characters var caracteres_liste_biloxi = ["ˊ","ạ","ā",,"ĕ","ĭ","ḳ","ᵐ","ñ","ⁿ","ṭ","x̣"] ;

// Adding the section "Caractères en biloxi/ofo" var barre_caract_perso = function { $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {		'sections': {			'caracteres': {				label:'Caractères en biloxi/ofo',				type:'booklet',				deferLoad:true,				pages: {					'Biloxi': {						'label':'Biloxi',						'layout':'characters',						'characters': caracteres_liste_biloxi					} 				}			}		}	} ); };

// Checking that the view is in modification mode et that the required modules are available. // Then, modifying the toolbar if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) { mw.loader.using( 'user.options', function {                if ( mw.user.options.get('usebetatoolbar') ) {                        mw.loader.using( 'ext.wikiEditor', function  { $(document).ready( barre_caract_perso ); } );               }        } ); }