Template:Search/doc

From Tears of Themis Wiki
Template-info.png Documentation

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}}

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.