Jump to content

Template:Internal search templates common doc: Difference between revisions

From BattleIntelligence
imported>Deadfire
 
m Text replacement - "BattleTechWiki" to "BattleIntelligence"
 
Line 1: Line 1:
=={{Anchor|Templates to search BattleTechWiki}}Templates for searching BattleTechWiki==
=={{Anchor|Templates to search BattleIntelligence}}Templates for searching BattleIntelligence==


===Search links===
===Search links===
Line 6: Line 6:
One type of search link is a wikilink with all the capabilities of Search (search box), and with standard wikilink syntax: <kbd>{{nowrap | [<nowiki/>[Special:Search/''query''{{!}} ''label'']]}}</kbd>. So this search link will (1) [[help:navigation|navigate]]: [<nowiki/>[Special:search/Atlas]] &rarr; [[Special:search/Atlas]] or (2) search: <kbd>{{nowrap | [<nowiki/>[Special:search/~Atlas{{!}} search/~Atlas]]}}</kbd> &rarr; [[Special:search/~Atlas|search/~Atlas]] if you prefix a ~ tilde character.
One type of search link is a wikilink with all the capabilities of Search (search box), and with standard wikilink syntax: <kbd>{{nowrap | [<nowiki/>[Special:Search/''query''{{!}} ''label'']]}}</kbd>. So this search link will (1) [[help:navigation|navigate]]: [<nowiki/>[Special:search/Atlas]] &rarr; [[Special:search/Atlas]] or (2) search: <kbd>{{nowrap | [<nowiki/>[Special:search/~Atlas{{!}} search/~Atlas]]}}</kbd> &rarr; [[Special:search/~Atlas|search/~Atlas]] if you prefix a ~ tilde character.


All other search links are made from a [[help:template|template]] that will build a URL instead of wikilink. A URL can for example can call off-site search engines to search BattleTechWiki.
All other search links are made from a [[help:template|template]] that will build a URL instead of wikilink. A URL can for example can call off-site search engines to search BattleIntelligence.
*{{tl|Search link}} offers all the capabilities of [[Help:Searching|Searching]] (search box), plus extra (URL) parameters for combinations of namespaces, and where you can escape the 20-results-per page-limitation, shareable: <kbd>{{nowrap | {<nowiki>{search link | et al | ''label'' | ns4 | ns5 | limit = 123}}</nowiki>}}</kbd> &rarr; {{search link|et al | ''label'' | ns4 | ns5 | limit = 123}}.
*{{tl|Search link}} offers all the capabilities of [[Help:Searching|Searching]] (search box), plus extra (URL) parameters for combinations of namespaces, and where you can escape the 20-results-per page-limitation, shareable: <kbd>{{nowrap | {<nowiki>{search link | et al | ''label'' | ns4 | ns5 | limit = 123}}</nowiki>}}</kbd> &rarr; {{search link|et al | ''label'' | ns4 | ns5 | limit = 123}}.


Line 24: Line 24:
*{{tl|Look from}} – Search for pages whose name ''begins'' with a given word
*{{tl|Look from}} – Search for pages whose name ''begins'' with a given word


===Other BattleTechWiki editor help===
===Other BattleIntelligence editor help===
*{{tl|Linksearch}} – Searches for external links matching a URL
*{{tl|Linksearch}} – Searches for external links matching a URL


Line 35: Line 35:
{{Search templates}}
{{Search templates}}
}}}<noinclude>{{doc|content=
}}}<noinclude>{{doc|content=
This template is [[BattleTechWiki:Transclusion|transcluded]] into the [[BattleTechWiki:Template documentation|documentation pages]] of some templates. You can modify the {{section link|#See also}} section with the following parameters:
This template is [[BattleIntelligence:Transclusion|transcluded]] into the [[BattleIntelligence:Template documentation|documentation pages]] of some templates. You can modify the {{section link|#See also}} section with the following parameters:
*<code>append</code>: Items to be added to.
*<code>append</code>: Items to be added to.
*<code>seealso</code>: Changes the section altogether.
*<code>seealso</code>: Changes the section altogether.
Line 48: Line 48:
[[Category:Documentation shared content templates]]
[[Category:Documentation shared content templates]]
[[Category:Search templates| ]]
[[Category:Search templates| ]]
[[Category:BattleTechWiki searching]]
[[Category:BattleIntelligence searching]]
}}</noinclude>
}}</noinclude>

Latest revision as of 00:12, 1 May 2025

Templates for searching BattleIntelligence

A search link stores a query in a link that takes you to live search results for that stored search. They're found on user pages and talk pages. Use one to bring the full feature set of MediaWiki Search, or features of external search engines, to bear on users unfamiliar with their search parameters.

One type of search link is a wikilink with all the capabilities of Search (search box), and with standard wikilink syntax: [[Special:Search/query| label]]. So this search link will (1) navigate: [[Special:search/Atlas]] → Special:search/Atlas or (2) search: [[Special:search/~Atlas| search/~Atlas]] → search/~Atlas if you prefix a ~ tilde character.

All other search links are made from a template that will build a URL instead of wikilink. A URL can for example can call off-site search engines to search BattleIntelligence.

  • {{Search link}} offers all the capabilities of Searching (search box), plus extra (URL) parameters for combinations of namespaces, and where you can escape the 20-results-per page-limitation, shareable: {{search link | et al | ''label'' | ns4 | ns5 | limit = 123}} → label.

Advanced search templates

These are made to use mw:Extension:CirrusSearch, and as such may not work with the search extension we currently use (mw:Extension:SphinxSearch). Further testing maybe needed.

  • {{Regex}} – develop an advanced regex search.
  • {{Template usage}} – develop a template regex search, and pinpoint specific template-call details.

Search boxes

These are made to use mw:Extension:InputBox, and as such may not work.

  • {{Search box}} – Simple search box with choice of button below or to the right
  • {{Search prefixes}} – Multiple pages' subpages are searched at once.
  • {{Search lists}} – For searching from lists of lists.

Page title searches

  • {{In title}} – Search for pages whose name contains given words
  • {{Look from}} – Search for pages whose name begins with a given word

Other BattleIntelligence editor help

  • {{Linksearch}} – Searches for external links matching a URL


See also