Difference between revisions of "Template:Reference Material"
From Thermodynamics of Computation
Line 42: | Line 42: | ||
'''reference groups:''' {{#arraymap:{{{reference groups|}}}|,|x|[[reference group::x]]|, }} | '''reference groups:''' {{#arraymap:{{{reference groups|}}}|,|x|[[reference group::x]]|, }} | ||
<!-- 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:''' {{#vardefine:i|0}}{{#arraymap:{{#mendeley:{{{ | + | ;'''authors:''' {{#vardefine:i|0}}{{#arraymap:{{#mendeley:id={{{Mendeley id|}}}|authors;last_name}}|,|xyz| |
− | :[[Author::{{#explode:{{#mendeley:{{{ | + | :[[Author::{{#explode:{{#mendeley:id={{{Mendeley id|}}}|authors;first_name}}|,|{{#var:i}}}} {{#explode:{{#mendeley:id={{{Mendeley id|}}}|authors;last_name}}|,|{{#var:i}}}}]] |
{{#vardefine:i|{{#expr:{{#var:i}}+1}} }} | {{#vardefine:i|{{#expr:{{#var:i}}+1}} }} | ||
|\n}} | |\n}} | ||
Line 66: | Line 66: | ||
abstract | abstract | ||
link | link | ||
− | |\n|x|{{#if:{{{x|{{#mendeley:{{{ | + | |\n|x|{{#if:{{{x|{{#mendeley:id={{{Mendeley id|}}}|x}}}}}| |
− | '''x:''' [[x::{{{x|{{#mendeley:{{{ | + | '''x:''' [[x::{{{x|{{#mendeley:id={{{Mendeley id|}}}|x}}}}}]] |
}}|\n\n}} | }}|\n\n}} | ||
Line 80: | Line 80: | ||
scopus | scopus | ||
pui | pui | ||
− | |\n|x|{{#if:{{{x|{{#mendeley:{{{ | + | |\n|x|{{#if:{{{x|{{#mendeley:id={{{Mendeley id|}}}|identifiers;x}}}}}| |
− | '''x:''' [[x::{{{x|{{#mendeley:{{{ | + | '''x:''' [[x::{{{x|{{#mendeley:id={{{Mendeley id|}}}|identifiers;x}}}}}]] |
− | }}|\n\n}}<!--'''Date published:''' [[Date published::{{{year|{{#mendeley:{{{ | + | }}|\n\n}}<!--'''Date published:''' [[Date published::{{{year|{{#mendeley:id={{{Mendeley id|}}}|year}}}}}, {{{month|{{#mendeley:id={{{Mendeley id|}}}|month}}}}} {{{day|{{#mendeley:id={{{Mendeley id|}}}|day}}}}}]]-->{{#if:{{{websites|{{#mendeley:id={{{Mendeley id|}}}|websites}}}}}| |
'''websites:''' {{#arraymap:{{{websites|}}}|,|x|[[website::x]]}} | '''websites:''' {{#arraymap:{{{websites|}}}|,|x|[[website::x]]}} | ||
− | }}{{#if:{{{editions|{{#mendeley:{{{ | + | }}{{#if:{{{editions|{{#mendeley:id={{{Mendeley id|}}}|editions}}}}}| |
'''editions:''' {{#arraymap:{{{editions|}}}|,|x|[[edition::x]]}} | '''editions:''' {{#arraymap:{{{editions|}}}|,|x|[[edition::x]]}} | ||
}} | }} |
Revision as of 17:01, March 14, 2018
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.