Difference between revisions of "Template:Altmetric lookup"

From SEQwiki
Jump to: navigation, search
(add more info link)
m
Line 19: Line 19:
 
}}
 
}}
 
{{#if: {{#external_value:altscore}}  |
 
{{#if: {{#external_value:altscore}}  |
According to [http://altmetric.com Almetric], this reference has an Altmetric score of [[Altmetric score:: {{#external_value:altscore}} ]] ([ {{#external_value:details_url}} more info]).
+
According to [http://altmetric.com Almetric], this reference has an Altmetric score of [[Altmetric score:: {{#external_value:altscore}} ]] ([{{#external_value:details_url}} more info]).
 
| <!-- else -->
 
| <!-- else -->
 
No Altmetric score found.
 
No Altmetric score found.
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Revision as of 10:56, 25 August 2015

This template works by querying the official Altmetric API with a given PMID. The returned values are assigned to properties in the calling page.

Example:

 {{ Altmetric lookup | pmid = <PMID> }}

Currently we only assign the altmetric 'score' value to the property.

This template defines the property Property:Altmetric_score.

Template code