Jump to content

Template:Search link/doc

From BattleIntelligence
Revision as of 00:06, 1 May 2025 by Tungstenchan (talk | contribs) (Text replacement - "BattleTechWiki" to "BattleIntelligence")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template creates a link that can be used to store a BattleIntelligence search box query. A search link is useful for collaborative search on Talk pages and most other pages, but it is not to be used in articles. If used in articles, it outputs the above warning.

Basics

{{Search link|first|second|third}}

  • The first parameter is for the search, or query.
  • The second parameter is a label for the link.
  • The third parameter is the search domain.

The name of the template is Search link, or sl for short.
The second and third parameters are optional and have defaults, so the short form is {{sl|query}}.

Both a search link and a search box go to the same search engine. The same query produces the same result.

The basic search covers articles. It finds words and phrases composed of letters and numbers very quickly, but a basic search can also query for all articles that contain a string that includes punctuation, math, and other symbols as seen in the page content or as seen in the page wikitext.

This template differs from the search box superficially when searching for an equals sign. In the search box you just say =, but here you must use the five-letter string {{=}}.[1]

Advanced

Notes

  1. ↑ Searching for an equals sign requires using a regexp. As with any template, use {{=}} or |1= to pass in an equals sign to any parameter, even the link label.


See also