Jump to content

Template:Search link/doc: Difference between revisions

From BattleIntelligence
imported>Deadfire
creation
 
m Text replacement - "BattleTechWiki" to "BattleIntelligence"
 
Line 3: Line 3:
{{Warning|This template should not be used in '''articles''' as links to search result pages are among the '''links normally to be avoided'''.}}
{{Warning|This template should not be used in '''articles''' as links to search result pages are among the '''links normally to be avoided'''.}}
{{tsh|sl}}
{{tsh|sl}}
This template creates a link that can be used to store a BattleTechWiki search
This template creates a link that can be used to store a BattleIntelligence search
box query.  A search link is useful for [[w:collaborative search|collaborative search]] on [[Help:Talk pages|Talk pages]] and most other pages, but it is not to be used in articles.  If used in articles, it outputs the above warning.
box query.  A search link is useful for [[w:collaborative search|collaborative search]] on [[Help:Talk pages|Talk pages]] and most other pages, but it is not to be used in articles.  If used in articles, it outputs the above warning.



Latest revision as of 00:06, 1 May 2025

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