Template:Domain uses

From blackwiki
Revision as of 03:03, 7 March 2020 by imported>Newslinger (Returning to quotation marks instead of regex. This is because regex searches are much slower. By default, regex searches do not take word boundaries into account (/happy\.com/ matches "unhappy.com") and the "\b" anchor appears to be ignored. The "i" flag is also needed to make the search case-insensitive, which slows it down further. Since this template only supports one domain, quotation marks are the easiest way to make the search perform as expected.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

[[Special:Search/insource:"{{{1}}}"|{{{1}}}]] HTTPS links HTTP links

Template documentation[view] [edit] [history] [purge]

This template displays three links to search results for uses of a domain name across Wikipedia pages:

  1. An insource: search for the domain name
  2. An external links search for https:// URLs of the domain and its subdomains
  3. An external links search for http:// URLs of the domain and its subdomains

Usage

This template accepts two unnamed parameters:

  1. The domain name to be searched, e.g. example.com or subdomain.example.com
  2. Link text for the first link (which uses insource:)
    • This parameter is optional, and defaults to the domain name if left empty.

Examples

{{Domain uses|example.com}}

example.com HTTPS links HTTP links


{{Domain uses|example.com|Link text}}

Link text HTTPS links HTTP links

See also