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

From blackwiki
Jump to navigation Jump to search
imported>Teratornis
(create a template documentation page)
 
imported>Teratornis
(edit the documentation to be more like Template:Google custom/doc, with examples and a warning against using in articles)
Line 3: Line 3:
 
==Usage==
 
==Usage==
  
Links to the [[Google Images]] results page for the title word of the article on which the template is used.
+
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 <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 second parameter value is present, the template displays it as the link text.
 +
 
 +
*''Note'': do not use this template in [[WP:WIAA|articles]] (as Google search links are not appropriate in articles). The template is only for use in [[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.
 +
 
 +
==Examples==
 +
 
 +
{| class="wikitable"
 +
<!-- ! width=280px | Type this !! width=130px | 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
 +
|-
 +
| <tt><nowiki>{{google images|teratorn}}</nowiki></tt> || {{google images|teratorn}} || Search Google Images for "[[teratorn]]"
 +
|-
 +
| <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
 +
|-
 +
|}
  
 
==See also==
 
==See also==

Revision as of 21:01, 14 February 2008

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 it as the link text.
  • Note: do not use this template in articles (as Google search links are not appropriate in articles). The template is only for use in talk, discussion, and other process pages. The template will produce an ugly messagebox warning if you attempt to use it in an article.

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

See also