Manual:Interface/Sidebar/Hacks/nl

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



Wijzigen inhoud zijbalk, wanneer ingelogd (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.



Opmaak wiki toestaan
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.



Inhoud van 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: