35 return "<div class='searchdidyoumean'>$html</div>";
54 $stParams = array_merge( $params, $this->specialSearch->powerSearchOptions() );
56 $linkRenderer = $this->specialSearch->getLinkRenderer();
58 $rewritten = $linkRenderer->makeKnownLink(
59 $this->specialSearch->getPageTitle(),
60 $snippet ?
new HtmlArmor( $snippet ) :
null,
61 [
'id' =>
'mw-search-DYM-rewritten' ],
65 $stParams[
'search'] = $term;
66 $stParams[
'runsuggestion'] = 0;
67 $original = $linkRenderer->makeKnownLink(
68 $this->specialSearch->getPageTitle(),
70 [
'id' =>
'mw-search-DYM-original' ],
74 return $this->specialSearch->msg(
'search-rewritten' )
75 ->rawParams( $rewritten, $original )
92 $stParams = array_merge( $params, $this->specialSearch->powerSearchOptions() );
95 $suggest = $this->specialSearch->getLinkRenderer()->makeKnownLink(
96 $this->specialSearch->getPageTitle(),
97 $snippet ?
new HtmlArmor( $snippet ) :
null,
98 [
'id' =>
'mw-search-DYM-suggestion' ],
102 return $this->specialSearch->msg(
'search-suggest' )
103 ->rawParams( $suggest )->parse();