Welcome to Assassin's Creed Wiki! Log in and join the community.

User:Vatsa1708/wikia.js

From the Assassin's Creed Wiki
Revision as of 16:40, 26 September 2012 by imported>Vatsa1708
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
//**Auto-refresh**//
importScriptPage('AjaxRC/code.js', 'dev');
AjaxRCRefreshText = 'Auto-refresh';
ajaxPages = ["Special:RecentChanges","Special:WikiActivity","Special:NewFiles"];
var indicator = 'http://images1.wikia.nocookie.net/assassinscreed/images/d/de/Ajax-loader.gif';
AjaxRCRefreshHoverText = 'Automatically refresh the page';


//**Show/Hide**//
importScriptPage('ShowHide2/code.js', 'dev');

// ============================================================
// BEGIN Template:Games
// ============================================================
 
// Description: Add icons to article title
// Credit:      User:Porter21 (modifications by User:Rappy and User:Gardimuer)
 
$(function addTitleIcons () {
   if (skin == 'monobook' || skin == 'oasis') {
      var insertTarget;
 
      switch (skin) {
		case 'monobook':
			insertTarget = $('#firstHeading');
			break;
 
		case 'oasis':
			if (wgAction != 'submit' && wgNamespaceNumber != 112 && $('#va-titleicons').length > 0) {
				insertTarget = $('#WikiaPageHeader .tally');
				$('#WikiaPageHeader .tally').html(' ').css('width', '200px');
			}
			break;
      }
 
      if (insertTarget) {
		$('#va-titleicons').css('display', 'block').prependTo(insertTarget);
		$('#va-titleicons-more').append('<img width="0" height="0" class="va-titleicons-chevron" src="' + wgBlankImgUrl + '">');
 
		$('#va-titleicons').hover(
			function () {
				$(this).addClass('va-titleicons-hover');
			}, function () {
				$(this).removeClass('va-titleicons-hover');
			});
      }
   }
});
 
// ============================================================
// END Template:Games
// ============================================================