Jump to content

User:Pythoncoder/Scripts/voteSymbols

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pythoncoder (talk | contribs) at 22:26, 11 January 2020 (Changelog: add to changelog). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Vote Symbols
Examples of symbols
DescriptionDisplays symbols next to votes
Author(s)Pythoncoder
StatusStable
First releasedSeptember 13, 2006; 18 years ago (2006-09-13)
Version3.0.7
UpdatedOctober 4, 2019; 5 years ago (2019-10-04)
BrowsersTested with Firefox 69 and Mobile Safari but should work with others
SkinsTested with Vector but should work with others
SourceUser:Pythoncoder/Scripts/voteSymbols.js

Vote Symbols[1] (source) is a script that displays symbols next to users' votes, !votes, and closes. Adding symbols next to votes helps distinguish them quickly, through their different colors.

Now compatible with high-resolution displays!

History of voting symbols

There used to be templates one could use to put symbols next to their !votes in discussions. However, these were deleted as a result of many, many, many, many deletion discussions and DRVs (I might have missed a few), leading to the salting of {{support}} and {{oppose}}.

To bring back this feature, a script was written by Ais523 in 2006. This is an update to that script which adds more icons and votes and takes out a couple of less useful votes that generate frequent false positives.

Installation

To install it, copy and paste this code into your common.js page:

importScript('User:Pythoncoder/voteSymbols.js'); // Linkback: [[User:Pythoncoder/voteSymbols.js]]

Supported symbols

  • : Support, Endorse, Accept, Good block
  • : Keep, Allow, Permit
  • : Oppose, Overturn, Object, Disallow, Decline, Bad block
  • : Delete, Remove, Pull
  • : Neutral
  • : Merge, Upmerge
  • : Move, Transwiki, Convert, Transwikify
  • : Redirect, Retarget
  • : Relist, Subst, Change, Recuse
  • : Comment, Note
  • : Delist, Demote, Unsupport
  • : Question, Query
  • : Disambiguate, Dab, Dabify, SIA
  • : Wait, Hold
  • : Rename
  • : Undelete, Restore
  • : Close
  • : Split
  • : Abstain, Unnecessary
  • : Draftify, Incubate
  • : Userfy
  • : Listify
  • : Reply
  • : Salt
  • : Withdraw, Withdrawn
  • : Info, Information
  • : Update, Answer
  • : Snow, Snowball
  • : Blank
  • : Speedy Delete, Speedy (with nothing after it)
  • : Speedy Keep
  • : Speedy Redirect
  • : Strong Support, Strongly Support
  • : Weak Support
  • : Strong Oppose, Strongly Oppose
  • : Weak Oppose
  • : Partial Support, Conditional Support
  • : Ongoing
  • : Tag, Retag
  • : Historical

Supported venues

This script contains symbols designed for the following venues:

It may work on other pages as well.

Changelog

  • v0: Added support, endorse, keep, oppose, overturn, object, delete, neutral, merge, upmerge, move, rename, userfy, transwiki, redirect, opinion, relist, subst, salt, change, comment, update, note, delist, question, split, wait, BJAODN
  • v0.0.1 (Sep 25 2006), v0.0.2 (Oct 2 2006): Bug fixes
  • v0.0.3 (Jan 2 2008): Changed Comment
  • v0.0.4 (May 24 2008): Added List, Restore, Undelete, Close
  • v0.0.5 (Apr 13 2009), v0.0.6 (Jul 15 2014): Bug fixes
  • v0.1 (Sep 12 2014): Added Allow, Listify, Retarget
  • v0.1.1 (Oct 26 2016): Added Permit, Disallow
  • v0.1.2 (Jul 2 2017): Bug fixes
  • v0.1.3 (Jul 23 2017): Added Convert, Disambiguate, Dab, Set index, SIA
  • v0.1.4 (Jul 31 2017): Bug fixes
  • v0.1.5 (Feb 15 2018): Added Dabify
  • v1 (Mar 27 2018): First version by me — Removed Opinion, List (likely to cause false positives)
  • v1.0.1 (Apr 12 2018): Removed BJAODN
  • v2 (May 9 2018): Added Unsupport, No consensus, Abstain, Draftify, Draft, Incubate, Reply, Withdraw, Withdrawn, Snow, Snowball, WP:SNOW; Changed Rename, Userfy, Listify, Convert, Salt, Split, Set index, SIA, Disambiguate, Dabify, Dab
  • v2.0.1 (May 10 2018): Added No consensus
  • v2.0.2 (May 24 2018): Added Kept; removed Draft, No consensus
  • v2.0.3 (May 28 2018): Re-added code excluding anything with "no"; changed Rename icon; removed Kept
  • v2.0.4 (Jul 14 2018): Added Comments, Info, Information; changed Update, Convert; fixed SIA; removed Set index, WP:SNOW
  • v2.0.5 (Oct 12 2018): Added Hold
  • v2.0.6 (Nov 9 2018): Added Arbitration votes (Accept, Decline, Recuse), Remove
  • v2.1 (Dec 10 2018): Added support for high-resolution displays
  • v2.1.1 (Feb 14 2019): Disabled in draftspace
  • v2.1.2 (Mar 3 2019): Added Unnecessary
  • v2.1.3 (Mar 6 2019): Fixed false positives resulting from HTML attributes
  • v3 (Mar 7 2019): Added Blank, Speedy, Speedy Delete, Speedy Keep, Speedy Redirect, Strong Support, Strongly Support, Weak Support, Strong Oppose, Strongly Oppose, Weak Oppose, Partial Support, Conditional Support
  • v3.0.1 (Mar 8 2019): Added Demote, Answer; rewrote code to be more efficient and catch errors
  • v3.0.2 (Mar 25 2019): Added Pull, Ongoing, Query; excluded portals
  • v3.0.3 (Mar 27 2019): Added Repost
  • v3.0.4 (Apr 12 2019): Excluded templates, categories, files, help pages, and mediawiki pages
  • v3.0.5 (May 10 2019): Added Good Block, Bad Block
  • v3.0.6 (Jun 11 2019): Added Transwikify
  • v3.0.7 (Oct 4 2019): Added Tag, Retag, Historical

To-do

  • I encourage suggestions for additional symbols and keywords.
  • Add "no consensus" without putting a symbol next to every time "consensus" appears in bold
  • Have "Keep blanked" only show the blank votesymbol
  • Other votes: refine

Known bugs

  • There appear to be some blank images that appear next to bold text in places like WP:CD and WP:DP. These may have been created by the script but I'm not sure how.

Discussing this script

Please discuss this script on my talk page. Bug reports and suggestions for improvement are appreciated.

See also

Notes

  1. ^ Copy the following code, edit your user JavaScript, then paste:
    {{subst:lusc|1=User:Pythoncoder/Scripts/voteSymbols.js}}