Template:Elinks-search

From Warcraft Wiki
Jump to navigation Jump to search

A wrapper template for use in creating "search"-type external links templates, such as {{Elinks-NPCsearch}}.

Uses the classic variable, defined by {{Classic only}}, to automatically choose a subdomain (for example, the "classic" in "classic.wowhead.com").

Syntax

Common parameters, with the sub parameter pre-filled.

{{Elinks-search
|name={{{1|}}}
|sub={{{sub|}}}
|whsearch=
|wdbsearch=
}}

Additional parameters: search.

Can also be used as a generic search template; in that case, simply insert {{Elinks-search}} or {{Elinks-search|<search term>}} on an article, as you would with any other "Elinks-<thing>search" template.

Parameters

  • name or 1 — Allows a name to be manually specified for searching, instead of using the article's name.
  • sub — Allows a subdomain to be manually specified, instead of automatically chosen. This should be left as-is for most templates.
  • whsearch — Used to specify a tab on Wowhead's search page. On Wowhead, this part comes after #.
  • wdbsearch — Used to specify a tab on WoWDB's search page. On WoWDB, this part comes after t1:. To be used at the same time as whsearch.
  • search — Used to specify a tab on each site's search page. This parameter is used instead of the two above in cases where both Wowhead and WoWDB use the exact same word or phrase, e.g. "npcs."