MediaWiki:SwitchInfoMode.js

if ($('.infoExpert').length > 0){ var $infoNormal = $('.infoNormal'); var $infoExpert = $('.infoExpert'); $('.statTitle').remove; var $switchNormal = $('.switchNormal').append('[Normal]'); var $switchExpert = $('.switchExpert').append('[Expert]');

$switchNormal.css('font-weight','bold'); $switchExpert.css('font-weight','200');

$infoNormal.before(' '); var $infoWrap = $('.infoWrap');

$infoNormal.appendTo($infoWrap); $infoExpert.appendTo($infoWrap);

$switchNormal.click(function{		$infoNormal.show;		$infoExpert.hide;		$switchNormal.css('font-weight','bold');		$switchExpert.css('font-weight','200');	});

$switchExpert.click(function{		$infoNormal.hide;		$infoExpert.show;		$switchNormal.css('font-weight','200');		$switchExpert.css('font-weight','bold');	});

}