User:Najevi/sandbox

Redirect MyHome to Recent changes
On a user per user basis, if you don't want to use MyHome simply add if( wgPageName == 'Special:MyHome' ) { window.location = wgServer + wgScriptPath + '/wiki/' + 'Special:RecentChanges'; } to your local of global JS. It'll redirect you whenever you view Special:MyHome to the Recent Changes. Don't recommend it for full-wiki use though, as some users will want to see MyHome, and there's a better way to get rid of it. Regardless, this method will cause your More link to end up at RC. --User:Joeyaa

Searchbox does not render correctly in WikiPage widget
When the searchbox special tag is used in a custom WikiPage widget the check boxes and labels are inappropriately center aligned and as a result consume vertical screen space when they should appears on the one line.


 * TEST CASE: http://www.wikia.com/wiki/User:Najevi/DemoWidget
 * Of course this must be loaded into a WikiPage widget in the Monaco sidebar to see the problem.


 * ROOT CAUSE: An unsuitable style is being applied via:


 * specifically this one line:


 * WORKAROUND:in www.wikia.com/wiki/Special:MyPage/global.css add the line

Test existence of source page before displaying WikiPage widget in sidebar
A user's custom setting for the Monaco sidebar include the list of widgets a user has chosen to be displayed. However, when a custom WikiPage widget defined at Wiki1 is specified and then the user browses to Wiki2 (where that same named source page does not exist) then the current behavior is that a copy of the default MediaWiki:Widgetwikipage get's displayed inside a widget box that is mislabeled with whatever the custom widget name had been at Wiki1.
 * So long as a user chooses only standard widgets then there is no problem


 * TEST CASE: w:c:vsk:MediaWiki:Widgetwikipage and w:c:vsk:DemoWidget - specify that both of these appear in your sidebar then browse away to w:c:central and note the mislabeled copy of the default MediaWiki:Widgetwikipage is displayed when the


 * ROOT CAUSE: Not known.


 * WORKAROUND: None known. I don't think it either practical or desirable for a user to copy the same source page to each wiki they regularly visit.