Forum:Dismiss feature on SiteNotice

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Forums: Yew Grove > Dismiss feature on SiteNotice
This page or section is an archive.
Please do not edit the contents of this page.
This thread was archived on 25 May 2009 by Bonziiznob.
First discussion on changing the site notice.

I have added the code to [[MediaWiki:Common.js]] which will allow us to rid the dismiss feature that comes by default with the MediaWiki:sitenotice, however at present it is all commented. It is recommended to use this when using a collapsible sitenotice, which we now are. Do we want to rid the dismiss feature now, or keep it?

Bonziiznob Talk

04:33, 21 May 2009 (UTC)


Implement Code to Remove Dismiss Feature - It's redundant to have a hide feature and a dismiss feature imo. I think we can add it.

Bonziiznob Talk

04:33, 21 May 2009 (UTC)

Support of above idea See my comment below --— Enigma 05:35, 21 May 2009 (UTC)

I want to be able to completely remove the feature every time I log in. I do not want even a single line on my page to mention the site notice. If that is achievable with hide then fine, we can remove dismiss.--Degenret01 04:36, 21 May 2009 (UTC)

Comment - We could move the dismiss button so that it displays next to the [hide] button. Quest map icon.png Laser Dragon Task map icon.png 04:53, 21 May 2009 (UTC)

That would work.--Degenret01 05:02, 21 May 2009 (UTC)
Do it! 05:03, 21 May 2009 (UTC)
I do not know how.--Degenret01 05:33, 21 May 2009 (UTC)
I don't think we should have a dismiss button at all. Many users miss out on things (Like Wikifests) because they dismissed the message because they thought it was annoying. If we only have a hide button, you can hide it so it's not annoying and the message is still there. --— Enigma 05:35, 21 May 2009 (UTC) See below
Umm, I really hate protecting people from their own mistakes. And those same people would still hide it and miss things anyhow.--Degenret01 05:39, 21 May 2009 (UTC)
Such is how the world orbits, I suppose --— Enigma 05:41, 21 May 2009 (UTC)

Strongly oppose removal of 'dismiss' feature - I really don't care if loads of wiki users miss out on wikifests and stuff because they dismiss the message without reading it properly and don't see how it would be any different with a 'hide' button instead (these people would keep it perminantly hidden anyway). Removing the dismiss option would just maker clutter for me ant other people who do read the messages, perhaps act on some of the messages, and then don't want or need to see them again. Seems crazy to use up page real-estate on redundant text. --Gold ore.png Mercifull UK serv.svg (Talk) 07:49, 21 May 2009 (UTC) Oppose - Per Mercifull. Statistics.png Lvl 3 skils3 Choice! Talk~ Holiday Signup ~Hiscores 07:50, 21 May 2009 (UTC)

Well, I was surprised that you already implented this. There was a final voting going on for less then a day and you already call it a consensus. And my question on the previous thread still isn't answered. Now you may have put a table in it, but that dismiss button is still there. Now where is the improvement? lol I suggest this.. without a dismiss link;

or this

Adult chameleon (automatic).png Anurin Talk · Sign! . 08:06, 21 May 2009 (UTC)

I'm sorry, but there is no final vote or whatever you are asking for. Sure, there was something made, but the RuneScape Wiki is not a democracy, and I ignored the vote and considered the supports that were made along with the others for the table. In additional while you are here, I will bring up another concern I had noticed you had made. All changes, including placement of templates on the mainspace must be achieved through a consensus. Please don't move anything around without consensus to do so. 08:15, 21 May 2009 (UTC)
- There was a concensus for no dismiss button. What do you think about my idea above?
- If that poll on the mainpage really concerned you then you would have undone that. Hundreds of people could have. Over 1500 voted in it.
- Now that were 2 points that Degenret01 made you do different?? There's more people then just him.
- And I haven't seen a rule anywhere that you are not allowed to edit the mainpage without a concensus. I understand people appreciate a concensus tho and if I didn't then the mainpage wouldof had a complete makeover already. If there is a rule, then it's hidden away to well. :o Adult chameleon (automatic).png Anurin Talk · Sign! . 08:27, 21 May 2009 (UTC)
Small petty things. My involvement with this discussion is over. I have offered my opinion. 09:57, 21 May 2009 (UTC)

Comment - When I hide the sitenotice, it shows up again when I go to another page. I have to click "Hide" every time I visit another page, which is a tad bit annoying. Is anyone else having this problem?  Tien  12:43, 21 May 2009 (UTC)

That's the way how the collapsible table works. What do you think of "Hide" on default? Like I showed in the examples above. You could see if it's updated by looking at the date. --Adult chameleon (automatic).png Anurin Talk · Sign! . 13:08, 21 May 2009 (UTC)
Surely hide on default defeats the whole purpose of a site notice. Even less people are going to unhide it to read than people click to dismiss before reading. --Gold ore.png Mercifull UK serv.svg (Talk) 13:12, 21 May 2009 (UTC)
I'd prefer a "hide on default" set-up. With that, we can simply "unhide" it to see if there's any news, and then we can "hide" it again and navigate pages without that table taking up a quarter of the screen.  Tien  15:41, 21 May 2009 (UTC)

Oppose- WTF(ruit). It just unhides itself whenever you go to another page. Default it to be hidden? And it's much uglier than the original setup, IMO. 13:20, 21 May 2009 (UTC)

Comment- And the top should just read "Notices." Once again, IMO. 13:21, 21 May 2009 (UTC)

Support moving Dismiss next to Hide - As Dr5ag2on1 said it can be moved next to the hide button, and since some people still use it apparently it should stay. I just thought it looked a little odd with the table and the dismiss lined up on the right side. Zaros tally.PNGBladeQuick chat button.png# 17:41, 21 May 2009 (UTC)

Oppose, support moving dismiss button next to hide button - Per all. It looks rather silly the current way it is--— Enigma 22:41, 21 May 2009 (UTC)

WHAT is the point in having a dismiss button next to a hide button??? If you hide it you see it on the next page again.. and if you dismiss it you see it never again!
Have it hidden on default without a dismiss button and just click show to read the notice? Adult chameleon (automatic).png Anurin Talk · Sign! . 22:54, 21 May 2009 (UTC)

Comment - The "dismiss" link cannot be moved next to the "show/hide" link that easily, as suggested by Dragon. This is because the link is hardcoded in the HTML page itself. Although it seems easy, it involves removing the current dismiss link, and adding our own version of dismiss link into the collapsible wikitable using JavaScript. I haven't tried this myself, and I'm not planning to.

I would strongly discourage this option as the steps involved are too complicated. Overall, it would be much easier to remove the link, than to move it. (Whatever the community decides, I'm neutral on the issue of removing or keeping the "dismiss" link.) If we decide to keep it, then we're kinda stuck with the current "dismiss" link.

The idea of remembering a user's preference (i.e. showing/hiding the notice) involves using a cookie. An example of a cookie being used would be the Special:Watchlist checkbox remembering whether the AJAX auto-refreshing feature is switched on or off. The code from the AJAX auto-refreshing script can be modified and suited for the Site Notice.

On another note, if the community decides that the wikitable should be collapsed on default, it is fairly simple to modify the current setting. Just add "collapsed" at the end of the class for the wikitable:

class="wikitable collapsible collapsed"

instead of:

class="wikitable collapsible"
SiteNotice (default: not collapsed; current setting)
  • Notice 1
  • Notice 2

Hope that helps.   az talk   05:02, 22 May 2009 (UTC)

Are you like some undercover Wiki Staff? Whatever it is, you really seem to know your stuff. Thanks for the info. 05:47, 22 May 2009 (UTC)

Did every1 scroll past my collapsed tables or something? Az, if you could add that as a cookie that would be great, so that it shows on default but keeps hidden once you clicked hide. :D Adult chameleon (automatic).png Anurin Talk · Sign! . 07:49, 22 May 2009 (UTC)

I've already started to write some potential JavaScript that saves if the table was hidden (and unhides it when the id changes), as well as moves the dismiss button (it doesn't really move it, it deletes one and creates another). It might be best to have the table collapsed by default, and have it automatically expand when the sitenotice id is updated. Quest map icon.png Laser Dragon Task map icon.png 15:23, 22 May 2009 (UTC)
Awesome, just what I was thinking. Quest.png Gaz Lloyd 7:^]Events!99s 15:48, 22 May 2009 (UTC)

Didn't miss your tables Elf. But it is clear there will not be a consensus to remove the dismiss. People like to be able to do that, not waste screen coverage.--Degenret01 07:53, 22 May 2009 (UTC)

Maybe you can remove some unnessecary break lines from the SiteNotice. Adult chameleon (automatic).png Anurin Talk · Sign! . 07:59, 22 May 2009 (UTC)

Comment ya know what. All the other ideas posted look rubbish to me. The old system was simple and worked. A new message popped up when it was changed and I could dismiss it with the click of a button. If I had my own way i'd revert it back to the way it was before. All these wiki tables with hide and unhide functions just add bloat to what is essentially just a pop up message --Gold ore.png Mercifull UK serv.svg (Talk) 08:05, 22 May 2009 (UTC)

New JavaScript is ready.

I have finished writing some JavaScript that will make the requested changes to the SiteNotice. I have added it to [[MediaWiki:Common.js]], but it is currently commented out. The new script:

  • Moves the dismiss link into the SiteNotice table.
  • Saves the show/hide status of the SiteNotice in a cookie.
  • Automatically expands the SiteNotice when the ID is updated.
  • Works no matter if the table is expanded or collapsed by default.

If you would like to try the script out, add the JavaScript on User:Dr5ag2on1/monaco.js to the appropriate .js page for your current skin. Then follow the instructions at the top of the .js page to bypass your browser's cache.

Are there any suggestions for changes, or is the new script ready to go live? Quest map icon.png Laser Dragon Task map icon.png 01:03, 24 May 2009 (UTC)

Awesome! This is exactly what I (and probably we) want. The codes works fine for me! I suggest moving the buttons to the middle;

Also, it seems like there are currently some break lines above the SiteNotice. I think you need to remove some spaces in the code there. Adult chameleon (automatic).png Anurin Talk · Sign! . 08:26, 24 May 2009 (UTC)

Request for closure - The following changes were made based on suggestions by users:

  • Activated the script by Dragon (nice!) in [[MediaWiki:Common.js]] - see above for more details
  • Fixed white space (in MediaWiki:Sitenotice) and padding (in MediaWiki:Common.css)
  • Added "Last updated on" text for the title.   az talk   15:02, 25 May 2009 (UTC)
Well, the changes have already been implemented, so why not close it. 16:14, 25 May 2009 (UTC)