Difference between revisions of "Template:Google/doc"

From blackwiki
Jump to navigation Jump to search
imported>DixonDBot
m (Migrating 4 interwiki links, now provided by Wikidata on d:Q6372045)
imported>Jdaloner
m ("google wikipedia" --> "google Wikipedia")
Line 28: Line 28:
 
===Site-specific search===
 
===Site-specific search===
  
You can use the <code>site:</code> parameter to search on a specific [[Web site]]. You may prefer {{Tl|Google custom}} or {{Tl|Google wikipedia}} because they yield a cleaner search form, without the <code>site:</code> parameter cluttering the input field.
+
You can use the <code>site:</code> parameter to search on a specific [[Web site]]. You may prefer {{Tl|Google custom}} or {{Tl|Google Wikipedia}} because they yield a cleaner search form, without the <code>site:</code> parameter cluttering the input field.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 37: Line 37:
 
| <tt><nowiki>{{google custom|en.wikipedia.org||Search Wikipedia}}</nowiki></tt> || {{google custom|en.wikipedia.org||Search Wikipedia}} || Blank form to search the [[English Wikipedia]]
 
| <tt><nowiki>{{google custom|en.wikipedia.org||Search Wikipedia}}</nowiki></tt> || {{google custom|en.wikipedia.org||Search Wikipedia}} || Blank form to search the [[English Wikipedia]]
 
|-
 
|-
| <tt><nowiki>{{google wikipedia||}}</nowiki></tt> || {{google wikipedia||}} || Blank form to search the [[English Wikipedia]]
+
| <tt><nowiki>{{google Wikipedia||}}</nowiki></tt> || {{google Wikipedia||}} || Blank form to search the [[English Wikipedia]]
 
|}
 
|}
  
 
==See also==
 
==See also==
 
{{Google templates}}
 
{{Google templates}}
 +
  
 
<includeonly><!--
 
<includeonly><!--

Revision as of 13:16, 31 January 2015

Usage

Creates a Google search link for the supplied term. By default, the search link is for the name of the page it is put on, if no term is provided. It is strongly recommended (but not required) that you SUBST: this template.

Do not use in articles

Examples

Type this To get this What it searches for
{{subst:google}} doc Pages with the phrase "Google", because the name of this page that you are reading is "Template:Google"
{{subst:google|Godzilla}} Godzilla Pages with the term "Godzilla".
{{subst:google|Godzilla Rodan}} Godzilla Rodan Pages which contain "Godzilla" and "Rodan".
{{subst:google|"Godzilla Movie"}} "Godzilla Movie" Pages with the phrase "Godzilla Movie".
{{google|1 pound in kilograms {{=}}}} 1 pound in kilograms = Use Template:= to add an = sign to trigger Google Calculator when necessary; that template cannot be substituted.
{{google|1 pound in kilograms}} 1 pound in kilograms Google may display Calculator results for some expressions even if they lack a trailing equals sign.

Site-specific search

You can use the site: parameter to search on a specific Web site. You may prefer {{Google custom}} or {{Google Wikipedia}} because they yield a cleaner search form, without the site: parameter cluttering the input field.

Type this To get this What it searches for
{{google|site:en.wikipedia.org}} site:en.wikipedia.org Search the English Wikipedia with the standard Google search form
{{google custom|en.wikipedia.org||Search Wikipedia}} Search Wikipedia Blank form to search the English Wikipedia
{{google Wikipedia||}} Search Wikipedia with Google Blank form to search the English Wikipedia

See also