Difference between revisions of "Template:Authorid/doc"

From blackwiki
Jump to navigation Jump to search
imported>J. Johnson
(→‎Usage: Updated to document wikilinks and wikidata functions.)
imported>J. Johnson
Line 3: Line 3:
 
== Usage ==
 
== Usage ==
 
Given appropriate identifiers, generates super-scripted characters that link to an author's record in various databases. Link to the [[ORCID]], [[ResearcherID]], [[Scopus]], [[VIAF]], Google Scholar, and Wikidata databases using (respectively) the 'o', 'r', 's', 'v', 'g', and 'd' named parameters. Example:
 
Given appropriate identifiers, generates super-scripted characters that link to an author's record in various databases. Link to the [[ORCID]], [[ResearcherID]], [[Scopus]], [[VIAF]], Google Scholar, and Wikidata databases using (respectively) the 'o', 'r', 's', 'v', 'g', and 'd' named parameters. Example:
:<code><nowiki>[[Josiah Carberry]]{{Authorid|o= 0000-0002-0036-9460|s= 7007156898}}</nowiki></code> generates: [[Josiah Carberry]]{{Authorid|o= 0000-0002-0036-9460|s= 7007156898}}.
+
* <code><nowiki>[[Josiah Carberry]]{{Authorid|o= 0000-0002-0036-9460|s= 7007156898}}</nowiki></code> generates: [[Josiah Carberry]]{{Authorid|o= 0000-0002-0036-9460|s= 7007156898}}.
  
 
Can also generate wiki-links (in place of using {{para|author-link}}):
 
Can also generate wiki-links (in place of using {{para|author-link}}):
:<code><nowiki>Josiah Carberry{{Authorid|Josiah Carberry|d=Q24090725}}</nowiki></code> generates: Josiah Carberry{{Authorid|Josiah Carberry|d=Q24090725}}.
+
* <code><nowiki>Josiah Carberry{{Authorid|Josiah Carberry|d=Q24090725}}</nowiki></code> generates: Josiah Carberry{{Authorid|Josiah Carberry|d=Q24090725}}.
  
 
{| class=wikitable
 
{| class=wikitable
Line 54: Line 54:
  
 
But currently must be appended to the {{para|firstN}} or {{para|authorN}} parameter, which will break {{para|author-link}}.
 
But currently must be appended to the {{para|firstN}} or {{para|authorN}} parameter, which will break {{para|author-link}}.
 +
 +
Authorid will write the name of the subject author if supplied in the {{para|a}} parameter:
 +
* {{authorid|a=Carberry|Josiah Carberry|d=Q24090725|o=0000-0002-1825-0097}}
 +
Possible use is following a citation template to provide various author id links.
  
 
<includeonly>
 
<includeonly>

Revision as of 21:36, 18 May 2016

Usage

Given appropriate identifiers, generates super-scripted characters that link to an author's record in various databases. Link to the ORCID, ResearcherID, Scopus, VIAF, Google Scholar, and Wikidata databases using (respectively) the 'o', 'r', 's', 'v', 'g', and 'd' named parameters. Example:

  • [[Josiah Carberry]]{{Authorid|o= 0000-0002-0036-9460|s= 7007156898}} generates: Josiah Carberryos.

Can also generate wiki-links (in place of using |author-link=):

  • Josiah Carberry{{Authorid|Josiah Carberry|d=Q24090725}} generates: Josiah Carberry*d.
Parameter (and
link letter):
Links to: Sample identifier:
Template:Nbs o ORCID 0000-0002-0036-9460
Template:Nbs r ResearcherID I-6013-2012
Template:Nbs s Scopus 7007156898
Template:Nbs v VIAF 75121530
Template:Nbs g Google Scholar qc6CJjYAAAAj
Template:Nbs d Wikidata item Q24090725
Wiki-link Josiah Carberry

Intended for use with citation templates, and designed to be minimally intrusive. E.g.:

  • Carberry, Josiahos; Bourbaki, Nicolasv (2004), Mythical Maths.

But currently must be appended to the |firstN= or |authorN= parameter, which will break |author-link=.

Authorid will write the name of the subject author if supplied in the |a= parameter:

  •  Carberry*do

Possible use is following a citation template to provide various author id links.