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

From blackwiki
Jump to navigation Jump to search
imported>Newslinger
(Add {{duses}} shortcut)
imported>Newslinger
m (→‎Usage: More descriptive)
Line 11: Line 11:
 
# The domain name to be searched, e.g. <code>example.com</code> or <code>subdomain.example.com</code>
 
# The domain name to be searched, e.g. <code>example.com</code> or <code>subdomain.example.com</code>
 
# Link text for the first link (which uses <code>[[H:INSOURCE|insource:]]</code>)
 
# Link text for the first link (which uses <code>[[H:INSOURCE|insource:]]</code>)
#* This parameter is optional, and defaults to parameter #1 if left empty.
+
#* This parameter is optional, and defaults to the domain name if left empty.
  
 
== Examples ==
 
== Examples ==

Revision as of 11:47, 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 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