Template:Search/doc

From Love and Deepspace Wiki
Revision as of 23:34, 5 February 2024 by Elaeagnifolia (talk | contribs) (Created page with "{{doc/start}} ==Description== 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== <pre> {{Search|dataKey=|placeholder=}} </pre> ==Example== <pre> {{Search|dataKey=|placeholder=}} </pre> {{Search|dataKey=|placeholder=}} <pre> {{Search...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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}}