Content deleted Content added
adding script doc ย |
adding info box |
||
Line 1:
{{in use}}
{{Infobox user script
| name = UserRoleIndicator
| desc = Adds an icon next to user links based on their role
| author = [[User:Bugghost|Bugghost]]. Forked from [[User:Novem Linguae/Scripts/UserHighlighterSimple|UserHighlighterSimple]], which was made by {{ping|Novem Linguae}}, <small>which in turn was forked from a script with many authors: {{ping|Chlod|Pythoncoder|Bellezzasolo|Theopolisme|Amalthea|Ais523}}</small>
| source = [[User:Bugghost/Scripts/UserRoleIndicator.js]]
| screenshot = [[File:UserRoleIndicator examples.png|250px]]
}}
Adds a little icon next to usernames based on their user role. Forked from [[User:Novem Linguae/Scripts/UserHighlighterSimple]], and uses 90% of the same code. This fork just adds a little div with an emoji in it next to the link, rather than setting custom CSS on the link itself.
Line 10 โถ 19:
* ๐ฅ โ More than 10,000 edits
* ๐งฝ โ [[WP:NPR|New page reviewer]]
* ๐งน โ [[WP:Admin|Admin]]
* ๐ฌ โ Former Admin
* ๐ผโ โ [[WP:Bureaucrat|Bureaucrat]]
* โ๏ธ โ [[WP:ARBCOM|Arbitration Committee member]]
* ๐ฉบ โ [[M:Steward|Steward]] or [[M:Ombud|Ombud]]
* ๐ โ Wikimedia Foundation (WMF)
The links are given a tooltip when hovering, <u><span title="hello">like this</span></u>, which states the full role.
Some of the symbol choices are a bit tongue-in-cheek - they shouldn't be taken too seriously. If you have any good ideas for better emojis/unicode symbols for these roles, lemme know. (In the future I would like to expose a method for setting custom symbols/text for these roles to make this easy to change.)
The symbol is placed in a tasteful semitransparent box next to the username.
Line 27 โถ 37:
This is my first ever attempt at Wikipedia user script! If you have any issues or feedback, let me know.
As with any Unicode-on-the-web solution, your browser might display an ugly symbol instead of the intended one, depending on your browser version, your OS, the weather, and the current ___location of certain planets. If you are getting an ugly symbol instead of a nice one, let me know and I'll see if there's a replacement one that is better supported.
Note that this is mainly a fork of [[User:Novem Linguae/Scripts/UserHighlighterSimple|Novem Linguae/Scripts/UserHighlighterSimple]], and the differences are largely cosmetic. Any issues with the icon rendering incorrectly is almost definitely a bug in this script - but issues identifying correct user roles ''may'' come from somewhere else - it could be worth trying to replicate using UserHighlighterSimple and seeing if any issue you're having is replicable there too.
|