User:Inductiveload/Custom toolbar buttons.js

// ========================================== // TOOLBAR BUTTONS // ==========================================

if (mw.toolbar != undefined ){

//Small caps button mw.toolbar.insertButton( "//upload.wikimedia.org/wikipedia/commons/4/4e/Button_romain.png",  "Small caps",  ,   );

//Center and extra larger

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/a/a6/Button_center_x-larger.png",  "Centre and x-larger",  '',  "" );

//Center and larger

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Button_center_larger.svg/23px-Button_center_larger.svg.png",  "Centre and larger",  '',  "" );

//Poem tags

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/c/cd/Button_poem.png",  "Poem tags",  ' \n',  '\n ',  "" );

// Block centred text

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Button_block_centre.svg/23px-Button_block_centre.svg.png",  "Block centred text",  ,  ,  "" );

// Block centred poem

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Button_poem_centre.svg/23px-Button_poem_centre.svg.png",  "Block centred poem",  ' ',  ' ',  "" );

// Block centred smaller poem

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Button_smaller_poem_centre.svg/23px-Button_smaller_poem_centre.svg.png",  "Block centred poem",  '',  "" );

//m-dash

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/8/8b/Button_m-dash.png",  "M-dash",  '—',  '',  "" );

//n-dash

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/8/8b/Button_n-dash.png",  "N-dash",  '–',  '',  "" );

//WP link

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/6/69/Button_Wikipedia_link.png",  "WP link",  ,  ,  "" );

//Relative link

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/2/23/Button_relative_link.png",  "Relative link",  '../',  '/',  "" );

//Hoyt quote button

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Button_Hoyt_quote.svg/23px-Button_Hoyt_quote.svg.png",  "Hoyt quote formatting template",  ,  ,  "" );

//Italic link

mw.toolbar.insertButton( "http://upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Button_link_italic.svg/23px-Button_link_italic.svg.png",  "Italic link",  "",  "",  "" );

//mainspace only if(wgNamespaceNumber == 0){

//Pages transclusion mw.toolbar.insertButton(     "http://upload.wikimedia.org/wikipedia/commons/thumb/7/79/Button_pages.svg/23px-Button_pages.svg.png",      "Page transclusion",      '',      '',      ""    );

}

}