Template:Search: Difference between revisions
From Tears of Themis Wiki
imported>Elaeagnifolia (Created page with "<noinclude>Category:Templates{{doc}}</noinclude><includeonly><div class="search-text-container" data-key="{{{dataKey|name}}}" data-placeholder="{{{placeholder|Search by na...") |
(No difference)
|
Latest revision as of 20:19, 20 April 2021
Description[edit source]
Create a generic search input box. Needs the element you're filtering to have the class filter-element.
Takes two arguments:
- dataKey = the data-* attribute that the filter-element will be searched/filtered on. Defaults to name.
- placeholder = placeholder text in the search.
Usage[edit source]
{{Search|dataKey=|placeholder=}}
Example[edit source]
{{Search|dataKey=|placeholder=}}
{{Search|dataKey=sample|placeholder=Search Example Placeholder}}
The above documentation is transcluded from Template:Search/doc. (edit | history)