35 return "<div class='searchdidyoumean'>$html</div>";
54 $stParams = array_merge(
$params, $this->specialSearch->powerSearchOptions() );
59 $this->specialSearch->getPageTitle(),
60 $snippet ?
new HtmlArmor( $snippet ) :
null,
61 [
'id' =>
'mw-search-DYM-rewritten' ],
65 $stParams[
'search'] =
$term;
66 $stParams[
'runsuggestion'] = 0;
68 $this->specialSearch->getPageTitle(),
70 [
'id' =>
'mwsearch-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();
Marks HTML that shouldn't be escaped.
hasRewrittenQuery()
Some search modes will run an alternative query that it thinks gives a better result than the provide...
getQueryAfterRewriteSnippet()
hasSuggestion()
Some search modes return a suggested alternate term if there are no exact hits.
implements Special:Search - Run text & title search and display the output
For QUnit the mediawiki tests qunit testrunner dependency will be added to any module whereas SearchGetNearMatch runs after $term
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing after in associative array form before processing starts Return false to skip default processing and return $ret $linkRenderer