Difference between revisions of "Template:SetBibliographyItem"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template is used to format an individual bibliography entry in accord with the specifications of the <code><nowiki>#scite</nowiki></code> parser. Items defined through this become part of the Semantic Cite mechanism used by this encyclopedia.
+
This template is used to define an individual bibliography entry in accord with the specifications of the <code><nowiki>#scite</nowiki></code> parser. Items defined through this become part of the Semantic Cite mechanism used by this encyclopedia.
  
 
Parameters:
 
Parameters:
 +
* <code><nowiki>|citation key=</nowiki></code> - the citation key of this resource, e.g. "Barseghyan (2015)".
 
* <code><nowiki>|type=</nowiki></code> - the type of the resource. Accepted values are: journal, collection, book.
 
* <code><nowiki>|type=</nowiki></code> - the type of the resource. Accepted values are: journal, collection, book.
 
* <code><nowiki>|author=</nowiki></code> - the author(s) of the resource. If multiple authors need to be specified, a comma delimited array can be passed here.  
 
* <code><nowiki>|author=</nowiki></code> - the author(s) of the resource. If multiple authors need to be specified, a comma delimited array can be passed here.  
Line 23: Line 24:
 
<includeonly>
 
<includeonly>
 
{{#switch:{{{type|}}}
 
{{#switch:{{{type|}}}
  |book=''a book scite here''
+
|book={{BibliographyItemBook
  |journal=''a journal scite here''
+
|citation key={{{citation key|}}}
  |collection=''a collection scite here''
+
  |type=book
 +
|author={{{author|}}}
 +
|title={{{title|}}}
 +
|year={{{year|}}}
 +
|publisher={{{publisher|}}}
 +
|isbn={{{isbn|}}}
 +
|url={{{url|}}}
 +
  |doi={{{doi|}}}
 +
}}
 +
|journal={{BibliographyItemJournal
 +
|citation key={{{citation key|}}}
 +
|type=journal
 +
|author={{{author|}}}
 +
|title={{{title|}}}
 +
|year={{{year|}}}
 +
|publisher={{{publisher|}}}
 +
|isbn={{{isbn|}}}
 +
|url={{{url|}}}
 +
|doi={{{doi|}}}
 +
|journal={{{journal|}}}
 +
|volume={{{volume|}}}
 +
|number={{{number|}}}
 +
|pages={{{pages|}}}
 +
}}
 +
|collection={{BibliographyItemCollection
 +
|citation key={{{citation key|}}}
 +
|type=collection
 +
|author={{{author|}}}
 +
|title={{{title|}}}
 +
|year={{{year|}}}
 +
|publisher={{{publisher|}}}
 +
|isbn={{{isbn|}}}
 +
|url={{{url|}}}
 +
|doi={{{doi|}}}
 +
  |collection editor={{{collection editor|}}}
 +
|collection author={{{collection author|}}}
 +
|collection year={{{collection year|}}}
 +
|collection title={{{collection title|}}}
 +
|pages={{{pages|}}}
 +
}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 15:08, 12 August 2016

This template is used to define an individual bibliography entry in accord with the specifications of the #scite parser. Items defined through this become part of the Semantic Cite mechanism used by this encyclopedia.

Parameters:

  • |citation key= - the citation key of this resource, e.g. "Barseghyan (2015)".
  • |type= - the type of the resource. Accepted values are: journal, collection, book.
  • |author= - the author(s) of the resource. If multiple authors need to be specified, a comma delimited array can be passed here.
  • |title= - the title of the resource.
  • |year= - the year of first publication.
  • |publisher= - the name of the publishing company.
  • |isbn= - the ISBN number of the publication.
  • |url= - if the resource is online, the stable URL of the resource.
  • |doi= - the DOI of the resource, if available.
  • |collection editor= - if the resource is in a collection and the collection has an editor(s), the name of the editor(s). If multiple editors need to be specified, a comma delimited array can be passed here.
  • |collection author= - if the resource is in a collection of the works by the same author(s), the name of the author(s). If multiple authors need to be specified, a comma delimited array can be passed here. If indicated, then |collection editor= field will be ignored.
  • |collection year= - if the resource is in a collection, the year when the collection was published.
  • |collection title= - if the resource is in a collection, the title of the collection.
  • |journal= - if the resource is in a journal, the title of the journal.
  • |volume= - if the resource is in a journal, the volume of the journal issue.
  • |number= - if the resource is in a journal, the number of the journal issue.
  • |pages= - if the resource is in a collection or a journal, the pages where the resource is located. Don't use "p." or "pp." just indicate the page numbers, e.g. "61-116".