/** * Look up sitelinks for the given title on the repository and add them * to the ParserOutput object, taking into account any applicable * configuration and any use of the {{#noexternallanglinks}} function on the page. * * The language links are not sorted, call sortLanguageLinks() to do that. * * @since 0.4 * * @param Title $title The page's title * @param ParserOutput $out Parsed representation of the page */ public function addLinksFromRepository(Title $title, ParserOutput $out) { $repoLinks = $this->getEffectiveRepoLinks($title, $out); $this->addLinksToOutput($repoLinks, $out); $repoLinksByInterwiki = $this->indexLinksByInterwiki($repoLinks); $this->badgeDisplay->attachBadgesToOutput($repoLinksByInterwiki, $out); }