Santa Fe Institute Collaboration Platform

Thermodynamics of Computation

Difference between revisions of "Template:Reference Material"

From Thermodynamics of Computation
(primary author last name)
Line 44: Line 44:
 
;authors: {{#if:{{{authors|}}}|
 
;authors: {{#if:{{{authors|}}}|
 
{{#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|
+
|{{#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|}}}}}
 
:[[Author name::{{#explode:{{#mendeley:id={{{Mendeley id|}}}|parameter=authors;first_name}}|,|{{#var:i}}}} {{#explode:{{#mendeley:id={{{Mendeley id|}}}|parameter=authors;last_name}}|,|{{#var:i}}}}]]
 
:[[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}}}}{{#set:primary author last name={{{primary author last name|}}}}}
 
{{#arraymap:
 
{{#arraymap:
 
title
 
title

Revision as of 17:55, March 28, 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.