Last modified: 2008-12-08 23:15:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18240, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16240 - Provide a way to get site notices also shown without JavaScript, at least rudimentarily
Provide a way to get site notices also shown without JavaScript, at least rud...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Brion Vibber
http://en.wikibooks.org/wiki/Main_Pag...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-04 18:32 UTC by Melancholie
Modified: 2008-12-08 23:15 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Melancholie 2008-11-04 18:32:57 UTC
Currently, a site notice is not at all visible if JavaScript is disabled!

According to http://www.thecounter.com/stats/2008/October/javas.php up to 6% of visitors have JavaScript disabled.

At the moment we are going to turn on our Fundraiser 2008; see http://en.wikibooks.org/wiki/Main_Page?oldid=cur
But, every 20th visitor *inherently* won't donate like this!

There should be a rudimental site notice in source code (text only).
Comment 1 Splarka 2008-11-05 00:02:20 UTC
Sitenotices were changed to javascript for two main reasons: to make them dismissable for logged in users, and to prevent them from polluting the summaries of search results. 

Monobook was partially designed to make everything float (based on things like Plone) but also to optimize search summaries. If you omit the sitenotice, the first thing a web crawler will see is the h1.firstHeading followed by #siteSub and #contentSub. So for example [[Foo]] might show in a generic site search result (on google) as: 

 From Wikipedia, the free encyclopedia. Jump to: navigation, search. Foo is a metasyntactic variable used heavily in computer science to represent concepts...

Sitenotices were originally intended for very brief notices, about important things happening to the site. This intent has since become corrupted, and quite a few mediawiki projects have a sitenotice 100% of the time.

Changing the sitenotices back to a non-javascript solution would probably require (at this point) an absolute position object that could be textually placed after the page content visually appear above it.
Comment 2 Melancholie 2008-11-05 01:40:00 UTC
For a normal site notice it is ok to only reach the most people.
But don't we want to reach *all* people with a CentralNotice fundraiser?

For the current fundraiser I suggest to add something short like:

<noscript>Donate!</noscript>
Comment 3 Brion Vibber 2008-12-08 23:15:52 UTC
Short of completely destroying our server farm by destroying caching, we don't currently have a good way of accomplishing the flexibility we need in the notice without using JS... further, adding a <noscript> would inject that into search engine indexes where we're deliberately trying to keep it out.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links