User blog comment:Najevi/Cleaning up the sidebar when "fail to locate" a WikiPage widget/@comment-473563-20091205155841

I hope those images make my lengthy email make a little better sense.

If the class "widget-error-wikipage-missing" is used in the  element then I would not use global.js but would use global.css to hide the DL element. viz. .widget-error-wikipage-missing dl {display:none;}

Trivia: at the time of writing a google search counted 63 hits for "MediaWiki:Widget" across wikia.com


 * Not so trivial: Maybe 25% of those mixed up the case in the MediaWiki:Widgetwikipage message name which basically renders their "default" WikiPage widget inaccessible to most wiki users.

There really ought to be a way for sysops to cause a WikiPage widget to appear in the sidebar by default and yet still allow each registered user to dismiss/close it permanently.