Debian Codegraph @

skins/Vector/includes/templates/LegacySearchBox.mustache

raw
1 {{!
2 See @typedef SearchData
3 }}
4 <div{{#is-primary}} id="p-search"{{/is-primary}} role="search" class="{{class}} vector-search-box">
5 <h3 {{{html-user-language-attributes}}}>{{msg-search}}</h3>
6 <form action="{{form-action}}" id="{{form-id}}" class="vector-search-box-form">
7 <div {{#is-primary}}id="simpleSearch"{{/is-primary}}
8 class="vector-search-box-inner"
9 {{#input-location}} data-search-loc="{{.}}"{{/input-location}}>
10 <input class="vector-search-box-input"
11 {{#is-primary}}{{{html-input-attributes}}} id="searchInput"{{/is-primary}}
12 {{^is-primary}}
13 type="search" name="search"
14 placeholder="{{msg-searchsuggest-search}}"
15 {{/is-primary}}
16 >
17 <input type="hidden" name="title" value="{{page-title}}">
18 {{! We construct two buttons (for 'go' and 'fulltext' search modes), but only one will be
19 visible and actionable at a time (they are overlaid on top of each other in CSS).
20 * Browsers will use the 'fulltext' one by default (as it's the first in tree-order),
21 which is desirable when they are unable to show search suggestions (either due to being
22 broken or having JavaScript turned off).
23 * The mediawiki.searchSuggest module, after doing tests for the broken browsers, removes
24 the 'fulltext' button and handles 'fulltext' search itself; this will reveal the 'go'
25 button and cause it to be used. !}}
26 <input{{#is-primary}} id="mw-searchButton"{{/is-primary}}
27 {{{html-button-fulltext-attributes}}} value="{{msg-searchbutton}}">
28 <input{{#is-primary}} id="searchButton"{{/is-primary}}
29 {{{html-button-go-attributes}}} value="{{msg-searcharticle}}">
30 </div>
31 </form>
32 </div>