/* generated javascript */
var skin = 'monomix';
var stylepath = '/wiki_source/skins';

/* MediaWiki:Common.js */
/* Any JavaScript here will be loaded for all users on every page load. */

//------------------------
//Add Button to Button bar above edit field
//Cf. http://www.mediawiki.org/wiki/MediaWiki:Common.js

function addInsertButton(img, speedTip, tagOpen, tagClose, sampleText){
 mwCustomEditButtons[mwCustomEditButtons.length] =
 {'imageFile': img,
  'speedTip': speedTip,
  'tagOpen': tagOpen,
  'tagClose': tagClose,
  'sampleText': sampleText};
}

addInsertButton("/resources/strike.png", "strike through", "<s>","</s>","strike through");
addInsertButton("/resources/underline.png", "underline", "<u>","</u>","underline");
addInsertButton("/resources/box.png", "box", "{"+"{box\n|text=","\n}}","box");
addInsertButton("/resources/comment.png", "comment", "{"+"{comment\n|text=","\n}}","comment");
addInsertButton("/resources/noinclude.png", "noinclude", "<noinclude>","</noinclude>","noinclude");
addInsertButton("/resources/includeonly.png", "includeonly", "<includeonly>","</includeonly>","includeonly");

//addInsertButton('wikipedia/commons/c/c8/Button_redirect.png','Redirect','#Redirect [[',']]',''); //+ buttons
//addInsertButton('wikisource/ru/a/a9/Button-dash.png',' — ','—','',''); 
//addInsertButton('wikipedia/commons/2/2a/Button_category_plus.png','Category','[[Category:',']]','');
// cf. http://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_add_more_buttons_on_the_edit_page.3F
/* var button = {
        "imageFile": "images/5/56/Button_big.png",  //image to be shown on the button (may be a full URL too), 22x22 pixels
        "speedTip": "big text",    //text shown in a tooltip when hovering the mouse over the button
        "tagOpen": "<big>",        //the text to use to mark the beginning of the block
        "tagClose": "</big>",      //the text to use to mark the end of the block (if any)
        "sampleText": "big text"   //the sample text to place inside the block
};*/
// addInsertButton(button.imageFile,button.speedTip,button.tagOpen,button.tagClose,button.sampleText);
//------------------------


// http://www.mediawiki.org/wiki/MediaWiki:Common.js
// http://www.mediawiki.org/wiki/MediaWiki:Edittools.js [[MediaWiki:Edittools.js]]

var isViewingMainPage = (/^MediaWiki(\/.+ - MediaWiki)?$/.test(document.title));
if (isViewingMainPage) {
  document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, h1.firstHeading { display: none !important; } #content { padding-top: 1em; }/*]]>*/</style>');
}


/** includePage ************
 * force the loading of another JavaScript file
 *
 * Maintainer: [[Commons:User:Dschwen]]
 */
 
function includePage( name )
{
 document.write('<script type="text/javascript" src="' + wgScript + '?title='
  + name 
  + '&action=raw&ctype=text/javascript"><\/script>' 
 );
}
/* End of includePage */


// http://www.mediawiki.org/wiki/MediaWiki_talk:Edittools
/* Including extra .js pages */ 

// switches for scripts
// TODO: migrate to JSConfig
// var load_extratabs = true;

//var load_edittools = true;

// extra drop down menu on editing for adding special characters
//includePage( 'MediaWiki:Edittools.js' );

//Editpage scripts
//if (wgAction=='edit' || wgAction == 'submit')
//  importScript('MediaWiki:Editpage.js')

/* End of extra pages */

/* MediaWiki:Monomix.js */
