Jump to content

Template:Search

From The Petit Planet Wiki
Revision as of 19:49, 12 November 2025 by Stevium (talk | contribs) (Created Template:Search)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Source: Template:Search

Template that creates a generic search input box.

Usage[edit source]

{{Search|dataKey=|placeholder=}}
  • dataKey — The data-* attribute that the filter-element will be searched/filtered on. Default: name
  • placeholder — Placeholder text in the search
  • width — Adjust width of the search input box
  • margin-top and margin-bottom — Adjust the margins of the search input box. Default: 0.5rem

Examples[edit source]

{{Search}}
{{Search|dataKey=sample|placeholder=Example placeholder}}