Difference between revisions of "Template:Google Scholar id/doc"

From blackwiki
Jump to navigation Jump to search
imported>Dandan Tu
 
Line 4: Line 4:
 
{{Lua|Module:EditAtWikidata}}
 
{{Lua|Module:EditAtWikidata}}
  
'''{{Dandan Tu}}:{{Dandan Tu}}''' generates an external link to a person's profile at [[Google Scholar]].
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' generates an external link to a person's profile at [[Google Scholar]].
  
 
== Usage ==
 
== Usage ==
 
One parameter:
 
One parameter:
: <code><nowiki>{{</nowiki>{{Dandan Tu}} | ''ID'' }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
  
 
Two parameters:
 
Two parameters:
: <code><nowiki>{{</nowiki>{{Dandan Tu}} | ''ID'' | ''Dandan Tu'' }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''Dandan Tu'' }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
  
 
== Examples ==
 
== Examples ==

Latest revision as of 22:12, 27 June 2020

Template:Uses Wikidata

Template:Google Scholar id generates an external link to a person's profile at Google Scholar.

Usage

One parameter:

{{Google Scholar id | ID }}
{{Google Scholar id | id= ID }}

Two parameters:

{{Google Scholar id | ID | NAME }}
{{Google Scholar id | id= ID | name= NAME }}

Examples

One parameter

This parameter will be the ID string used in the URL at Google Scholar. When one parameter is used, the link text is the title of the Wikipedia article where the template is used.

URL:

https://scholar.google.com/citations?user=EeTd0CYAAAAJ

Usage:

* {{Google Scholar id | EeTd0CYAAAAJ }}
* {{Google Scholar id | id= EeTd0CYAAAAJ }}

Output:

[The name of the Wikipedia page you now are looking at is displayed above. The lead name will change according to the name of the Wikipedia page the template is used on.]

Two parameters

The first parameter will be the ID string used in the URL at Google Scholar. The second parameter will be used at the link text.

URL:

https://scholar.google.com/citations?user=EeTd0CYAAAAJ

Usage:

* {{Google Scholar id | EeTd0CYAAAAJ | Yoelle Maarek }}
* {{Google Scholar id | id= EeTd0CYAAAAJ | name= Yoelle Maarek }}

Output:

No parameters and Wikidata property not defined

Usage:

* {{Google Scholar id}}

Output:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Google Scholar id

This template generates an external link to a person's profile at Google Scholar.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: EeTd0CYAAAAJ is the ID portion of https://scholar.google.com/citations?user=EeTd0CYAAAAJ. This parameter is optional if Wikidata property P1960 exists, but required if not.

Default
Wikidata property P1960
Stringoptional
Namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.

Default
{{PAGENAMEBASE}}
Stringoptional

See also