Page MenuHomePhabricator

$wgSiteNotice warnings in DefaultSettings.php comments
Closed, ResolvedPublic

Description

$wgSiteNotice is gone when printable=yes.

Marge, the address and time of the picnic is there on the top of the
printout I gave you... he thinks.


Version: 1.10.x
Severity: minor

Details

Reference
bz9679

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:38 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz9679.
bzimport added a subscriber: Unknown Object (MLST).

Sitenotice is for transitory messages, not page content.

You could change your stylesheets if you wanted things different.

Change the comment of:
/** If set, a bold ugly notice will show up at the top of every page. */
$wgSiteNotice = '';

to also mention:

Note: beside $wgSiteNotice there is also a Mediawiki:Sitenotice file or something,     
and its iteraction with $wgSiteNotice is (thus)...

Also Note: $wgSiteNotice will not show up on pages sent to the printer 
(printable=yes), and, brace yourself: if people dare to disable javascript on
their browser, or *gasp* use a text browser!

Hence we see that the comment in DefaultSettings.php needs to be changed badly,
lest sysops have the delusion that all users are going to see what they thought all users would certianly see, but in reality many users will NEVER in fact see!

robchur wrote:

Improved the documentation in r22893. Note that JavaScript is *not* used to add the site notice to a page unless using the DismissableSiteNotice extension, in which case this is desirable.