Difference between revisions of "Template:Domain uses/doc"

From blackwiki
Jump to navigation Jump to search
imported>Newslinger
(Create documentation for Template:Domain uses)
 
imported>Newslinger
(Add {{duses}} shortcut)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{tsh|duses}}
 
This template displays three links to search results for uses of a [[domain name]] across Wikipedia pages:
 
This template displays three links to search results for uses of a [[domain name]] across Wikipedia pages:
 
# An <code>[[H:INSOURCE|insource:]]</code> [[Special:Search|search]] for the domain name
 
# An <code>[[H:INSOURCE|insource:]]</code> [[Special:Search|search]] for the domain name

Revision as of 11:00, 8 December 2018

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 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 parameter #1 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