public static function onSkinTemplateNavigation(SkinTemplate &$sktemplate, array &$links) { global $wgTitle, $articleProtectionNS, $wgOut; if (!in_array($wgTitle->getNamespace(), $articleProtectionNS)) { return true; } $article_details = $sktemplate->makeArticleUrlDetails(Title::newFromText('Special:ArticleProtection/' . $wgTitle->getFullText())->getFullText()); $links['views']['protection'] = array('class' => false, 'text' => "View editors", 'href' => $article_details['href']); return true; }