Difference between revisions of "Template:Google scholar"

From blackwiki
Jump to navigation Jump to search
imported>Elegie
(Use a protocol-relative URL for the scholar.google.com link to facilitate both HTTP and HTTPS access.)
imported>PanchoS
(use class "plainlinks" only if specified, as link icon indicates leaving Wikipedia)
 
Line 1: Line 1:
<span class="plainlinks">[//scholar.google.com/scholar?q={{urlencode:{{{1|}}}}} {{#if: {{{2|}}}|{{{2|}}}|{{#if:{{{1|}}}|{{{1|}}}|Search: Google Scholar}}}}]{{#if:{{NAMESPACE}}|{{ns:0}}|<span class="messagebox" style="padding: 0; font-size: xx-small; color: #000000;">''Do not use [[Template:Google scholar]] in [[WP:WIAA|articles]] as [[WP:LINKSTOAVOID|Google links are not appropriate]] for an encyclopedia.''</span>}}</span><noinclude>
+
{{#ifeq:{{yesno|{{{plainlink|}}}}}|yes|<span class="plainlinks">}}[//scholar.google.com/scholar?q={{urlencode:{{{1|}}}}} {{#if: {{{2|}}}|{{{2|}}}|{{#if:{{{1|}}}|{{{1|}}}|Search: Google Scholar}}}}]{{#if:{{NAMESPACE}}|{{ns:0}}|<span class="messagebox" style="padding: 0; font-size: xx-small; color: #000000;">''Do not use [[Template:Google scholar]] in [[WP:WIAA|articles]] as [[WP:LINKSTOAVOID|Google links are not appropriate]] for an encyclopedia.''</span>}}{{#ifeq:{{yesno|{{{plainlink|}}}}}|yes|</span>}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 21:41, 5 April 2016

Search: Google Scholar

Template documentation[view] [edit] [history] [purge]

Usage

Creates a Google Scholar search link. This template takes two unnamed input parameters:

  1. A string to search for. (Optional.)
  2. Link text to display on your wiki page. (Optional.)

Do not use in articles

Examples

Type this To get this What it produces, or searches for
{{google scholar}} Search: Google Scholar Create a link to an empty Google Scholar search form
{{google scholar|David Branby}} David Branby Search for scholarly articles by, or mentioning: David Branby
{{google scholar|Dandan Tu}} Dandan Tu Search for scholarly articles by, or containing: Dandan Tu
{{google scholar|Dandan Tu|Search for articles by, or mentioning: Dandan Tu}} Search for articles by, or mentioning: Dandan Tu The above search with our own link text

See also

bg:Шаблон:Google Наука