Forum:Hilite Bots

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Forums: Yew Grove > Hilite Bots
Archive
This page or section is an archive.
Please do not edit the contents of this page.
This thread was archived on 8 January 2010 by Azliq7.

I propose:

  • Adding bots back to the [[MediaWiki:Common.css/hilite|hilite list]] as bots sometimes have edits reverted mistakenly, any user can have "bot" in their username, and it shows that the bot is approved.
  • Switch to using a much smaller hilite file and use a simple class rather than CSS "hacks". Existing locations of hilites should be preserved, at least with the testing I have done.
  • Merge the [[MediaWiki:Common.css/hilite|hilite list]] and Common.css as the current method slows page load(two files rather than one, and the import delays the loading of Common.css) and is unnecessary now with the much smaller page size.

This can be seen at my sandbox, which ironically was generated by TehKittyBot.

Discussion

Support - As nom. - TehKittyCatTalk Wikian-Book 22:10, October 21, 2009 (UTC)

Support - Will reduce confusion caused by users that have the word bot in them. Also, the smaller file and merging of the two sound good to me. Less load, the better. ~MuzTalk 22:14, October 21, 2009 (UTC)

Support - Reduces confusion and reduces lag? Win-win! Quest.png Gaz Lloyd 7:^]Events!99s 22:17, October 21, 2009 (UTC)

Pending - Catcrewser, can you tell me

  1. Why we need to merge the two pages.
  2. What the bot hilite color will be.

Magic-icon.pngStelercusIlluminated Book of Balance.png 22:47, October 21, 2009 (UTC)

  1. Reduces page load lag (a good thing, no?)
  2. This colour, but can be changed. Quest.png Gaz Lloyd 7:^]Events!99s 22:51, October 21, 2009 (UTC)
  1. The pages do not NEED to be, but doing so will somewhat speed up the loading of common.css.
  2. The colour previously used was a shade of gray, although a better colour could be chosen if needed.
Edit conflict. - TehKittyCatTalk Wikian-Book 22:52, October 21, 2009 (UTC)

How about Moron? Some skins' backgrounds are grey so it'd be either invisible or hard to see... — Enigma 23:31, October 21, 2009 (UTC)

Psst. The colour is maroon. Just a simple spelling error? ~MuzTalk 23:40, October 21, 2009 (UTC)
Oops OMG!Enigma 06:17, October 22, 2009 (UTC)

Support - Noting that any colour can be used and changed, it seems good to me. It also tells me that it's just not some random person playing around. Ryan PM 23:36, October 21, 2009 (UTC)

Support - would be quite useful. Andrew talk 23:40, October 21, 2009 (UTC)

Support - Only if we use some other color like this one. They gray hardly shows up, (mayhaps because I have a gray/purple skin, but the point rests.) Magic-icon.pngStelercusIlluminated Book of Balance.png 00:57, October 22, 2009 (UTC)

Support - A good idea. I would also like if the highlight colours were the same as the userbox colours. Although it is not important, the crowns are commonly used and should be the same as the highlight. Cheers, Chicken7 >talk 09:43, October 22, 2009 (UTC)

Comment - Although combining the CSS files is much faster, the difference might be negligible nowadays. (Question: How much faster is it?)

Slower loading only seem to affect IE, rather than other browsers such as Firefox. The other browsers seem to load stylesheets concurrently, while IE loads them sequentially. Here is a page that discusses the loading times of pages using @import: http://www.stevesouders.com/blog/2009/04/09/dont-use-import/

Here is a page where users discuss CSS:

Why load a Hilite CSS file in every page, if it is not going to be used in that page? We know which pages require the highlighting. Usually, it is Special:RecentChanges, Special:Log, "view=history", "view=diff", etc. (Question: Is it possible to load the Hilite CSS only at these pages? Maybe using the LINK tag with JavaScript?) I had discussed this earlier with Quarenon and had him look into it, but I didn't follow up on this... so ask Quarenon if he has worked on this.

Who require Hilites the most? Usually it would be 'crats, admins, rollbackers, and users who monitor the edits of other users. So, should every user be forced to see the highlights if they don't want to? If we combined the two CSS files, there is no way of disabling the highlights. With the current method of using @import, a user may choose to disable highlighting by simply blocking the Hilite CSS from loading. (I know it is unlikely that someone actually wants to disable highlighting, but who knows?)

While I support the first two proposals, I am against the proposal to merge the two CSS files. With the "much smaller page size", the loading time would be negligible. And it would be easier to manage and control the two CSS files if they were kept separate.   az talk   10:17, October 22, 2009 (UTC)

Support highlighting bots, using classes instead of hacks, neutral on merging files - Bots should be an easily identifiable different color like moron, er maroon so people know they are bot edits. Classes sounds like cleaninger coding than CSS hacks. I don't know about the last one, so I'll let you guys figure it out. Air rune.png Tollerach hates SoF Fire rune.png 10:22, October 22, 2009 (UTC)

