Template:Search: Difference between revisions
Appearance
Created Template:Search |
mNo edit summary |
||
| Line 5: | Line 5: | ||
Template that creates a generic search input box. | Template that creates a generic search input box. | ||
== | ==Syntax== | ||
<pre>{{Search|dataKey=|placeholder=}}</pre> | <pre>{{Search|dataKey=|placeholder=}}</pre> | ||
* <code>dataKey</code> — The data-* attribute that the filter-element will be searched/filtered on. Default: <code>name</code> | * <code>dataKey</code> — The data-* attribute that the filter-element will be searched/filtered on. Default: <code>name</code> | ||
Latest revision as of 11:18, 20 November 2025
See also: Template:Filter
Source: Template:Search
Template that creates a generic search input box.
Syntax[edit source]
{{Search|dataKey=|placeholder=}}
dataKey— The data-* attribute that the filter-element will be searched/filtered on. Default:nameplaceholder— Placeholder text in the searchwidth— Adjust width of the search input boxmargin-topandmargin-bottom— Adjust the margins of the search input box. Default:0.5rem
Examples[edit source]
{{Search}}
{{Search|dataKey=sample|placeholder=Example placeholder}}