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>Jonesey95
m (Fix Linter errors using AutoEd)
 
(12 intermediate revisions by 5 users not shown)
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.
 +
 +
Displays the terms(s) to search for, or use optional second parameter to display something else.
  
 
=== 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 error 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 18:
 
! 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''"
+
| <code><nowiki>{{subst:google trends}}</nowiki></code> || {{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".
+
| <code><nowiki>{{subst:google trends|Godzilla}}</nowiki></code> || {{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".
+
| <code><nowiki>{{subst:google trends|Godzilla, Rodan}}</nowiki></code> || {{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.
+
| <code><nowiki>{{subst:google trends|Godzilla, Rodan| search trend: Godzilla vs. Rodan}}</nowiki></code> || {{google trends|Godzilla, Rodan|search trend: Godzilla vs. Rodan}} || Searches for "Godzilla" and searches for "Rodan".  Changes link name to "search trend: Godzilla vs. Rodan".
 
|-
 
|-
| <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.
+
| <code><nowiki>{{subst:google trends|Godzilla, Rodan, Dalek, babel fish}}</nowiki></code> || {{google trends|Godzilla, Rodan, Dalek, babel fish}} || Searches for "Godzilla," searches for "Rodan", searches for "Dalek", and searches for "babel fish".
 
|}
 
|}
-->
+
 
 +
=== See also ===
 +
{{Google templates}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 +
[[Category:Google search templates|{{PAGENAME}}]]
 +
}}</includeonly>

Latest revision as of 02:10, 3 June 2020

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.

Displays the terms(s) to search for, or use optional second parameter to display something else.

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, Rodan| search trend: Godzilla vs. Rodan}} search trend: Godzilla vs. Rodan Searches for "Godzilla" and searches for "Rodan". Changes link name to "search trend: Godzilla vs. Rodan".
{{subst:google trends|Godzilla, Rodan, Dalek, babel fish}} Godzilla, Rodan, Dalek, babel fish Searches for "Godzilla," searches for "Rodan", searches for "Dalek", and searches for "babel fish".

See also