Manual talk:Interface/Sidebar/Hacks

From mediawiki.org

Small mistake[edit]

Unfortunately that wont work - change this:

$bar = array(

     // Returns the message text of that sidebar with only {{-transformation done.
     // Setting array keys "text" and "id"; array keys "href" and "active" stay unset.
     'anon' => array(
       'text' => wfMessage( 'anon_sidebar' )->inContentLanguage()->text(),
       'id' => 'anon-info',
     )
   );

to this:

$bar = array(

     // Returns the message text of that sidebar with only {{-transformation done.
     // Setting array keys "text" and "id"; array keys "href" and "active" stay unset.
       'text' => wfMessage( 'anon_sidebar' )->inContentLanguage()->text(),
      );