Manual talk:Interface/Sitenotice

Undismissing the notice
Small question: on en.wiktionary there was a sitenotice with a "dismiss" button next to it. I pushed that button and the notice vanished, but how do I get it back? Jcwf (nl) 16:13, 15 February 2009 (UTC)
 * You need to delete the respective cookie. (In FF3, you can click on the site favicon, then "more information", then "cookies". You can probably figure out from the name which cookie you want to delete, or you can just delete them all - you'll have to log in again, but otherwise loose no data.) --Tgr 18:07, 15 February 2009 (UTC)
 * Thanks, Jcwf 05:38, 8 March 2009 (UTC)

Is it possible to make a Sitenotice be dependent on current page address?
Dear colleagues! I have a mediawiki instance at office. It has different adresses if one access to it from office network and from Internet. It is quite boring to send links to the news to my colleagues because I have to manually create one address from another. I thought I created a template which shows those two adresses like this: http://%inner_address%/index.php/ - to access from office http://%outer_address%/index.php/ - to access from outside and then I just can copy this information to clipboard. Template works fine, but I want to place this template at each page of my wiki. I can do it manually but this is not a good way. I tried to put this template into mediawiki:Sitenotice page, but it shows links to mediawiki:Sitenotice page, not to the current... Please answer, is it possible to automatically add this link to all pages and how can one do it? Slarionoff 08:58, 1 June 2011 (UTC)
 * I don't know, sorry; but if users who access the wiki from outside are (mostly) logged out and users who access it from inside are (mostly) logged in, or viceversa, you can use MediaWiki:Anonnotice for logged out users and MediaWiki:Sitenotice for logged in users. Nemo 09:20, 1 June 2011 (UTC)
 * Nemo, thank you very much, but my wiki is closed and I don't give any permissions to anons. Seems to me that this task is not as simple as I thought and hack of php code is needed. Slarionoff 12:16, 1 June 2011 (UTC)

Sitenotice displayed at bottom of page
Sitenotice works great but is there any way to get the same thing to display at the bottom of every page instead of the top?

Strange layout of the sitenotice on my wiki!
Well it works fine, but there is a strange layout of the form. Look screenshot, I have marked a problem with red line! I don't know how remove a margin from the right.

Always centered?
What controls the formatting of Sitenotice? I would like to put an alert box on my wiki for special updates, but I don't much care for all the text being centered. I suppose I could just put in style overrides, but is there a better way? Allenhuffman (talk) 15:56, 24 August 2016 (UTC)

Is possible disable SiteNotice in same categories, or namespaces, or mainPage?
Is possible to disable or hidden SiteNotice in same categories, or namespaces or at least in mainPage?

MOBILE SITENOTICE? URGENT
Hello, I wanted to ask how it was possible to make the sitenotice visible also from mobile devices? Thanks in advance for your reply. --Fierodelveneto (talk) 13:48, 2 June 2020 (UTC)

Using a template in MediaWiki:SiteNotice noticeably impacts page performance
I imported  (Russian version of Wikipedia’s  ) into my MediaWiki instance and it worked well after I tried it on the Main Page. However, when I moved the warning box to my  page to highlight the infancy of my wiki, the performance of all pages went noticeably down. Instead of taking about 1-1.5 seconds to show up, the pages started loading for 4-6 seconds, most of which were spent on TTFB (time to first byte).

Removing the template from  made the website performant as before. Adding back some other template, e.g.  impacted the performance again.

These observations suggest that there is probably some optimisation missing in  specifically. Otherwise, the cost of having a template on individual pages would be the same as the cost of having it on all pages automatically.

System info:,  , Distribution:

Caching config:

I resolved the issue for myself by not using the template from the site notice, but decided to drop a message here to warn others. Maybe this report will also inspire someone to ru the investigation and even apply the fix. It took me a few hours to investigate the problem – I thought that my server was slow or that my caching config was not good enough. Hope this message helps someone in a similar situation at least a bit :–)

Kachkaev (talk) 22:49, 1 October 2020 (UTC)