MediaWiki:Gadget-CastSwitch.js

// English Cast Button $(function {  $('.mw-englishButton').html($('', {       'class': 'mw-ui-button',       text: 'English'   })).click(function { $('.cast-va').attr('style', 'display: none !important'); $('.en-va').attr('style', 'display: block !important'); } )});

// Japanese Cast Button $(function {  $('.mw-japaneseButton').html($('', {       'class': 'mw-ui-button',       text: 'Japanese'   })).click(function { $('.cast-va').attr('style', 'display: none !important'); $('.jp-va').attr('style', 'display: block !important'); } )});

// French Cast Button $(function {  $('.mw-frenchButton').html($('', {       'class': 'mw-ui-button',       text: 'French'   })).click(function { $('.cast-va').attr('style', 'display: none !important'); $('.fr-va').attr('style', 'display: block !important'); } )});

// Spanish Cast (Spain) Button $(function {  $('.mw-spanishButton').html($('', {       'class': 'mw-ui-button',       text: 'Spanish (European)'   })).click(function { $('.cast-va').attr('style', 'display: none !important'); $('.sp-va').attr('style', 'display: block !important'); } )});

// Spanish Cast (Latin America) Button $(function {  $('.mw-spanishLatinButton').html($('', {       'class': 'mw-ui-button',       text: 'Spanish (Latin American)'   })).click(function { $('.cast-va').attr('style', 'display: none !important'); $('.la-va').attr('style', 'display: block !important'); } )});

// Italian Cast Button $(function {  $('.mw-italianButton').html($('', {       'class': 'mw-ui-button',       text: 'Italian'   })).click(function { $('.cast-va').attr('style', 'display: none !important'); $('.it-va').attr('style', 'display: block !important'); } )});

// German Cast Button $(function {  $('.mw-germanButton').html($('', {       'class': 'mw-ui-button',       text: 'German'   })).click(function { $('.cast-va').attr('style', 'display: none !important'); $('.de-va').attr('style', 'display: block !important'); } )});

// Portuguese Cast Button $(function {  $('.mw-portugueseButton').html($('', {       'class': 'mw-ui-button',       text: 'Portuguese'   })).click(function { $('.cast-va').attr('style', 'display: none !important'); $('.pt-va').attr('style', 'display: block !important'); } )});

// Thai Cast Button $(function {  $('.mw-thaiButton').html($('', {       'class': 'mw-ui-button',       text: 'Thai'   })).click(function { $('.cast-va').attr('style', 'display: none !important'); $('.th-va').attr('style', 'display: block !important'); } )});