'Infobox List', 'author' => 'Chris Musialek', 'description' => 'List all Infoboxes' ); function wfInfoboxList() { global $wgAutoloadClasses; $wgAutoloadClasses['InfoboxPager'] = dirname(__FILE__) . '/InfoboxList.php'; SpecialPage::addPage( new SpecialPage('InfoboxList') ); wfLoadExtensionMessages( 'InfoboxList' ); return true; } function wfSpecialInfoboxList() { global $wgRequest, $wgOut; $up = new InfoboxPager(); # getBody() first to check, if empty $usersbody = $up->getBody(); $s = ""; if( $usersbody ) { $s .= $up->getNavigationBar(); $s .= ''; $s .= $up->getNavigationBar() ; } else { $s .= '

' . wfMsgHTML('listusers-noresult') . '

'; }; $wgOut->addHTML( $s ); }