MediaWiki:Gadget-quicklicense.js: Difference between revisions

m
Applying changes that should make this JS file partially HTTPS-ready. If you have any questions or noticed issues related to this edit, please reach out to us using the Special:Contact page.
imported>Lost Labyrinth
(Created page with "→‎Quick image license - contains the most commonly used licensing criteria - fixed for Oasis: function QLicenseUI() { var options = { '': '', '== Licensing ==\n{{Copyr...")
 
imported>FANDOMbot
m (Applying changes that should make this JS file partially HTTPS-ready. If you have any questions or noticed issues related to this edit, please reach out to us using the Special:Contact page.)
 
(2 intermediate revisions by 2 users not shown)
Line 3:
var options = {
'': '',
'\n== Licensing ==\n{{Copyright by EA|fanon}}': 'Fanon image',
'\n== Licensing ==\n{{Copyright by EA|sim1}}': 'Sim from TS1',
'\n== Licensing ==\n{{Copyright by EA|ss1}}': 'Screenshot from TS1',
'\n== Licensing ==\n{{Copyright by EA|lot1}}': 'Lot from TS1',
'\n== Licensing ==\n{{Copyright by EA|sim2}}': 'Sim from TS2',
'\n== Licensing ==\n{{Copyright by EA|ss2}}': 'Screenshot from TS2',
'\n== Licensing ==\n{{Copyright by EA|lot2}}': 'Lot from TS2',
'\n== Licensing ==\n{{Copyright by EA|sim3}}': 'Sim from TS3',
'\n== Licensing ==\n{{Copyright by EA|ss3}}': 'Screenshot from TS3',
'\n== Licensing ==\n{{Copyright by EA|lot3}}': 'Lot from TS3',
'\n== Licensing ==\n{{Copyright by EA|sim4}}': 'Sim from TS4',
'\n== Licensing ==\n{{Copyright by EA|ss4}}': 'Screenshot from TS4',
'\n== Licensing ==\n{{Copyright by EA|lot4}}': 'Lot from TS4',
'\n== Licensing ==\n{{Copyright by EA|simls}}': 'Sim from Life Stories',
'\n== Licensing ==\n{{Copyright by EA|lotls}}': 'Lot from Life Stories',
'\n== Licensing ==\n{{Copyright by EA|ssls}}': 'Screenshot from Life Stories',
'\n== Licensing ==\n{{Copyright by EA|simps}}': 'Sim from Pet Stories',
'\n== Licensing ==\n{{Copyright by EA|lotps}}': 'Lot from Pet Stories',
'\n== Licensing ==\n{{Copyright by EA|ssps}}': 'Screenshot from Pet Stories',
'\n== Licensing ==\n{{Copyright by EA|lotcs}}': 'Lot from Castaway Stories',
'\n== Licensing ==\n{{Copyright by EA|sscs}}': 'Screenshot from Castaway Stories',
'\n== Licensing ==\n{{Copyright by EA|simcon}}': 'Sim from a console game',
'\n== Licensing ==\n{{Copyright by EA|sscon}}': 'Screenshot from a console game',
'\n== Licensing ==\n{{Copyright by EA|obj}}': 'An object',
'\n== Licensing ==\n{{Copyright by EA|pet}}': 'A pet',
'\n== Licensing ==\n{{Copyright by EA|box}}': 'Box art',
'\n== Licensing ==\n{{Copyright by EA|objmem}}': 'AnA objectmemory',
'\n== Licensing ==\n{{Copyright by EA|memmood}}': 'A memorymoodlet',
'\n== Licensing ==\n{{Copyright by EA|moodmoodnf}}': 'A moodlet with no frame',
'\n== Licensing ==\n{{Copyright by EA|moodnftrait}}': 'A moodlet with no frametrait',
'\n== Licensing ==\n{{Copyright by EA|traitzodiac}}': 'A traitzodiac sign',
'\n== Licensing ==\n{{Copyright by EA|zodiaclogo}}': 'A zodiacgame logo or signicon',
'\n== Licensing ==\n{{Copyright by EA|logowaf}}': 'A game logowant or iconfear',
'\n== Licensing ==\n{{Copyright by EA|wafinterface}}': 'ASomething from wantthe orgame fearinterface',
'\n== Licensing ==\n{{Copyright by EA|interfacepromo}}': 'Something from theA gamepromotional interfaceimage',
'\n== Licensing ==\n{{Copyright by EA|promorender}}': 'A promotionalgame imagerender',
'\n== Licensing ==\n{{Copyright by EA}}': 'Something else from The Sims series/other EA-copyrighted image',
'\n== Licensing ==\n{{Copyrighted by Wikia|obj}}': 'Something part of the Wikia interace',
'\n== Licensing ==\n{{Fairuse}}': 'Fair use',
'\n== Licensing ==\n{{cc-by-sa-3.0}}': 'This is licensed under Creative Commons Attribution 3.0 (free license)',
'\n== Licensing ==\n{{GFDL}}': 'This is licensed under GFDL (free license)',
'\n== Licensing ==\n{{PD}}': 'Public domain',
'\n== Licensing ==\n{{No license}}': 'License unknown'
};
var optstr = '';
Line 62:
$('#WikiaPageHeader').append(html);
$('#aSubmit').click( function(event) {
this.innerHTML = '<img src="httphttps://images2images.wikia.nocookie.net/dev/images/8/82/Facebook_throbber.gif" style="vertical-align: baseline;" border="0" />';
$.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';
Anonymous user