/** * @param Article &$article * @param bool &$outputDone * @param bool &$pcache * @return bool */ public static function showDocPageHeader(Article &$article, &$outputDone, &$pcache) { global $wgOut; $title = $article->getTitle(); if (Scribunto::isDocPage($title, $forModule)) { $wgOut->addHTML(wfMessage('scribunto-doc-page-header', $forModule->getPrefixedText())->parseAsBlock()); } return true; }