User:Willscrlt/Voting buttons

If you are used to using !voting/discussion templates like Keep, Delete, Support, Oppose, or Comment on other wiki projects (the ones here do different things), you might be annoyed (like I am) that these templates are not available on the English Wikipedia due to previous deletion discussions.

Using MarkS' Extra Edit Buttons script, I have created a single-button equivalent of several popular discussion templates (also called !voting templates). There are two sets. One includes the 15px icons to quickly identify your views (which some people here consider an annoying feature). The other version is icon-less. Use whichever version you prefer.

You can add any or all of the following lines appear as buttons in the edit area of most pages by installing the Extra Edit Buttons script to your own JavaScript page. See the documentation for full installation instructions.

Below the examples is the code you need to add to your JavaScript page to generate the results shown. You may mix and match with some buttons using icons and some not, but there cannot be two buttons with the same name in use at the same time (i.e., you can either use the '_KEEP' button with icons or the '_KEEP' button without, though you could use both if you renamed the second one to something else; that is beyond the scope of this page though).

Be careful if you cut and paste that you don't accidentally overwrite settings you need. Probably you will want to merge the new lines into your existing ones, rather than replacing everything with my version.

Examples

 * 1) Symbol keep vote.svg Keep — Reason ~
 * 2) Symbol strong support vote.svg Strong Support — Reason ~
 * 3) Symbol support vote.svg Support — Reason ~
 * 4) Symbol partial support vote.svg Partial Support — Reason ~
 * 5) Symbol neutral vote.svg Neutral — Reason ~
 * 6) Symbol neutral vote black.svg Neutral — Reason ~
 * 7) Symbol abstain vote.svg Abstain — Reason ~
 * 8) Symbol no support vote.svg No Support — Reason ~
 * 9) Symbol oppose vote.svg Oppose — Reason ~
 * 10) Symbol delete vote.svg Delete — Reason ~
 * 11) Symbol wait vote.svg Wait — Reason ~
 * 12) Symbol split vote.svg Split — Reason ~
 * 13) Symbol merge vote.svg Merge — Reason ~
 * 14) Symbol move vote.svg Move — Reason ~
 * 15) Symbol redirect vote.svg Redirect — Reason ~
 * 16) Symbol redirect vote2.svg Transwiki — Reason ~
 * Symbol comment vote.svg Comment — Thoughts ~
 * Symbol note.svg Note — Thoughts ~
 * Symbol information vote.svg Info — Thoughts ~
 * Symbol question.svg Question — Thoughts ~
 * Symbol reply.svg Reply — Thoughts ~
 * Symbol dot dot dot.svg Follow Up — Thoughts ~
 * Green check.svg Done — Details ~
 * Red x.svg Not Done — Details ~

Code to generate the icon versions
XEBOrder='_KEEP,_SSUP,_SUPP,_PSUP,_NEU1,_NEU2,_ABST,_NSUP,_OPPO,_DELE,_WAIT,_SPLI,_MERG,_MOVE,_REDI,_TRAN,_COMM,_NOTE,_INFO,_QUES,_REPL,_FOLL,_DONE,_NOTD'; myButtons={ '_KEEP':, '_SSUP':, '_SUPP':, '_PSUP':, '_NEU1':, '_NEU2':, '_ABST':, '_NSUP':, '_OPPO':, '_DELE':, '_WAIT':, '_SPLI':, '_MERG':, '_MOVE':, '_REDI':, '_TRAN':, '_COMM':, '_NOTE':, '_INFO':, '_QUES':, '_REPL':, '_FOLL':, '_DONE':, '_NOTD':, }

Examples

 * 1) Keep — Reason ~
 * 2) Strong Support — Reason ~
 * 3) Support — Reason ~
 * 4) Partial Support — Reason ~
 * 5) Neutral — Reason ~
 * 6) Abstain — Reason ~
 * 7) No Support — Reason ~
 * 8) Oppose — Reason ~
 * 9) Delete — Reason ~
 * 10) Wait — Reason ~
 * 11) Split — Reason ~
 * 12) Merge — Reason ~
 * 13) Move — Reason ~
 * 14) Redirect — Reason ~
 * 15) Transwiki — Reason ~
 * Comment — Thoughts ~
 * Note — Thoughts ~
 * Info — Thoughts ~
 * Question — Thoughts ~
 * Reply — Thoughts ~
 * Follow Up — Thoughts ~
 * Done — Details ~
 * Not Done — Details ~

