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

From blackwiki
Jump to navigation Jump to search
imported>Zodon
(initial documentation - largely copied from template:google)
 
imported>Zodon
(add examples)
Line 4: Line 4:
 
=== Usage ===
 
=== Usage ===
  
Creates a Google trends 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 [[Wikipedia:Template substitution|SUBST:]] this template.
+
Creates a Google trends search link for the supplied term(s). 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 [[Wikipedia:Template substitution|SUBST:]] this template.
  
 
Search for multiple terms by separating them with commas.
 
Search for multiple terms by separating them with commas.
Line 10: Line 10:
 
=== Do not use in articles ===
 
=== 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 ugly messagebox warning if you attempt to use it in an article.}}
 
{{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 ugly messagebox warning if you attempt to use it in an article.}}
 
=== See also ===
 
{{Google templates}}
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Google search templates|{{PAGENAME}}]]
 
 
</includeonly>
 
 
 
<!-- Was copied from template:google documentation  Keeping for moment to see if anything useful in putting together this doc.
 
  
 
==Examples==
 
==Examples==
Line 28: Line 16:
 
! 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''"
+
| <tt><nowiki>{{subst:google trends}}</nowiki></tt> || {{google trends}} || Searches for the phrase "Google trends", because the name of this page that you are reading is "Template:''Google trends''"
|-
 
| <tt><nowiki>{{subst:google|Godzilla}}</nowiki></tt> || {{google|Godzilla}} || Pages with the term "Godzilla".
 
 
|-
 
|-
| <tt><nowiki>{{subst:google|Godzilla Rodan}}</nowiki></tt> || {{google|Godzilla Rodan}} || Pages which contain "Godzilla" and "Rodan".
+
| <tt><nowiki>{{subst:google trends|Godzilla}}</nowiki></tt> || {{google trends|Godzilla}} || Searches for the term "Godzilla".
 
|-
 
|-
| <tt><nowiki>{{subst:google|"Godzilla Movie"}}</nowiki></tt> || {{google|"Godzilla Movie"}} || Pages with the phrase "Godzilla Movie".
+
| <tt><nowiki>{{subst:google trends|Godzilla, Rodan}}</nowiki></tt> || {{google trends|Godzilla, Rodan}} || Searches for "Godzilla" and searches for "Rodan".
 
|-
 
|-
| <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.
+
| <tt><nowiki>{{subst:google trends|"Godzilla Movie"}}</nowiki></tt> || {{google|"Godzilla Movie"}} || Pages with the phrase "Godzilla Movie".
|-
 
| <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.
 
 
|}
 
|}
-->
+
 
 +
=== See also ===
 +
{{Google templates}}
 +
 
 +
<includeonly>
 +
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 +
[[Category:Google search templates|{{PAGENAME}}]]
 +
 
 +
</includeonly>

Revision as of 07:10, 23 March 2009

Usage

Creates a Google trends search link for the supplied term(s). 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.

Search for multiple terms by separating them with commas.

Do not use in articles

Examples

Type this To get this What it searches for
{{subst:google trends}} doc Searches for the phrase "Google trends", because the name of this page that you are reading is "Template:Google trends"
{{subst:google trends|Godzilla}} Godzilla Searches for the term "Godzilla".
{{subst:google trends|Godzilla, Rodan}} Godzilla, Rodan Searches for "Godzilla" and searches for "Rodan".
{{subst:google trends|"Godzilla Movie"}} "Godzilla Movie" Pages with the phrase "Godzilla Movie".

See also