Difference between revisions of "Template:SetBibliographyItem"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
m (HakobBarseghyan moved page Template:BibliographyItem to Template:SetBibliographyItem without leaving a redirect)
Line 20: Line 20:
 
<includeonly><!--
 
<includeonly><!--
 
-->{{{citation key|}}}<!--TODO: remove this printing line after the debug is over
 
-->{{{citation key|}}}<!--TODO: remove this printing line after the debug is over
 +
--><!--set the author's of the record
 +
-->{{#if:{{{author|}}} |<!--
 +
-->{{#arraydefine:authorsArray|{{{author|}}} }}<!--
 +
-->{{#arrayunique:authorsArray}}<!--
 +
-->{{#arrayprint:authorsArray||@@@@|{{#set:Has Author=@@@@}}}}<!--
 +
-->}}<!--
 +
--><!-- define the resource using scite
 
-->{{#switch:{{{type|}}}<!--
 
-->{{#switch:{{{type|}}}<!--
  --> |book={{BibliographyItemBook<!--
+
  -->|book=<!--
    --> |citation key={{{citation key|}}}<!--
+
    -->{{SetBibliographyItemBook<!--
    --> |author={{{author|}}}<!--
+
    -->|citation key={{{citation key|}}}<!--
    --> |title={{{title|}}}<!--
+
    -->|author={{{author|}}}<!--
    --> |year={{{year|}}}<!--
+
    -->|title={{{title|}}}<!--
    --> |publisher={{{publisher|}}}<!--
+
    -->|year={{{year|}}}<!--
    --> |isbn={{{isbn|}}}<!--
+
    -->|publisher={{{publisher|}}}<!--
    --> |url={{{url|}}}<!--
+
    -->|isbn={{{isbn|}}}<!--
    --> |doi={{{doi|}}}<!--
+
    -->|url={{{url|}}}<!--
 +
    -->|doi={{{doi|}}}<!--
 
     -->}}<!--  
 
     -->}}<!--  
  --> |journal article={{BibliographyItemJournalArticle<!--
+
  -->|journal article=<!--
    --> |citation key={{{citation key|}}}<!--
+
  -->{{SetBibliographyItemJournalArticle<!--
    --> |author={{{author|}}}<!--
+
    -->|citation key={{{citation key|}}}<!--
    --> |title={{{title|}}}<!--
+
    -->|author={{{author|}}}<!--
    --> |year={{{year|}}}<!--
+
    -->|title={{{title|}}}<!--
    --> |publisher={{{publisher|}}}<!--
+
    -->|year={{{year|}}}<!--
    --> |isbn={{{isbn|}}}<!--
+
    -->|publisher={{{publisher|}}}<!--
    --> |url={{{url|}}}<!--
+
    -->|isbn={{{isbn|}}}<!--
    --> |doi={{{doi|}}}<!--
+
    -->|url={{{url|}}}<!--
    --> |journal={{{journal|}}}<!--
+
    -->|doi={{{doi|}}}<!--
    --> |volume={{{volume|}}}<!--
+
    -->|journal={{{journal|}}}<!--
    --> |number={{{number|}}}<!--
+
    -->|volume={{{volume|}}}<!--
    --> |pages={{{pages|}}}<!--
+
    -->|number={{{number|}}}<!--
 +
    -->|pages={{{pages|}}}<!--
 
     -->}}<!--
 
     -->}}<!--
  --> |collection={{BibliographyItemCollection<!--
+
  -->|collection=<!--
    --> |citation key={{{citation key|}}}<!--
+
  -->{{SetBibliographyItemCollection<!--
    --> |editor={{{author|}}}<!--
+
    -->|citation key={{{citation key|}}}<!--
    --> |title={{{title|}}}<!--
+
    -->|editor={{{author|}}}<!--
    --> |year={{{year|}}}<!--
+
    -->|title={{{title|}}}<!--
    --> |publisher={{{publisher|}}}<!--
+
    -->|year={{{year|}}}<!--
    --> |isbn={{{isbn|}}}<!--
+
    -->|publisher={{{publisher|}}}<!--
    --> |url={{{url|}}}<!--
+
    -->|isbn={{{isbn|}}}<!--
    --> |doi={{{doi|}}}<!--
+
    -->|url={{{url|}}}<!--
 +
    -->|doi={{{doi|}}}<!--
 
     -->}}<!--
 
     -->}}<!--
  --> |collection article={{BibliographyItemCollectionArticle<!--
+
  -->|collection article=<!--
    --> |citation key={{{citation key|}}}<!--
+
  -->{{SetBibliographyItemCollectionArticle<!--
    --> |author={{{author|}}}<!--
+
    -->|citation key={{{citation key|}}}<!--
    --> |title={{{title|}}}<!--
+
    -->|author={{{author|}}}<!--
    --> |year={{{year|}}}<!--
+
    -->|title={{{title|}}}<!--
    --> |publisher={{{publisher|}}}<!--
+
    -->|year={{{year|}}}<!--
    --> |isbn={{{isbn|}}}<!--
+
    -->|publisher={{{publisher|}}}<!--
    --> |url={{{url|}}}<!--
+
    -->|isbn={{{isbn|}}}<!--
    --> |doi={{{doi|}}}<!--
+
    -->|url={{{url|}}}<!--
    --> |collection={{{collection|}}}<!--
+
    -->|doi={{{doi|}}}<!--
    --> |pages={{{pages|}}}<!--
+
    -->|collection={{{collection|}}}<!--
 +
    -->|pages={{{pages|}}}<!--
 
     -->}}<!--
 
     -->}}<!--
 
-->}}<!--
 
-->}}<!--
--><!--Set the author's of the record
 
-->{{#if:{{{author|}}} |<!--
 
-->{{#arraydefine:authorsArray|{{{author|}}} }}<!--
 
-->{{#arrayunique:authorsArray}}<!--
 
-->{{#arrayprint:authorsArray||@@@@|{{#set:Has Author=@@@@}}}}<!--
 
-->}}<!--
 
--><!--TODO: Set the Citation Text
 
 
--></includeonly>
 
--></includeonly>

Revision as of 20:26, 13 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 article, collection, book, collection article.
  • |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= - if the resource is in a collection, then indicate the collection's Citation Key here, e.g. "Lakatos (1978)".
  • |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".