Difference between revisions of "Template:Altmetric lookup"
(link to property page) |
(add more info link) |
||
Line 16: | Line 16: | ||
url=http://api.altmetric.com/v1/pmid/{{{pmid|}}} | url=http://api.altmetric.com/v1/pmid/{{{pmid|}}} | ||
|format=JSON | |format=JSON | ||
− | |data=altscore=score | + | |data=altscore=score,details_url=details_url |
}} | }} | ||
{{#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}} ]]. | + | 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:53, 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.