Difference between revisions of "Template:Google/doc"

From blackwiki
Jump to navigation Jump to search
(→‎Usage: fgooglefixed typo)
imported>Pauli133
m (fixing lint errors)
Line 17: Line 17:
 
! width=320px | Type this !! width=130px | To get this !! What it searches for
 
! width=320px | Type this !! width=130px | To get this !! What it searches for
 
|-
 
|-
| <tt><nowiki>{{subst:google}}</nowiki></tt> || {{google}} || Pages with the phrase "Google", because the name of this page that you are reading is "Template:''Google''"
+
| {{mono|<nowiki>{{subst:google}}</nowiki>}} || {{google}} || Pages with the phrase "Google", because the name of this page that you are reading is "Template:''Google''"
 
|-
 
|-
| <tt><nowiki>{{subst:google|Godzilla}}</nowiki></tt> || {{google|Godzilla}} || Pages with the term "Godzilla".
+
| {{mono|<nowiki>{{subst:google|Godzilla}}</nowiki>}} || {{google|Godzilla}} || Pages with the term "Godzilla".
 
|-
 
|-
| <tt><nowiki>{{subst:google|Godzilla Rodan}}</nowiki></tt> || {{google|Godzilla Rodan}} || Pages which contain "Godzilla" and "Rodan".
+
| {{mono|<nowiki>{{subst:google|Godzilla Rodan}}</nowiki>}} || {{google|Godzilla Rodan}} || Pages which contain "Godzilla" and "Rodan".
 
|-
 
|-
| <tt><nowiki>{{subst:google|Godzilla Rodan|verbatim=1}}</nowiki></tt> || {{google|Godzilla Rodan}} || Pages which contain "Godzilla" and "Rodan", and excluding pages that Google might otherwise think you were interested in because they contain "Roman" instead of "Rodan".
+
| {{mono|<nowiki>{{subst:google|Godzilla Rodan|verbatim=1}}</nowiki>}} || {{google|Godzilla Rodan}} || Pages which contain "Godzilla" and "Rodan", and excluding pages that Google might otherwise think you were interested in because they contain "Roman" instead of "Rodan".
 
|-
 
|-
| <tt><nowiki>{{subst:google|"Godzilla Movie"}}</nowiki></tt> || {{google|"Godzilla Movie"}} || Pages with the phrase "Godzilla Movie".
+
| {{mono|<nowiki>{{subst:google|"Godzilla Movie"}}</nowiki>}} || {{google|"Godzilla Movie"}} || Pages with the phrase "Godzilla Movie".
 
|-
 
|-
| <tt><nowiki>{{google|1 pound in kilograms {{=}}}}</nowiki></tt> || {{google|1 pound in kilograms {{=}}}} || Use [[Template:=]] to add an [[=]] sign to trigger Google Calculator when necessary; that template cannot be substituted.
+
| {{mono|<nowiki>{{google|1 pound in kilograms {{=}}}}</nowiki>}} || {{google|1 pound in kilograms {{=}}}} || Use [[Template:=]] to add an [[=]] sign to trigger Google Calculator when necessary; that template cannot be substituted.
 
|-
 
|-
| <tt><nowiki>{{google|1 pound in kilograms}}</nowiki></tt> || {{google|1 pound in kilograms}} || Google may display Calculator results for some expressions even if they lack a trailing equals sign.
+
| {{mono|<nowiki>{{google|1 pound in kilograms}}</nowiki>}} || {{google|1 pound in kilograms}} || Google may display Calculator results for some expressions even if they lack a trailing equals sign.
 
|}
 
|}
  
Line 39: Line 39:
 
! width=350px | Type this !! width=130px | To get this !! What it searches for
 
! width=350px | Type this !! width=130px | To get this !! What it searches for
 
|-
 
|-
| <tt><nowiki>{{google|site:en.wikipedia.org}}</nowiki></tt> || {{google|site:en.wikipedia.org}} || Search the [[English Wikipedia]] with the standard Google search form
+
| {{mono|<nowiki>{{google|site:en.wikipedia.org}}</nowiki>}} || {{google|site:en.wikipedia.org}} || Search the [[English Wikipedia]] with the standard Google search form
 
|-
 
|-
| <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]]
+
| {{mono|<nowiki>{{google custom|en.wikipedia.org||Search Wikipedia}}</nowiki>}} || {{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]]
+
| {{mono|<nowiki>{{google Wikipedia||}}</nowiki>}} || {{google Wikipedia||}} || Blank form to search the [[English Wikipedia]]
 
|}
 
|}
  

Revision as of 21:18, 16 January 2020

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

Verbatim searches

To link to a Google "verbatim" search (which keeps Google from guessing alternate spellings), add the named argument verbatim with any value other than whitespace.

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 Rodan|verbatim=1}} Godzilla Rodan Pages which contain "Godzilla" and "Rodan", and excluding pages that Google might otherwise think you were interested in because they contain "Roman" instead of "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