Template:Engine
Jump to navigation
Jump to search
This template uses TemplateStyles: |
This template creates a search box to be used to search within a single work (i.e. all subpages of a main namespace page). For works in the main namespace, it would typically be placed in the notes field.
Caveat: Searches using this template don't show excerpts of content transcluded from the page namespace if the search string is found in the title. It does work for transcluded content though.
Usage
[edit]Parameters:
1
— The text to append to the search button label, prefixed with "Search in". Defaults to "this work".work
— The page (and subpages) to be searched. Default is the current page and its subpages.placeholder
— The text to show in the search box itself, until the user starts typing. Blank by default.break
set search field and button on same line using break=no
Examples
[edit]- With no parameters:
{{engine}}
- With just the first, unnamed parameter:
{{engine|Popular Science Monthly}}
- With all parameters:
{{engine|PopSciMon|work=Popular Science Monthly|placeholder=Search the PSM archives}}
- With break parameter:
{{engine|break=no}}