Difference between revisions of "Template:Google images/doc"

From blackwiki
Jump to navigation Jump to search
imported>Teratornis
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
 +
 
==Usage==
 
==Usage==
  
Line 7: Line 8:
 
*With no parameter values, the template links to a Google Images search for the name of the current page (specifically to the value of the <code>SUBPAGENAME</code> [[Help:Magic word|magic word]] for the current page).
 
*With no parameter values, the template links to a Google Images search for the name of the current page (specifically to the value of the <code>SUBPAGENAME</code> [[Help:Magic word|magic word]] for the current page).
 
*If the first parameter value is present, the template links to a Google Images search on the parameter value. Ordinarily the value would consist of one or more search keywords, and/or commands that Google Images recognizes.
 
*If the first parameter value is present, the template links to a Google Images search on the parameter value. Ordinarily the value would consist of one or more search keywords, and/or commands that Google Images recognizes.
*If the second parameter value is present, the template displays it as the link text.
+
*If the second parameter value is present, the template displays the value as the link text.
  
{{Warning|Do not use this template in [[WP:WIAA|articles]] (as Google search links are not appropriate in articles). The template is only for [[Help:Talk page|talk, discussion]], and other process pages. The template will produce an ugly messagebox warning if you attempt to use it in an article.}}
+
=== Do not use in articles ===
 +
{{Warning|Do not use this template in [[WP:WIAA|articles]] (as Google search links [[WP:EL#Links normally to be avoided|are not appropriate in articles]]). The template is only for [[Help:Talk page|talk pages]] and other process pages ([[WP:HD|Help desk]], [[WP:PROJ|WikiProjects]], etc.). The template will produce an error if you attempt to use it in an article.}}
  
 
==Examples==
 
==Examples==
Line 17: Line 19:
 
! Type this !! To get this !! What it produces, or searches for
 
! Type this !! To get this !! What it produces, or searches for
 
|-
 
|-
| <tt><nowiki>{{google images}}</nowiki></tt> || {{google images}} || Search Google images for the title of the page containing the template
+
| <code><nowiki>{{google images}}</nowiki></code> || {{google images}} || Search Google images for the title of the page containing the template
 +
|-
 +
| <code><nowiki>{{google images|teratorn}}</nowiki></code> || {{google images|teratorn}} || Search Google Images for "[[teratorn]]"
 
|-
 
|-
| <tt><nowiki>{{google images|teratorn}}</nowiki></tt> || {{google images|teratorn}} || Search Google Images for "[[teratorn]]"
+
| <code><nowiki>{{google images|teratorn|Search Google Images for: teratorn}}</nowiki></code> || {{google images|teratorn|Search Google Images for: teratorn}} || Displays some user-specified link text
 
|-
 
|-
| <tt><nowiki>{{google images|teratorn|Search Google Images for: teratorn}}</nowiki></tt> || {{google images|teratorn|Search Google Images for: teratorn}} || Displays some user-specified link text
+
| <code><nowiki>{{google images||Search Google Images}}</nowiki></code> || {{google images||Search Google Images}} || Link to an initially empty search form
 
|-
 
|-
 
|}
 
|}
  
 
==See also==
 
==See also==
 +
{{Google templates}}
  
*[[Template:Google]]
+
<includeonly>{{Sandbox other||
*[[Template:Google custom]]
+
<!-- ADD CATEGORIES BELOW THIS LINE -->
*[[Template:Google help desk]]
+
[[Category:Google search templates|{{PAGE
 +
NAME}}]]
  
<includeonly><!--
+
<!-- ADD INTERWIKIS BELOW THIS LINE -->
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
+
[[no:Mal:Google-bilder]]
[[Category:External link templates|{{PAGENAME}}]]
+
}}</includeonly>
[[Category:Search templates|{{PAGENAME}}]]
 
</includeonly>
 

Latest revision as of 02:10, 3 June 2020

Usage

Creates a link to a Google Images search page. The template takes two optional input parameters:

  • With no parameter values, the template links to a Google Images search for the name of the current page (specifically to the value of the SUBPAGENAME magic word for the current page).
  • If the first parameter value is present, the template links to a Google Images search on the parameter value. Ordinarily the value would consist of one or more search keywords, and/or commands that Google Images recognizes.
  • If the second parameter value is present, the template displays the value as the link text.

Do not use in articles

Examples

Type this To get this What it produces, or searches for
{{google images}} doc Search Google images for the title of the page containing the template
{{google images|teratorn}} teratorn Search Google Images for "teratorn"
{{google images|teratorn|Search Google Images for: teratorn}} Search Google Images for: teratorn Displays some user-specified link text
{{google images||Search Google Images}} Search Google Images Link to an initially empty search form

See also