Manual:Interface/Sidebar/Hacks/ja

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



ログインユーザーに対してサイドバーを変更する
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.



Wikiマークアップを許可
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: