MediaWiki:Wikia.js

// 09:55, February 18, 2016 (UTC) // 

// Add Special:Contributions, Special:Watchlist, & Special:Following to AccountNavigation in Wikia skin importScriptPage('MediaWiki:Wikia.js/accountNavigation.js', 'admintools'); // END Add Special:Contributions, Special:Watchlist, & Special:Following to AccountNavigation in Wikia skin

/* Quick image license - contains the most commonly used licensing criteria - fixed for Oasis */ function QLicenseUI { var options = { : ,		'\n== Licensing ==\n': 'Fair use', '\n== Licensing ==\n': 'This is licensed under Creative Commons Attribution 3.0 (free license)', '\n== Licensing ==\n': 'This is licensed under GFDL (free license)', '\n== Licensing ==\n': 'Public domain', '\n== Licensing ==\n': 'License unknown' };	var optstr = ''; for ( i in options ) { if ( options.hasOwnProperty( i ) ) { optstr += '' + options[i] + ' '; }	}	var html = '' + optstr + ' Add license'; if($('#LicensedFile').length || $('#Licensing').length) { html += ' This file is licensed. ';	} else { html += ' This file is not licensed. ';	}	$('#WikiaPageHeader').append(html); $('#aSubmit').click( function(event) {		this.innerHTML = '';		$.post("/api.php", {action: "edit", title: mw.config.get("wgPageName"), token: mw.user.tokens.values.editToken, bot: true, appendtext: $("#QLicenseSelect").val, summary: "Licensing image."}, function (result) { window.location = wgServer + '/index.php?title=' + mw.config.get("wgPageName") + '&action=purge'; });	}); } if (wgCanonicalNamespace == 'File') { addOnloadHook(QLicenseUI); }

importArticles({	type: 'script',	articles: [		// ...		'u:dev:DisplayClock/code.js',		// ...	] });