Support - You know more about it than I do. If you think it's good, it probably is. Ancient talisman.png Oil4 Talk 21:13, October 22, 2009 (UTC)


Reviving a dead thread

I found a solution for the hilite CSS to make it even smaller than Catscrewer's version.

Instead of:

table.diff a[href|="/wiki/User:Example"],
ul.special li a[href|="/wiki/User:Example"],
span.changedby a[href|="/wiki/User:Example"],
div table tr td a[href|="/wiki/User:Example"],
ul#pagehistory li a[href|="/wiki/User:Example"] { color: #FF69B4; }

or:

.mw-userlink[href="/wiki/User:Example"],.forum_editor [href="/wiki/User:Example"],

I'm going to simply use:

a[href="/wiki/User:Example"]

This should work, but this would technically highlight all the links to a particular userpage, including those that were not highlighted before. So, if you don't like this, I will switch to Catscrewer's version.

The highlight colour for the bots, however, was not finalised. Both the grey and the maroon was not suitable, IMO, so I chose a new colour instead. The colour is sorta dirty pinkish, or pastel pink, or something in between. The other colours (admin, crat, helper, staff) have also been tweaked slightly to better suit the various backgrounds we have in this wiki.

White background
User Old colour Userbox colour (Chicken7) New colour (Az)
Administrator: old colour userbox colour new colour
Bureaucrat: old colour userbox colour new colour
Bot: - userbox colour new colour
Wikia helper: old colour userbox colour new colour
Wikia staff: old colour userbox colour new colour
Blue background (Gaming)
User Old colour Userbox colour (Chicken7) New colour (Az)
Administrator: old colour userbox colour new colour
Bureaucrat: old colour userbox colour new colour
Bot: - userbox colour new colour
Wikia helper: old colour userbox colour new colour
Wikia staff: old colour userbox colour new colour
Grey background
User Old colour Userbox colour (Chicken7) New colour (Az)
Administrator: old colour userbox colour new colour
Bureaucrat: old colour userbox colour new colour
Bot: - userbox colour new colour
Wikia helper: old colour userbox colour new colour
Wikia staff: old colour userbox colour new colour

Have a look... are the new colours suitable for your background?   az talk   12:22, December 6, 2009 (UTC)

EDIT: Just to be clarify things: the third column is based on RuneScape:Userboxes/Wiki crowns suggested earlier by User:Chicken7, and they seem to be suitable only in the white background. The fourth column is suitable in the three example skins that I have included above.   az talk   12:59, December 6, 2009 (UTC)

Comment - I don't really like them. I think the bots should be a brownish colour, just like their 'crown'. And I'm not really a fan of your slight changes to the old colour. Ancient talisman.png Oil4 Talk 12:36, December 6, 2009 (UTC)

You can see that I used "userbox brown" for bots in Column #3 in Example #2. I don't think it appears too well in the Gaming skin. And the slight changes are only noticeable in the admin colour which currently isn't suitable in the grey background, and for the rest the change is too small to be noticeable. It is merely a coding change.   az talk   12:54, December 6, 2009 (UTC)
Yes, now I see. Ancient talisman.png Oil4 Talk 13:01, December 6, 2009 (UTC)

Support If it's going to help people, then sure Swiz Talk Review Me 15:42, December 6, 2009 (UTC)

Conditional Support - I oppose changing the format from CSS hacks to this shorter code. The proposed code does not highlight as many elements as the current version, and the current version is not highlighting everything already. however, I support the proposed color change. Magic-icon.pngStelercusIlluminated Book of Balance.png 17:36, December 6, 2009 (UTC)

The new code has kicked in. The above comment was striked out as per a comment on User talk:Azliq7. Magic-icon.pngStelercusIlluminated Book of Balance.png 01:30, December 9, 2009 (UTC)

Support colours, neutral code - I am not so great at CSS so am unsure what its effects will be. I'll wait for some other opinions. The colours look much better and can be seen well on all skins, good work! But, I think we should maybe then change the userbox colours and crowns to match these, for the sake of consistency Lol heers, Chicken7 >talk 22:39, December 6, 2009 (UTC)


Testing new CSS colours and code

Comment - I wasn't really satisfied with the colours, so I tweaked it again. Bots are now orange, admins are greener, and crats bluer. I'll test out the new highlight colours (and shortened CSS code) for two weeks, and if there are any issues or complaints, we'll discuss it further. Thanks.   az talk   23:34, December 8, 2009 (UTC)

I've made a minor tweak by replacing href|="foo" with href="foo" in the file since the former is the syntax used for matching hyphen-separated lists in attributes [1]. --Quarenon  Talk 01:49, December 9, 2009 (UTC)

Closed - No complaints... Wink   az talk   11:29, January 8, 2010 (UTC)