"search-ignored-headings": " #<!-- leave this line exactly as it is --> <pre>\n# Headings that will be ignored by search.\n# Changes to this take effect as soon as the page with the heading is indexed.\n# You can force page reindexing by doing a null edit.\n# The syntax is as follows:\n# * Everything from a \"#\" character to the end of the line is a comment.\n# * Every non-blank line is the exact title to ignore, case and everything.\nReferences\nExternal links\nSee also\n #</pre> <!-- leave this line exactly as it is -->",
"searchbutton": "Search",
+ "searchsuggest-containing-html": "Search for pages containing <strong class=\"cdx-typeahead-search__search-footer__query\">$1</strong>",
"search": "{{doc-special|Search}}\nNoun. Text of menu section shown on every page of the wiki above the search form.\n\nSee also:\n* {{msg-mw|Search}}\n* {{msg-mw|Accesskey-search}}\n* {{msg-mw|Tooltip-search}}\n{{Identical|Search}}",
"search-ignored-headings": "Headings that the search will ignore. You can translate the text, including \"Leave this line exactly as it is\". Some lines of this messages have one leading space.",
"searchbutton": "The button you can see in the sidebar, below the search input box. The \"Go\" button is {{msg-mw|Searcharticle}}.\n{{Identical|Search}}",
+ "searchsuggest-containing-html": "Label used in the special item of the search suggestions list which gives the user an option to perform a full text search for the term. Used in the Codex typeahead search component.",
+ "search-loader": "Text to display below search input while the search suggestion module is loading",
"go": "Appears next to the search button. Goes directly to the page with that name, if it exists.\n\nSee also:\n* {{msg-mw|Go}}\n* {{msg-mw|Accesskey-search-go}}\n* {{msg-mw|Tooltip-search-go}}\n{{Identical|Go}}",
"searcharticle": "Button description in the search menu displayed on every page. The \"Search\" button is {{msg-mw|Searchbutton}}.\n{{Identical|Go}}\nNote however that some wikis (e.g. French Wikipedia) have chosen to translate this search submission button differently as ''Read'', rather than ''Go'':\n{{Identical|Read}}",
"skin-view-history": "Tab label in the Vector skin. See for example {{canonicalurl:Translating:MediaWiki|useskin=vector}}\n{{Identical|View history}}",
+ * Generates the value of the `wprov` parameter to be used in the URL of a search result and the
+ * `wprov` hidden input.
+ *
+ * See https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikimediaEvents/+/refs/heads/master/modules/ext.wikimediaEvents/searchSatisfaction.js
+ * and also the top of that file for additional detail about the shape of the parameter.
+ *
+ * @param {number} index
+ * @return {string}
+ */
+function getWprovFromResultIndex( index ) {
+ // result looks like: acrw1_0, acrw1_1, acrw1_2, etc.;
+ // or acrw1_-1 for index -1 (user did not highlight an autocomplete result)
+ return 'acrw1_' + index;
+}
+
+/**
+ * @typedef {Object} SearchResultPartial
+ * @property {string} title
+ * @property {string} [url]
+ */
+
+/**
+ * Return a new list of search results,
+ * with the `wprov` parameter added to each result's url (if any).
+ *
+ * @param {SearchResultPartial[]} results Not modified.
+ * @param {number} offset Offset to add to the index of each result.