getText(); if ( $specialPage->getUser()->isAllowed( 'nuke' ) && !IPUtils::isValidRange( $username ) ) { $tools['nuke'] = $specialPage->getLinkRenderer()->makeKnownLink( SpecialPage::getTitleFor( 'Nuke' ), $specialPage->msg( 'nuke-linkoncontribs' )->text(), [ 'title' => $specialPage->msg( 'nuke-linkoncontribs-text', $username )->text(), 'class' => 'mw-contributions-link-nuke' ], [ 'target' => $username ] ); } } /** * Registers Nuke tag for deletion logs * * @param string[] &$tags */ public static function onRegisterTags( array &$tags ): bool { $tags[] = 'Nuke'; return true; } }