Code to generate the iconless versions
XEBOrder='_KEEP,_SSUP,_SUPP,_PSUP,_NEUT,_ABST,_NSUP,_OPPO,_DELE,_WAIT,_SPLI,_MERG,_MOVE,_REDI,_TRAN,_COMM,_NOTE,_INFO,_QUES,_REPL,_FOLL,_DONE,_NOTD'; myButtons={ '_KEEP':['http://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Symbol_keep_vote.svg/21px-Symbol_keep_vote.svg.png','Keep',"#Keep — ",' '+'','Reason'], '_SSUP':['http://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Symbol_strong_support_vote.svg/21px-Symbol_strong_support_vote.svg.png','Strong Support',"#Strong Support — ",' '+'','Reason'], '_SUPP':['http://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/21px-Symbol_support_vote.svg.png','Support',"#Support — ",' '+'','Reason'], '_PSUP':['http://upload.wikimedia.org/wikipedia/commons/thumb/3/37/Symbol_partial_support_vote.svg/21px-Symbol_partial_support_vote.svg.png','Partial Support',"#Partial Support — ",' '+'','Reason'], '_NEUT':['http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_neutral_vote.svg/21px-Symbol_neutral_vote.svg.png','Neutral',"#Neutral — ",' '+'','Reason'], '_ABST':['http://upload.wikimedia.org/wikipedia/commons/thumb/6/61/Symbol_abstain_vote.svg/21px-Symbol_abstain_vote.svg.png','Abstain',"#Abstain — ",' '+'','Reason'], '_NSUP':['http://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Symbol_no_support_vote.svg/21px-Symbol_no_support_vote.svg.png','No Support',"#No Support — ",' '+'','Reason'], '_OPPO':['http://upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/21px-Symbol_oppose_vote.svg.png','Oppose',"#Oppose — ",' '+'','Reason'], '_DELE':['http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_delete_vote.svg/21px-Symbol_delete_vote.svg.png','Delete',"#Delete — ",' '+'','Reason'], '_WAIT':['http://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Symbol_wait_vote.svg/22px-Symbol_wait_vote.svg.png','Wait',"#Wait — ",' '+'','Reason'], '_SPLI':['http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Symbol_split_vote.svg/21px-Symbol_split_vote.svg.png','Split',"#Split — ",' '+'','Reason'], '_MERG':['http://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Symbol_merge_vote.svg/21px-Symbol_merge_vote.svg.png','Merge',"#Merge — ",' '+'','Reason'], '_MOVE':['http://upload.wikimedia.org/wikipedia/commons/thumb/5/50/Symbol_move_vote.svg/22px-Symbol_move_vote.svg.png','Move',"#Move — ",' '+'','Reason'], '_REDI':['http://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Symbol_redirect_vote.svg/21px-Symbol_redirect_vote.svg.png','Redirect',"#Redirect — ",' '+'','Reason'], '_TRAN':['http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_redirect_vote2.svg/22px-Symbol_redirect_vote2.svg.png','Transwiki',"#Transwiki — ",' '+'','Reason'], '_COMM':['http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/21px-Symbol_comment_vote.svg.png','Comment',"Comment — ",' '+'','Thoughts'], '_NOTE':['http://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Symbol_note.svg/21px-Symbol_note.svg.png','Note',"Note — ",' '+'','Thoughts'], '_INFO':['http://upload.wikimedia.org/wikipedia/commons/thumb/8/8c/Symbol_information_vote.svg/21px-Symbol_information_vote.svg.png','Info',"Info — ",' '+'','Thoughts'], '_QUES':['http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_question.svg/21px-Symbol_question.svg.png','Question',"Question — ",' '+'','Thoughts'], '_REPL':['http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Symbol_reply.svg/21px-Symbol_reply.svg.png','Reply',"Reply — ",' '+'','Thoughts'], '_FOLL':['http://upload.wikimedia.org/wikipedia/commons/thumb/3/30/Symbol_dot_dot_dot.svg/21px-Symbol_dot_dot_dot.svg.png','Follow Up',"Follow Up — ",' '+'','Thoughts'], '_DONE':['http://upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/22px-Green_check.svg.png','Done',"Done — ",' '+'','Details'], '_NOTD':['http://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Red_x.svg/22px-Red_x.svg.png','Not Done',"Not Done — ",' '+'','Details'], }