User:Josephyr/wikia.js

// ******************* // Custom adoption response buttons // ******************* if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://img3.wikia.nocookie.net/__cb20120729015330/callofduty/images/0/02/Blocked_button.png", "speedTip": "AdoptionResponse: Block ", "tagOpen": " Hiya! It appears that you are currently blocked on another wiki, which may make you ineligible to adopt this one. You can explain the block here, [as a local block does not automatically disqualify someone from adopting, as Staff will review it. ",    "tagClose": "",     "sampleText": ""};  } if (wgAction == "edit" || wgAction == "submit") {   /***** Custom edit buttons *****/    if (mwCustomEditButtons) {            mwCustomEditButtons[mwCustomEditButtons.length] = {                "imageFile": "http://img1.wikia.nocookie.net/__cb20141023021737/josephhawk/images/thumb/2/2f/MetroUI-Other-Search-icon.png/212px-MetroUI-Other-Search-icon.png",                "speedTip": "AdoptionResponse: Another Adoption",                "tagOpen": " Hello! It appears that you have adopted another wiki within the previous 30 days. Unfortunately, this makes you ineligible to adopt this wiki 30 days from your last adoption has elapsed. So, just wait until 30 days passed from your last request, then you are free to make another request. :) ",                "tagClose": "",                "sampleText": ""};            mwCustomEditButtons[mwCustomEditButtons.length] = {                "imageFile": "http://img2.wikia.nocookie.net/__cb20120117080400/callofduty/images/c/c5/Blog-icon.png",                "speedTip": "AdoptionResponse: Active Community",                "tagOpen": " Hi - there appears to be several other contributors at this wiki. According to the adoption guidelines, it is required that the adopting user make a blog/forum post/announcement of some sort explaining their intentions to adopt on an active wiki, so other users on the wiki can give their input, and comment. It's best to make a blog or forum about your adoption rather than individual messages so there can be consensus in one place (which makes it easier for Staff). Be sure to link it when you are done, and let it run for 1 week. If there is a consensus amongst the users for you to receive the rights, then you'll be eligible to adopt. Cheers! ",                "tagClose": "",                "sampleText": ""};            mwCustomEditButtons[mwCustomEditButtons.length] = {                "imageFile": "http://img4.wikia.nocookie.net/__cb20100806124142/callofduty/images/1/17/Button_Ttalktextreg.jpg",                "speedTip": "AdoptionResponse: Active Community (2)",                "tagOpen": " Hiya! There appears a few other contributors at this wiki. According to the [[adopt|adoption guidelines]], it is required that the adopting user make a blog/forum post/announcement of some sort explaining their intentions to adopt on an active wiki, so other users on the wiki can give their input, and comment on the leadership change. If you have already made one, please link it, and if not, you should create one, then link it. If there is a consensus amongst the users for you to receive the rights, then you'll be eligible to adopt. Cheers! ",                "tagClose": "",                "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://img2.wikia.nocookie.net/__cb20141023021849/josephhawk/images/thumb/7/70/ReadImage.jpeg/212px-ReadImage.jpeg", "speedTip": "AdoptionResponse: Everything", "tagOpen": " Hello - there appears to be several other contributors at this wiki. According to the adoption guidelines, it is required that the adopting user make a blog/forum post/announcement of some sort explaining their intentions to adopt on an active wiki, so other users on the wiki can give their input, and comment. Be sure to link it when you are done, and let it run for 1 week. If there is a consensus amongst the users for you to receive the rights, then you'll be eligible to adopt. Also, in order to adopt the wiki, you will need to edit there regularly, every day or two for at least a week. Try to edit from now on, and by the time this request is viewed by Staff, you should meet the requirement. ", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://img3.wikia.nocookie.net/__cb20141023021958/josephhawk/images/thumb/5/58/Icon_14-512.png/212px-Icon_14-512.png", "speedTip": "AdoptionResponse: 1 Week", "tagOpen": " Hey - one of the critical requirements for adopting a wiki is 1 solid week of active editing (i.e. making new pages, fixing up articles, adding content, building the wiki). If you edit at least every day or two while you wait for this request to be processed, (which ranges from 7-10 days), you should meet that requirement. :) It doesn't have to be a lot of edits each day, it is just the *frequency* of the edits that Staff needs to see, to show your investment and commitment to the wiki. Happy editing! ",               "tagClose": "",                "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20140523015656/spongebob/images/f/f5/Doodlebob-Emote.png", "speedTip": "AdoptionResponse: 1 Week (2)", "tagOpen": " Hey - in order to adopt the wiki, you will need to edit there regularly, every day or two for 1 solid week straight. Try to edit from now on, and by the time this request is viewed by Staff, you should meet the requirement. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://img2.wikia.nocookie.net/__cb20150117190123/spongebob/images/2/2f/Patrick_Star_2.png", "speedTip": "AdoptionResponse: 1 Week (3)", "tagOpen": " One of the most important requirements to adopt is active editing for 1 week, and Staff needs to see you do this, otherwise the request won't be passed. The good news is that these requests take 1-2 weeks, so you have plenty of time to edit, and meet the requirement. :) ",               "tagClose": "",                "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://img3.wikia.nocookie.net/__cb20141023021811/josephhawk/images/thumb/1/1c/Leader-icon.png/212px-Leader-icon.png", "speedTip": "AdoptionResponse: Admin", "tagOpen": " Hi there! The most basic and prime rule about adopting a wiki is for none of the admins to be inactive for 60 days. But it appears that an administrator/bureaucrat on your wiki has edited within that timeframe. This makes the wiki ineligible to adopt. However, you can request for a promotion from the active bureaucrat. If you choose to directly request the rights from them, you should check out this fantastic blog written by Sannse, which provides stellar advice on receiving rights. Cheers! ", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://img1.wikia.nocookie.net/__cb20141023021603/josephhawk/images/thumb/c/c5/Clock-time-7.png/212px-Clock-time-7.png", "speedTip": "AdoptionResponse: How Long", "tagOpen": " Haya. :) Adoption requests are evaluated in the order received, which takes 7 to 14 days or so. Just be patient, and continue to actively edit. Cheers! ",               "tagClose": "",                "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/__cb20100502153421/callofduty/images/8/8b/Button_Vvandal.jpg", "speedTip": "AdoptionResponse: VSTF", "tagOpen": " Hello there! If you have issues with an active spammer/vandal/user adding false information, contact the VSTF at their wiki, and they can help you deal with the troublemaker while you wait to receive the rights. Hope everything works out. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://img4.wikia.nocookie.net/__cb20100827182940/callofduty/images/8/80/B-59Barcontribs.jpg", "speedTip": "AdoptionResponse: Reminder to Edit", "tagOpen": " Hey there! You've done a terrific job with your contributions. Looks like you're all set to adopt the wiki. ;) Just remember to continue editing while you wait for this request to be processed (which can range from 1-14 days) and you'll be all set! Cheers! ",               "tagClose": "",                "sampleText": ""};  mwCustomEditButtons[mwCustomEditButtons.length] = {                "imageFile": "http://img1.wikia.nocookie.net/__cb20120729165453/callofduty/images/7/70/Support_button.png",                "speedTip": "AdoptionResponse: Logged Admin",                "tagOpen": " Hey there! A bureaucrat, while not active on the wiki, last *logged on* just the other day. If *I* may make a suggestion, you should message them asking for the rights. You never know, you just might get them sooner. :) If you choose to directly request the rights from them, you should check out this fantastic blog written by Sannse, which provides stellar advice on receiving rights. Cheers! ",               "tagClose": "",                "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/spongebob/images/b/b3/Neutral.png/revision/latest?cb=20140913201058", "speedTip": "AdoptionResponse: Admin, Not 'Crat", "tagOpen": " Hi - the most basic and prime rule about adopting a wiki is for none of the admins to be inactive for 60 days. But it appears that an administrator/bureaucrat on your wiki has edited within that timeframe. This makes the wiki ineligible to adopt. Since they do not posses the bureaucratic rights to promote other users, they can either endorse your adoption so that you'll receive the rights, or they can create their own. Hope this helps! ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/flags/images/c/cb/Mexico.svg/revision/latest/scale-to-width/300?cb=20081022191619", "speedTip": "AdoptionResponse: Spanish Adoptions", "tagOpen": " Hi - Spanish adoptions are handled here. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/flags/images/a/a0/Germany.svg/revision/latest/scale-to-width/300?cb=20080610122129", "speedTip": "AdoptionResponse: German Adoptions", "tagOpen": " Hi - German adoptions are handled here. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/flags/images/9/98/France.svg/revision/latest/scale-to-width/300?cb=20100228180001", "speedTip": "AdoptionResponse: French Adoptions", "tagOpen": " French adoptions are handled here. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/flags/images/3/35/Russia.svg/revision/latest/scale-to-width/300?cb=20080426150357", "speedTip": "AdoptionResponse: Russian Adoptions", "tagOpen": " Hi - Russian adoptions are handled here. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/flags/images/5/57/Italy.svg/revision/latest/scale-to-width/300?cb=20071201212612", "speedTip": "AdoptionResponse: Italian Adoptions", "tagOpen": " Hi - Italian adoptions are handled here. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/flags/images/4/4d/Poland.svg/revision/latest/scale-to-width/300?cb=20081204000950", "speedTip": "AdoptionResponse: Polish Adoptions", "tagOpen": " Hi - Polish adoptions are handled here. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/flags/images/4/4a/Netherlands.svg/revision/latest/scale-to-width/300?cb=20071218203236", "speedTip": "AdoptionResponse: Dutch Adoptions", "tagOpen": " Hi - Dutch adoptions are handled here. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/flags/images/f/f9/Portugal.svg/revision/latest?cb=20081203223406", "speedTip": "AdoptionResponse: Portugal Adoptions", "tagOpen": " Hi - Portugese adoptions are handled here. ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/flags/images/4/4a/China.svg/revision/latest/scale-to-width/300?cb=20090207152627", "speedTip": "AdoptionResponse: Chinese Adoptions", "tagOpen": " Hi - Chinese adoptions are handled here. ", "tagClose": "", "sampleText": ""};

} } // *********************** // End custom buttons // ***********************

