User:Lost Labyrinth/general/quicklicense.js

/* Quick image license - contains the most commonly used licensing criteria */ function QLicenseUI { var options = { '== License ==

': 'Fanon image', '== License ==

': 'Sim from TS1', '== License ==

': 'Screenshot from TS1', '== License ==

': 'Lot from TS1', '== License ==

': 'Sim from TS2', '== License ==

': 'Screenshot from TS2', '== License ==

': 'Lot from TS2', '== License ==

': 'Sim from TS3', '== License ==

': 'Screenshot from TS3', '== License ==

': 'Lot from TS3', '== License ==

': 'Sim from Life Stories', '== License ==

': 'Lot from Life Stories', '== License ==

': 'Screenshot from Life Stories', '== License ==

': 'Sim from Pet Stories', '== License ==

': 'Lot from Pet Stories', '== License ==

': 'Screenshot from Pet Stories', '== License ==

': 'Lot from Castaway Stories', '== License ==

': 'Screenshot from Castaway Stories', '== License ==

': 'Sim from a console game', '== License ==

': 'Screenshot from a console game', '== License ==

': 'An object', '== License ==

': 'A pet', '== License ==

': 'Box art', '== License ==

': 'An object', '== License ==

': 'A memory', '== License ==

': 'A moodlet', '== License ==

': 'A moodlet with no frame', '== License ==

': 'A trait', '== License ==

': 'A zodiac sign', '== License ==

': 'A game logo or icon', '== License ==

': 'A want or fear', '== License ==

': 'Something from the game interface', '== License ==

': 'Something else from The Sims series/other EA-copyrighted image', '== License ==

': 'Something part of the Wikia interace', '== License ==

': 'Fair use', '== License ==

': 'This is licensed under Creative Commons Attribution 3.0 (free license)', '== License ==

': 'This is licensed under GFDL (free license)', '== License ==

': 'Public domain', '== License ==

': 'License unknown' };	var optstr = ''; for(i in options) { optstr += '' + options[i] + ' '; }	var html = '' + optstr + ' Add license'; if($('#LicensedFile').length || $('#License').length) { html += ' This file is licensed. ';	} else { html += ' This file is not licensed. ';	}	$('#filetoc').append(html); $('#aSubmit').click( function(event) {		this.innerHTML = '';		$.post("/api.php", {action: "edit", title: wgPageName, token: mw.user.tokens.values.editToken, appendtext: $("#QLicenseSelect").val, summary: "Licensing image."}, function (result) { window.location = wgServer + '/index.php?title=' + wgPageName + '&action=purge'; });	}); } if (wgCanonicalNamespace == 'File') { addOnloadHook(QLicenseUI); }