6 * Shows link to Special:Nuke on Special:Contributions/username if applicable
9 * @param Title $userPageTitle
10 * @param string[] &$toolLinks
11 * @param SpecialPage $sp
13 public static function nukeContributionsLinks( $userId, $userPageTitle, &$toolLinks,
16 if ( $sp->getUser()->isAllowed( 'nuke' ) ) {
17 $toolLinks['nuke'] = $sp->getLinkRenderer()->makeKnownLink(
18 SpecialPage::getTitleFor( 'Nuke' ),
19 $sp->msg( 'nuke-linkoncontribs' )->text(),
20 [ 'title' => $sp->msg( 'nuke-linkoncontribs-text',
21 $userPageTitle->getText() )->text() ],
22 [ 'target' => $userPageTitle->getText() ]