getExtra(); switch ( $param ) { // title of the page that gets linked in other page case 'title-linked': // wikitext format of the title of the page that gets linked in other page case 'title-linked-wiki-format': $list = array(); if ( isset( $extra['notif-list'][$user->getID()] ) ) { global $wgLang; foreach ( $extra['notif-list'][$user->getID()] as $page ) { $title = Title::makeTitle( $page['pl_namespace'], $page['pl_title'] ); if ( $param === 'title-linked-wiki-format' ) { $list[] = '[[' . $title->getPrefixedText() . ']]'; } else { $list[] = $title->getPrefixedText(); } } $message->params( $wgLang->commaList( $list ) ); $message->params( count( $extra['notif-list'][$user->getID()] ) ); } else { $message->params( '' ); } break; default: parent::processParam( $event, $param, $message, $user ); break; } } }