Difference between revisions of "Template:Reference Material"
From Thermodynamics of Computation
WikiWorks4 (talk | contribs) (Add edit button) |
|||
(10 intermediate revisions by one other user not shown) | |||
Line 39: | Line 39: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
− | </noinclude><includeonly> | + | </noinclude><includeonly><!-- |
+ | --><div class="pull-right" style="margin-right: 10px;">{{EditWithForm|Reference Material}}</div><!-- | ||
+ | -->{{#set:Mendeley id={{{Mendeley id|}}}}} | ||
;reference groups: {{#arraymap:{{{reference groups|}}}|,|x|: [[reference group::x]]|\n}} | ;reference groups: {{#arraymap:{{{reference groups|}}}|,|x|: [[reference group::x]]|\n}} | ||
− | ;keywords: {{#arraymap:{{{Keywords|}}}|;|x|: [[ | + | ;author-supplied keywords: {{#arraymap:{{#mendeley:id={{{Mendeley id|}}}|parameter=keywords}}|,|x|: [[keyword::x]]|\n}} |
+ | ;keywords: {{#arraymap:{{{Keywords|}}}|;|x|: [[keyword::x]]|\n}} | ||
<!-- We get the authors in two different "arrays" from the API. We need to combine the first element of each array together, then the second, etc. --> | <!-- We get the authors in two different "arrays" from the API. We need to combine the first element of each array together, then the second, etc. --> | ||
;authors: {{#if:{{{authors|}}}|{{#set:primary author last name={{{primary author last name|Unknown}}}}} | ;authors: {{#if:{{{authors|}}}|{{#set:primary author last name={{{primary author last name|Unknown}}}}} | ||
{{#arraymap:{{{authors|}}}|;|x|: [[Author name::x]]|\n}} | {{#arraymap:{{{authors|}}}|;|x|: [[Author name::x]]|\n}} | ||
|{{#vardefine:i|0}}{{#arraymap:{{#mendeley:id={{{Mendeley id|}}}|parameter=authors;last_name}}|,|xyz|{{#ifeq:{{#var:i}}|0|{{#set:primary author last name={{{primary author last name|xyz}}}}}}} | |{{#vardefine:i|0}}{{#arraymap:{{#mendeley:id={{{Mendeley id|}}}|parameter=authors;last_name}}|,|xyz|{{#ifeq:{{#var:i}}|0|{{#set:primary author last name={{{primary author last name|xyz}}}}}}} | ||
− | : | + | :{{Do Author name|{{#explode:{{#mendeley:id={{{Mendeley id|}}}|parameter=authors;first_name}}|,|{{#var:i}}}} {{#explode:{{#mendeley:id={{{Mendeley id|}}}|parameter=authors;last_name}}|,|{{#var:i}}}}}} |
{{#vardefine:i|{{#expr:{{#var:i}}+1}} }} | {{#vardefine:i|{{#expr:{{#var:i}}+1}} }} | ||
|\n}}}} | |\n}}}} | ||
Line 76: | Line 79: | ||
department | department | ||
abstract | abstract | ||
− | |||
|\n|x|{{#if:{{{x|{{#mendeley:id={{{Mendeley id|}}}|parameter=x}}}}}| | |\n|x|{{#if:{{{x|{{#mendeley:id={{{Mendeley id|}}}|parameter=x}}}}}| | ||
; x | ; x | ||
: {{{x|{{#mendeley:id={{{Mendeley id|}}}|parameter=x}}}}}{{#set:x={{{x|{{#mendeley:id={{{Mendeley id|}}}|parameter=x}}}}}}} | : {{{x|{{#mendeley:id={{{Mendeley id|}}}|parameter=x}}}}}{{#set:x={{{x|{{#mendeley:id={{{Mendeley id|}}}|parameter=x}}}}}}} | ||
}}|\n}} | }}|\n}} | ||
+ | {{#if:{{{link|{{#mendeley:id={{{Mendeley id|}}}|parameter=link}}}}}| | ||
+ | ; link | ||
+ | : {{#googleanalyticstrackurl:{{{link|{{#mendeley:id={{{Mendeley id|}}}|parameter=link}}}}}|{{{link|{{#mendeley:id={{{Mendeley id|}}}|parameter=link}}}}}}}([[Link clicks::{{#googleanalyticsmetrics:metric=totalEvents|url={{{link|{{#mendeley:id={{{Mendeley id|}}}|parameter=link}}}}}}}]]){{#set:link={{{link|{{#mendeley:id={{{Mendeley id|}}}|parameter=link}}}}}}} | ||
+ | }} | ||
+ | |||
+ | == Counts == | ||
+ | ;Citation count | ||
+ | : [[Citation count::{{{citation count|{{#scopus:doi={{#mendeley:id={{{Mendeley id|}}}|parameter=identifiers;doi}}|parameter=citedby-count}}}}}]]{{#if:{{{citation count|{{#scopus:doi={{#mendeley:id={{{Mendeley id|}}}|parameter=identifiers;doi}}|parameter=citedby-count}}}}}||{{#set:Citation count=0}}}} | ||
+ | ;Page views | ||
+ | : [[Page views::{{#googleanalyticsmetrics:page={{FULLPAGENAME}}|metric=pageviews}}]] | ||
== Identifiers == | == Identifiers == | ||
Line 101: | Line 113: | ||
* '''editions:''' {{#arraymap:{{{editions|{{#mendeley:id={{{Mendeley id|}}}|parameter=editions}}}}}|,|x|[[edition::x]]}} | * '''editions:''' {{#arraymap:{{{editions|{{#mendeley:id={{{Mendeley id|}}}|parameter=editions}}}}}|,|x|[[edition::x]]}} | ||
}} | }} | ||
+ | {{#if:{{{Related files|}}}| | ||
== Related files == | == Related files == | ||
{{#arraymap:{{{Related files|}}}|;|x|* [[:File:x|x]]{{#set:Related file=File:x}}|\n}} | {{#arraymap:{{{Related files|}}}|;|x|* [[:File:x|x]]{{#set:Related file=File:x}}|\n}} | ||
+ | }} | ||
+ | {{#if:{{{Related videos|}}}| | ||
+ | == Videos == | ||
+ | {{#arraymap:{{{Related videos|}}}|\n|x|{{#evu:x|alignment=inline|dimensions=300}}|\n}} | ||
+ | }} | ||
[[Category:Reference Materials]]__NOTOC____NOEDITSECTION__</includeonly> | [[Category:Reference Materials]]__NOTOC____NOEDITSECTION__</includeonly> |
Latest revision as of 19:24, March 22, 2019
This is the "Reference Material" template. It should be called in the following format:
{{Reference Material |title= |type= |year= |source= |issn= |sgr= |doi= |isbn= |pmid= |arxiv= |scopus= |pui= |abstract= |Mendeley link= |month= |day= |date published= |revision= |pages= |volume= |issue= |websites= |publisher= |city= |editions= |institution= |series= |chapter= |language= |genre= |country= |department= }}
Edit the page to see the template text.