MediaWiki talk:Sitenotice

How it works
Notes from http://www.mediawiki.org/wiki/Manual:Interface/Sitenotice

MediaWiki:Sitenotice is displayed above the page title for all users, unless it is superseded by another notice.

The message is displayed if it is defined. 'Defined' means the sitenotice has content more than a single character '-'.

Which notice is displayed for a user is decided in this order:


 * If the user is anonymous, MediaWiki:Anonnotice is displayed (if defined).
 * Otherwise, MediaWiki:Sitenotice is displayed (if defined).
 * Otherwise, the global notice in $wgSiteNotice is displayed (if defined, eg in LocalSettings.php).
 * Otherwise, no notice is displayed.

Dismissing

If Extension:DismissableSiteNotice is installed (it is on Teflpedia), registered users can hide any site notice by clicking [dismiss] (customizable in MediaWiki:Sitenotice close) on the notice. For an individual user to recover a previously dismissed site notice, he should delete the cookie dismissSiteNotice for teflpedia.com in his browser.

Whenever MediaWiki:Sitenotice is edited, it will show up again automatically till dismissed again. (Because Roger tweaked it so.)

Without above tweak, it would normally work like as follows (but this does nothing on Teflpedia now because of the above tweak): To show the site notice again, even for those who have dismissed it, sysops should increment the number in MediaWiki:Sitenotice id (this redisplays the notice for everyone regardless of whether the actual notice has been edited or not--but not on Teflpedia because of the above tweak).

2013 Fund Raiser
Banner ran for 29 days, February 12 - March 13. Donations totaled only $30, and $20 of that came in before the banner even went up. In the 29 days the banner was up we got 1 donation of $10 (thank you, kind soul!). But that's it. Better luck next time? --Roger (talk) 17:22, 13 March 2013 (CDT)

This markup was used in MediaWiki:Sitenotice for the 2013 Fund Raiser banner:
 * Banner

Teflpedia serves 900 unique visitors a day—and that bandwidth costs money. Please show your support by donating to keep us on-line and ad-free for 2013.

--Roger (talk) 17:22, 13 March 2013 (CDT)
 * MediaWiki talk:Common.css shows the CSS that was used.
 * MediaWiki:Sitenotice_close contains text of close button. Default is "dismiss". Roger set it to "⊗" for 2013 fund raiser.
 * Template:Progress was used for the Progress Bar.
 * Teflpedia:Treasury was used to keep track of donations.