Wikipedia:WikiProject Wikipedia Badges/tech
(Redirected from Wikipedia:BADGE/tech)
Wikipedia Badges |
---|
Project pages |
|
Automation
edit
Scripts to give badges
editScript to give a "Great Answer Badge"
- Author: Modified by Anyashy from a script by Writ Keeper
- What it does: Allows users to post a "Great Answer Badge" on user talk pages with one click.
- To add: Copy the text in the box below and paste it into your common.js page then bypass your cache (instructions are on top of your .js page).
importScript("User:Anyashy/Scripts/greatanswer.js");
Script to give badges through WikiLove
- Author: Ocaasi
- What it does: Allows users to post any badge on user talk pages through WikiLove.
- To add: Copy the text in the box below and paste it into your common.js page then bypass your cache (instructions are on top of your .js page).
importScript("User:Ocaasi/WikiLoveinstallscript.js");
- Strengths: Clean delivery mechanism, already built, requires no editor action as it's already integrated with the interface, is customizable
- Weaknesses: Requires Foundation-level developer time and code review, would be visible to all editors, any editor might use it
- Likelihood of implementation: probably phase 3, after the pilot and after a general expansion.
- How to customize * common.js * WikiLove.js * Default configuration
- Strengths: Lightweight, can be built solely for this purpose, requires no outside code review, many available javascript coders in the community could probably assist
- Weaknesses: Requires manual installation in the .js file, which is minimally technical, has to be designed carefully or else it could fail or be buggy
- Likelihood of implementation: Available for phase 1, just requires we code it or find a coder
Manual delivery mockup
edit- Copy
{{Wikipedia:BADGE/mockup}}
- Go to a user's talk page
- Click New Section at the top of the page
- Paste
{{Wikipedia:BADGE/mockup}}
on the talk page - Click Save
- Check to see if the page presented correctly
- Look at the categories added to the bottom of the page
- Try clicking on the 'see what other badges you can achieve'
WikiLove delivery prototype
edit- Click this link to preload your common.js page automatically. Then scroll down and click save.
- Go to another user's page and click on the WikiLove heart
- Select Badges at the bottom left
- Choose your badge (right now there are only two)
- Personalize it with a message
- Sign your name after the message with ~~~~
- Notice how the Badge automatically takes on the user's name
- Notice how the Badge automatically lists the user in the 3 Categories (page-bottom) for Badge recipients.
Future work
edit- making the signature automatic after the personal message
- troubleshooting why longer badge names or descriptions don't work.
- How long is too long? Anyashy (talk) 14:05, 11 September 2012 (UTC)
- Not sure yet, but it seemed to be about 15 characters. My guess/hope is there's a way to extend that field. It'd be important for us to have detailed descriptions for less obvious badges. Ocaasi t | c 15:32, 11 September 2012 (UTC)
- How long is too long? Anyashy (talk) 14:05, 11 September 2012 (UTC)
- add lots of badges to the list with images
- add an input field for evidence. We can still let users give out badges without filling in the field but, ideally, if no evidence is provided the field field should automatically read: "no evidence provided"
- add project relevant barnstars in the barnstar category