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.
Version with icons
[edit]Examples
[edit]- Keep — Reason ~~~~
- Strong Support — Reason ~~~~
- Support — Reason ~~~~
- Partial Support — Reason ~~~~
- Neutral — Reason ~~~~
- Neutral — Reason ~~~~
- Abstain — Reason ~~~~
- No Support — Reason ~~~~
- Oppose — Reason ~~~~
- Delete — Reason ~~~~
- Wait — Reason ~~~~
- Split — Reason ~~~~
- Merge — Reason ~~~~
- Move — Reason ~~~~
- Redirect — Reason ~~~~
- Transwiki — Reason ~~~~
- Comment — Thoughts ~~~~
- Note — Thoughts ~~~~
- Info — Thoughts ~~~~
- Question — Thoughts ~~~~
- Reply — Thoughts ~~~~
- Follow Up — Thoughts ~~~~
- Done — Details ~~~~
- Not Done — Details ~~~~
Code to generate the icon versions
[edit]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':['http://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Symbol_keep_vote.svg/21px-Symbol_keep_vote.svg.png','Keep',"#[[File:Symbol keep vote.svg|15px]] '''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',"#[[File:Symbol strong support vote.svg|15px]] '''Strong Support''' — ",' ~~'+'~~','Reason'], '_SUPP':['http://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/21px-Symbol_support_vote.svg.png','Support',"#[[File:Symbol support vote.svg|15px]] '''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',"#[[File:Symbol partial support vote.svg|15px]] '''Partial Support''' — ",' ~~'+'~~','Reason'], '_NEU1':['http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_neutral_vote.svg/21px-Symbol_neutral_vote.svg.png','Neutral',"#[[File:Symbol neutral vote.svg|15px]] '''Neutral''' — ",' ~~'+'~~','Reason'], '_NEU2':['http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Symbol_neutral_vote_black.svg/21px-Symbol_neutral_vote_black.svg.png','Neutral',"#[[File:Symbol neutral vote black.svg|15px]] '''Neutral''' — ",' ~~'+'~~','Reason'], '_ABST':['http://upload.wikimedia.org/wikipedia/commons/thumb/6/61/Symbol_abstain_vote.svg/21px-Symbol_abstain_vote.svg.png','Abstain',"#[[File:Symbol abstain vote.svg|15px]] '''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',"#[[File:Symbol no support vote.svg|15px]] '''No Support''' — ",' ~~'+'~~','Reason'], '_OPPO':['http://upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/21px-Symbol_oppose_vote.svg.png','Oppose',"#[[File:Symbol oppose vote.svg|15px]] '''Oppose''' — ",' ~~'+'~~','Reason'], '_DELE':['http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_delete_vote.svg/21px-Symbol_delete_vote.svg.png','Delete',"#[[File:Symbol delete vote.svg|15px]] '''Delete''' — ",' ~~'+'~~','Reason'], '_WAIT':['http://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Symbol_wait_vote.svg/22px-Symbol_wait_vote.svg.png','Wait',"#[[File:Symbol wait vote.svg|15px]] '''Wait''' — ",' ~~'+'~~','Reason'], '_SPLI':['http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Symbol_split_vote.svg/21px-Symbol_split_vote.svg.png','Split',"#[[File:Symbol split vote.svg|15px]] '''Split''' — ",' ~~'+'~~','Reason'], '_MERG':['http://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Symbol_merge_vote.svg/21px-Symbol_merge_vote.svg.png','Merge',"#[[File:Symbol merge vote.svg|15px]] '''Merge''' — ",' ~~'+'~~','Reason'], '_MOVE':['http://upload.wikimedia.org/wikipedia/commons/thumb/5/50/Symbol_move_vote.svg/22px-Symbol_move_vote.svg.png','Move',"#[[File:Symbol move vote.svg|15px]] '''Move''' — ",' ~~'+'~~','Reason'], '_REDI':['http://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Symbol_redirect_vote.svg/21px-Symbol_redirect_vote.svg.png','Redirect',"#[[File:Symbol redirect vote.svg|15px]] '''Redirect''' — ",' ~~'+'~~','Reason'], '_TRAN':['http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_redirect_vote2.svg/22px-Symbol_redirect_vote2.svg.png','Transwiki',"#[[File:Symbol redirect vote2.svg|15px]] '''Transwiki''' — ",' ~~'+'~~','Reason'], '_COMM':['http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/21px-Symbol_comment_vote.svg.png','Comment',"[[File:Symbol comment vote.svg|15px]] '''Comment''' — ",' ~~'+'~~','Thoughts'], '_NOTE':['http://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Symbol_note.svg/21px-Symbol_note.svg.png','Note',"[[File:Symbol note.svg|15px]] '''Note''' — ",' ~~'+'~~','Thoughts'], '_INFO':['http://upload.wikimedia.org/wikipedia/commons/thumb/8/8c/Symbol_information_vote.svg/21px-Symbol_information_vote.svg.png','Info',"[[File:Symbol information vote.svg|15px]] '''Info''' — ",' ~~'+'~~','Thoughts'], '_QUES':['http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_question.svg/21px-Symbol_question.svg.png','Question',"[[File:Symbol question.svg|15px]] '''Question''' — ",' ~~'+'~~','Thoughts'], '_REPL':['http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Symbol_reply.svg/21px-Symbol_reply.svg.png','Reply',"[[File:Symbol reply.svg|15px]] '''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',"[[File:Symbol dot dot dot.svg|15px]] '''Follow Up''' — ",' ~~'+'~~','Thoughts'], '_DONE':['http://upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/22px-Green_check.svg.png','Done',"[[File:Green check.svg|15px]] '''Done''' — ",' ~~'+'~~','Details'], '_NOTD':['http://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Red_x.svg/22px-Red_x.svg.png','Not Done',"[[File:Red x.svg|15px]] '''Not Done''' — ",' ~~'+'~~','Details'], }
Version without icons
[edit]Examples
[edit]- Keep — Reason ~~~~
- Strong Support — Reason ~~~~
- Support — Reason ~~~~
- Partial Support — Reason ~~~~
- Neutral — Reason ~~~~
- Abstain — Reason ~~~~
- No Support — Reason ~~~~
- Oppose — Reason ~~~~
- Delete — Reason ~~~~
- Wait — Reason ~~~~
- Split — Reason ~~~~
- Merge — Reason ~~~~
- Move — Reason ~~~~
- Redirect — Reason ~~~~
- 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
[edit]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'], }