// ******************* // Custom Responses 2.0 // *******************

$('[name="message"]').keypress(function(e) {       if (e.which == 13) {            this.value = this.value.replace(/\/general/gi, 'Go to Special:Contact/general.');        }    }); $('[name="message"]').keypress(function(e) {       if (e.which == 13) {            this.value = this.value.replace(/\/sc/gi, 'Go to Special:Contact.');        }    }); $('[name="message"]').keypress(function(e) {       if (e.which == 13) {            this.value = this.value.replace(/\/renameaccount/gi, 'Look at Special:Contact/rename-account.');        }    }); $('[name="message"]').keypress(function(e) {       if (e.which == 13) {            this.value = this.value.replace(/\/closeaccount/gi, 'Special:CloseMyAccount.');        }    }); $('[name="message"]').keypress(function(e) {       if (e.which == 13) {            this.value = this.value.replace(/\/renamewiki/gi, 'You can rename a wiki at Special:Contact/wiki-name-change. :)');       }    });    $('[name="message"]').keypress(function(e) { if (e.which == 13) { this.value = this.value.replace(/\/staff/gi, 'Please see Special:Contact, and select the page you are looking for. =)');       }    }); $('[name="message"]').keypress(function(e) {       if (e.which == 13) {            this.value = this.value.replace(/\/adopt/gi, 'You can adopt the wiki. :)');       }    });    $('[name="message"]').keypress(function(e) { if (e.which == 13) { this.value = this.value.replace(/\/vstf/gi, 'You can report that to the VSTF Wiki. :)');       }    });

// *********************** // End custom responses 2.0 // ***********************