Difference between revisions of "Template:Domain uses"
Jump to navigation
Jump to search
imported>Newslinger (Add alts for icons) |
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.) |
||
| Line 1: | Line 1: | ||
| − | [[Special:Search/insource: | + | [[Special:Search/insource:"{{{1}}}"|{{{2|{{{1}}}}}}]] [[File:Ic lock outline 48px.svg|16px|link={{fullurl:Special:Linksearch|target=https://*.{{urlencode:{{{1}}}}}}}|alt=HTTPS links]] [[File:OOjs UI icon link-ltr.svg|16px|link={{fullurl:Special:Linksearch|target=*.{{urlencode:{{{1}}}}}}}|alt=HTTP links]]<noinclude> |
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here --> | <!-- Add categories to the /doc subpage, interwikis to Wikidata, not here --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 03:03, 7 March 2020
[[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.comorsubdomain.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. |