User:Snowolf/JS toolbox
The JS toolbox is a javascript tool to help with handling vandals and new users alike. It is borrowed from Kbh3rd's code on the English Wikipedia and adapted (badly because I'm not a javascript guy) for usage here. All credit for the good stuff goes to him, all credit for the screw-ups goes to me.
Important notice
[edit]This is very much a work in progress, and could suddenly change. The conversion for Wikivoyage use is a pre-alpha if you will. So, use at your own risk and do double check things.
How to install it
[edit]- Go to Special:Mypage/common.js
- Paste the following lines:
//Javascript toolbox for Wikivoyage
// [[File:Snowolf_voy_js_toolbox.js]]
mw.loader.load('//en.wikivoyage.org/w/index.php?title=User:Snowolf/js_toolbox.js&action=raw&ctype=text/javascript');
- Save the page
- Clear your cache
How to use it
[edit]When editing a user talk page, look to the bottom left of your screen and you will find some new links to insert appropriate warnings, welcomes, and so on
Messages
[edit]Hello, {{subst:PAGENAME}}! Welcome to Wikivoyage.
To help get you started contributing, we've created a tips for new contributors page, full of helpful links about policies and guidelines and style, as well as some important information on copyleft and basic stuff like how to edit a page. Please remember to sign your messages on talk pages by typing four tildes (~~~~
); this will automatically insert your username and the date. If you need help, check out Help, or post a message in the travellers' pub. If you are familiar with Wikipedia, take a look over some of the differences here.
Hello, I'm Prahlad balaji. I wanted to let you know that I undid one or more of your recent contributions to Foo because it didn't appear constructive. If you think I made a mistake, or if you have any questions, you can leave me a message on my talk page. Also note that we have a page full of tips for new contributors for you to look at and that any question can be asked on the Travellers' pub. Thanks!
Hi, I'm Prahlad balaji. I wanted to let you know that I undid one or more of your recent contributions to Foo because it didn't appear constructive. If you think I made a mistake, or if you have any questions, you can leave me a message on my talk page. However if indeed I was correct, please desist from further nonconstructive contributions or you may be blocked from editing. Thanks!
Hello, I'm [[User:{{subst:REVISIONUSER}}|{{subst:REVISIONUSER}}]]. An edit that you recently made to Foo that seemed to be a test has recently been removed. If you want more practice editing, the Graffiti wall is the best place to do so. If you think I made a mistake, or if you have any questions, you can leave me a message on [[User_talk:{{subst:REVISIONUSER}}|my talk page]]. Thank you.
Hello, I'm [[User:{{subst:REVISIONUSER}}|{{subst:REVISIONUSER}}]]. Please stop making test edits to Wikivoyage, as you did on Foo. It is considered vandalism, which, under Wikivoyage policy, can lead to a loss of editing privileges. If you would like to experiment again, please use the Graffiti wall. Thanks!
Hello, I'm [[User:{{subst:REVISIONUSER}}|{{subst:REVISIONUSER}}]]. I noticed that you recently removed some content from Foo without explaining why. In the future, it would be helpful to others if you described your changes to Wikivoyage with an edit summary. If this was a mistake, don't worry: I restored the removed content. If you think I made a mistake, or if you have any questions, you can leave me a message on [[User_talk:{{subst:REVISIONUSER}}|my talk page]]. Thanks!
Hello, I'm [[User:{{subst:REVISIONUSER}}|{{subst:REVISIONUSER}}]]. Please stop making blanking out or deleting portions of page content, templates or other materials from Wikivoyage, as you did on Foo It is considered vandalism, which, under Wikivoyage policy, can lead to a loss of editing privileges. Thanks!
Hi, I'm Prahlad balaji. I wanted to thank you for your of your recent contributions to Foo but please note that should not be used for advertising. We have a page explaining things a bit for business owners that might be of interest to you as well. If you think I made a mistake, or if you have any questions, you can leave me a message on my talk page. Thanks!
You have been blocked for 31 hours for making nonconstructive edits to this project. If you believe this was not the case or feel you want to contribute constructively in the future, please add to your talk page the following text {{User:Snowolf/AppealBlock|reason=Your reason here ~~~~}} obviously replacing "Your reason here" with the reasons you feel you should be unblocked for. |
Screenshot
[edit]Changelog
[edit]v 0.2 (2013-01-18)
[edit]- Adopted a system allowing for a light (1) and a strong (2) warning for Vandalism;
- Added warnings for blanking and tests (with the light/strong system)
- All warnings now accept arguments for the page the vandalism happened on
- The block message now accepts as argument the block duration, in the format "for X hours"; else it defaults to 31 hours
- The welcome template has been changed, now accepts extra comments and has a comment explaining how to sign posts
- Edit summaries fixed all around