Manual:Interface/Sidebar/Hacks/ru

Scope
This page lists hacks that used to be mentioned in Manual:Interface/Sidebar.



Изменить содержимое боковой панели при входе в систему (PHP)
In your LocalSettings.php file, use the SkinBuildSidebar hook to modify the sidebar. Use the following function to check for  and call a different system message than.

Then in your Wiki, go to  and create your new sidebar.



Разрешить вики-разметку
Many people on Support Desk have been asking about how to put arbitrary wikitext into the sidebar. Take the code from the above example. The  function will return your page content unescaped, only {{-transformation is done. Instead of using the  function, you can use the   function. Your page content will then be fully parsed from wikitext to HTML. Instead of

use this:

That will allow your sidebar article to be proper wikitext.



Содержание MediaWiki:Anon_sidebar
In your sidebar, you will need to include the surrounding HTML tags to ensure the portlet is styled correctly. Your MediaWiki:Anon_Sidebar page content will need to look something like the following example after the change: