| There is no RationalWiki without you. We are a small non-profit with no staff – we are hundreds of volunteers who document pseudoscience and crankery around the world every day. We will never allow ads because we must remain independent. We cannot rely on big donors with corresponding big agendas. We are not the largest website around, but we believe we play an important role in defending truth and objectivity. If everyone seeing this today donates $5, we will meet our goal for 2019. |
Fighting pseudoscience isn't free. We are 100% user-supported! Help and donate $5, $20 or whatever you can today with |
MediaWiki talk:Gadget-HotArticleRate2.js
From RationalWiki
(Redirected from User talk:Ponder Stibbons/vector.js)
Todo:
Implement savingReplace{{copper}}/{{bronze}}/{{silver}}/{{gold}}on the articleBuild the rated template and replace the talk page text with that + this.textToSavedoneHandle edit conflictsdonereturn value is: {"error":{"code":"editconflict","info":"Edit conflict detected"}}Reload talk page, check if rated parameters have changed. If they haven't, resubmit. If they have, display them next to inputs (append comments to commentsInput.value) and let the user review the changes and submit again.done
- Get the categories via the api when we're on the talk page
- Figure out how to do captchas
- The api returns a simple captcha instead of recaptcha, i.e. something like "what's 18+23" plus a captcha id. Just show the question to the user with an inputbox then resubmit with the result and the captcha id.
- {"edit":{"captcha":{"type":"simple","mime":"text\/plain","id":"676842286","question":"70 - 6"},"result":"Failure"}}
only add \n\n after rated if necessary, otherwise changing a rated template on a page will keep adding line breaksfixed by ltrimming page text- preview icon (use code from User:Nx/Scripts/LinkSuggest.js)
- display all icons from Category:Portal icons and allow user to pick one, similar to the smiley toolbar gadget.
Ponder Stibbons talk
03:05, 6 October 2011 (UTC)