Manual talk:Interface/Sitenotice
Undismissing the notice
editSmall 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?
editDear 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/{{FULLPAGENAMEE}} - to access from office<br> http://%outer_address%/index.php/{{FULLPAGENAMEE}} - 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
editSitenotice works great but is there any way to get the same thing to display at the bottom of every page instead of the top? — Preceding unsigned comment added by Aditaa (talk • contribs) 16:50, 20 March 2012 (UTC)
Strange layout of the sitenotice on my wiki!
editWell 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. — Preceding unsigned comment added by Fokebox (talk • contribs) 17:20, 10 October 2013 (UTC)
Always centered?
editWhat 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?
editIs possible to disable or hidden SiteNotice in same categories, or namespaces or at least in mainPage? — Preceding unsigned comment added by Orthophilos (talk • contribs) 21:11, 8 September 2017 (UTC)
MOBILE SITENOTICE? URGENT
editHello, 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
editI imported Шаблон:Внимание
(Russian version of Wikipedia’s Template:Caution
) 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 MediaWiki:Sitenotice
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 Mediawiki:Sitenotice
made the website performant as before. Adding back some other template, e.g. {{ombox|text=test}}
impacted the performance again.
These observations suggest that there is probably some optimisation missing in Mediawiki:Sitenotice
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: MediaWiki 1.35.0
, Lua 5.1.5
, Distribution: Bitnami Docker image
Caching config:
$wgMainCacheType = CACHE_ACCEL;
$wgCacheDirectory = "$IP/cache";
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 :–)
Removing notice
editI'm having a devil of a time removing the anonymous notice from usnamemorialhall.org. Both Mediawiki:Sitenotice and Mediawiki:Anonnotice are "-". Weirdest thing is that even when I change Anonnotice to something else it still doesn't override (or even appear) on the site when not logged in!
Anyone have any suggestions? What am I missing? Skonesam (talk) 20:06, 1 April 2024 (UTC)
- Answered my own question! For the next person -- or me in the future! -- the answer is: the pages were cached on the server. Skonesam (talk) 23:46, 1 April 2024 (UTC)