Template:Domain uses
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.)
[[Special:Search/insource:"{{{1}}}"|{{{1}}}]]
This template displays three links to search results for uses of a domain name across Wikipedia pages:
- An
insource:
search for the domain name - An external links search for
https://
URLs of the domain and its subdomains - An external links search for
http://
URLs of the domain and its subdomains
Usage
This template accepts two unnamed parameters:
- The domain name to be searched, e.g.
example.com
orsubdomain.example.com
- 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}}
{{Domain uses|example.com|Link text}}
See also
- {{In source}}, which displays a link to a search using
insource:
- {{Linksearch}}, which displays a link to an external links search
- {{Search link}}, which displays a link to a search
The above documentation is transcluded from Template:Domain uses/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |