Difference between revisions of "Template:Citation"

From relax wiki
Jump to navigation Jump to search
(Removal of a space between the page start and page end range (this really has to be done!).)
(Added a second DOI parameter.)
Line 1: Line 1:
{{{authors}}} ({{{year}}}).  {{{title}}}  ''{{{journal}}}'', '''{{{volume}}}'''{{#if: {{{number|}}} | ({{{number}}})}}, {{{page_start}}}{{#if: {{{page_end|}}} | -{{{page_end}}} }}.  {{#if: {{{doi|}}} | (DOI: [http://dx.doi.org/{{{doi}}} {{{doi}}}]) }}<noinclude>
+
{{{authors}}} ({{{year}}}).  {{{title}}}  ''{{{journal}}}'', '''{{{volume}}}'''{{#if: {{{number|}}} | ({{{number}}})}}, {{{page_start}}}{{#if: {{{page_end|}}} | -{{{page_end}}} }}.  {{#if: {{{doi|}}} | (DOI: [http://dx.doi.org/{{{doi}}} {{{doi}}}] }} {{#if: {{{doi2|}}} |, [http://dx.doi.org/{{{doi2}}} {{{doi2}}}] }} {{#if: {{{doi|}}} | ) }}<noinclude>
  
 
{{Template info|1=
 
{{Template info|1=
Line 7: Line 7:
  
 
== Usage ==
 
== Usage ==
  <nowiki>{{</nowiki>'''citation'''{{!}}''authors=''{{!}}''title=''{{!}}''journal=''{{!}}''volume=''{{!}}''number=''{{!}}''page_start=''{{!}}''page_end=''{{!}}''year=''{{!}}''doi=''<nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki>'''citation'''{{!}}''authors=''{{!}}''title=''{{!}}''journal=''{{!}}''volume=''{{!}}''number=''{{!}}''page_start=''{{!}}''page_end=''{{!}}''year=''{{!}}''doi=''{{!}}''doi2=''<nowiki>}}</nowiki>
  
 
; authors : The authors of the paper, in the format of last name, comma, and initials with periods.
 
; authors : The authors of the paper, in the format of last name, comma, and initials with periods.
Line 18: Line 18:
 
; year : The publication year.  Add a letter to differentiate between publications with the same authors and same year.
 
; year : The publication year.  Add a letter to differentiate between publications with the same authors and same year.
 
; doi : The DOI number.
 
; doi : The DOI number.
 +
; doi2 : An optional second DOI number, for back-to-back publications.
  
 
== Examples ==
 
== Examples ==

Revision as of 18:49, 3 November 2015

{{{authors}}} ({{{year}}}). {{{title}}} {{{journal}}}, {{{volume}}}, {{{page_start}}}.

Template documentation

Goal

To standardise the formatting of all citations and references on the relax wiki.

Usage

{{citation|authors=|title=|journal=|volume=|number=|page_start=|page_end=|year=|doi=|doi2=}}
authors 
The authors of the paper, in the format of last name, comma, and initials with periods.
title 
The title of the paper.
journal 
The abbreviated journal name in ISO 4 format.
volume 
The journal volume.
number 
The issue number.
page_state 
The 1st page number.
page_end 
The optional end page number.
year 
The publication year. Add a letter to differentiate between publications with the same authors and same year.
doi 
The DOI number.
doi2 
An optional second DOI number, for back-to-back publications.

Examples

Using the text:

* {{citation
| authors    = d'Auvergne, E. J. and Gooley, P. R.
| title      = Optimisation of NMR dynamic models I. Minimisation algorithms and their performance within the model-free and Brownian rotational diffusion spaces.
| journal    = J. Biomol. NMR
| volume     = 40
| number     = 2
| page_start = 107-119
| doi        = 10.1007/s10858-007-9214-2
| year       = 2008a
}}

The result is:

  • d'Auvergne, E. J. and Gooley, P. R. (2008a). Optimisation of NMR dynamic models I. Minimisation algorithms and their performance within the model-free and Brownian rotational diffusion spaces. J. Biomol. NMR, 40(2), 107-119. (DOI: 10.1007/s10858-007-9214-2 )