Difference between revisions of "Template:SetBibliographyItem"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(27 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
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.
 
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:
+
'''NOTE:''' As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.
 +
 
 +
'''Parameters:'''
 
* <code><nowiki>|citation key=</nowiki></code> - the citation key of this resource, e.g. "Barseghyan (2015)".
 
* <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 article, collection, book, collection article.
 
* <code><nowiki>|type=</nowiki></code> - the type of the resource. Accepted values are: journal article, collection, book, collection article.
Line 8: Line 10:
 
* <code><nowiki>|title=</nowiki></code> - the title of the resource.  
 
* <code><nowiki>|title=</nowiki></code> - the title of the resource.  
 
* <code><nowiki>|year=</nowiki></code> - the year of first publication.  
 
* <code><nowiki>|year=</nowiki></code> - the year of first publication.  
 +
* <code><nowiki>|cover=</nowiki></code> - the image of the cover for books and collections, and of the first page for articles (optional).
 
* <code><nowiki>|publisher=</nowiki></code> - the name of the publishing company.  
 
* <code><nowiki>|publisher=</nowiki></code> - the name of the publishing company.  
 +
* <code><nowiki>|abstract=</nowiki></code> - the abstract or a short synopsis of the resource.
 
* <code><nowiki>|isbn=</nowiki></code> - the ISBN number of the publication.
 
* <code><nowiki>|isbn=</nowiki></code> - the ISBN number of the publication.
* <code><nowiki>|url=</nowiki></code> - if the resource is online, the stable URL of the resource.  
+
* <code><nowiki>|hyperlinkurl=</nowiki></code> - if the resource is online, the stable URL of the resource.  
 
* <code><nowiki>|doi=</nowiki></code> - the DOI of the resource, if available.  
 
* <code><nowiki>|doi=</nowiki></code> - the DOI of the resource, if available.  
* <code><nowiki>|collection editor=</nowiki></code> - 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.
+
* <code><nowiki>|collection=</nowiki></code> - if the resource is in a collection, then indicate the collection's Citation Key here, e.g. "Lakatos (1978)".
* <code><nowiki>|collection author=</nowiki></code> - 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 <code><nowiki>|collection editor=</nowiki></code> field will be ignored.
 
* <code><nowiki>|collection year=</nowiki></code> - if the resource is in a collection, the year when the collection was published.
 
* <code><nowiki>|collection title=</nowiki></code> - if the resource is in a collection, the title of the collection.
 
 
* <code><nowiki>|journal=</nowiki></code> - if the resource is in a journal, the title of the journal.
 
* <code><nowiki>|journal=</nowiki></code> - if the resource is in a journal, the title of the journal.
 
* <code><nowiki>|volume=</nowiki></code> - if the resource is in a journal, the volume of the journal issue.
 
* <code><nowiki>|volume=</nowiki></code> - if the resource is in a journal, the volume of the journal issue.
Line 22: Line 23:
 
</noinclude>
 
</noinclude>
 
<includeonly><!--
 
<includeonly><!--
-->{{{citation key|}}}<!--
+
--><!--
 +
--><!--set the author's of the record
 +
--><!--
 +
-->{{#if:{{{author|}}} |<!--
 +
-->{{#arraydefine:authorsArray|{{{author|}}}|,|}}<!--
 +
-->{{#arrayunique:authorsArray}}<!--
 +
-->{{#arrayprint:authorsArray||@@@@|{{#set:Has Author=@@@@}}}}<!--
 +
-->}}<!--
 +
--><!--
 +
--><!-- set other properties so that they can be queried
 +
--><!--
 +
-->{{#set:Title={{{title|}}}|Resource Type={{{type|}}}|Year={{{year|}}}|Publisher={{{publisher|}}}|Cover Image={{{cover|}}}|Abstract={{{abstract|}}}|ISBN={{{isbn|}}}|DOI={{{doi|}}}|URL={{{url|}}}|Collection={{{collection|}}}|Journal={{{journal|}}}|Volume={{{volume|}}}|Number={{{number|}}}|Pages={{{pages|}}}|}}<!--
 +
--><!--
 +
--><!-- set the first page number to be able to order journal articles of the same issue or articles in the same collection by page numbers 
 +
--><!--
 +
-->{{#if: {{{pages|}}}|<!--
 +
--><!--
 +
-->{{#vardefine: varFirstPageNumber|{{ExtractFirstPageNumber|pages={{{pages|}}}|}}|}}<!--
 +
--><!--
 +
-->{{#if: {{IsNumber|value={{var: varFirstPageNumber}}|}}<!--
 +
  -->|<!--
 +
  --><!-- regular number: store as is
 +
  -->{{#set:First Page={{#var: varFirstPageNumber}}|}}<!--
 +
  --><!--
 +
  -->|<!--
 +
  --><!-- not a number: see if it is roman
 +
  -->{{#set:First Page=0|}}<!--
 +
  --><!--
 +
-->}}<!-- if is number
 +
-->}}<!-- if pages given
 +
--><!--
 +
--><!-- 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|}}}<!--
+
    -->|abstract={{{abstract|}}}<!--
    --> |url={{{url|}}}<!--
+
    -->|publisher={{{publisher|}}}<!--
    --> |doi={{{doi|}}}<!--
+
    -->|isbn={{{isbn|}}}<!--
     -->}}<!--
+
    -->|hyperlinkurl={{{hyperlinkurl|}}}<!--
  --> |journal article={{BibliographyItemJournalArticle<!--
+
    -->|doi={{{doi|}}}<!--
    --> |citation key={{{citation key|}}}<!--
+
     -->}}<!--  
    --> |author={{{author|}}}<!--
+
  -->|journal article=<!--
    --> |title={{{title|}}}<!--
+
  -->{{SetBibliographyItemJournalArticle<!--
    --> |year={{{year|}}}<!--
+
    -->|citation key={{{citation key|}}}<!--
    --> |publisher={{{publisher|}}}<!--
+
    -->|author={{{author|}}}<!--
    --> |isbn={{{isbn|}}}<!--
+
    -->|title={{{title|}}}<!--
    --> |url={{{url|}}}<!--
+
    -->|year={{{year|}}}<!--
    --> |doi={{{doi|}}}<!--
+
    -->|abstract={{{abstract|}}}<!--
    --> |journal={{{journal|}}}<!--
+
    -->|publisher={{{publisher|}}}<!--
    --> |volume={{{volume|}}}<!--
+
    -->|isbn={{{isbn|}}}<!--
    --> |number={{{number|}}}<!--
+
    -->|hyperlinkurl={{{hyperlinkurl|}}}<!--
    --> |pages={{{pages|}}}<!--
+
    -->|doi={{{doi|}}}<!--
 +
    -->|journal={{{journal|}}}<!--
 +
    -->|volume={{{volume|}}}<!--
 +
    -->|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|}}}<!--
+
    -->|abstract={{{abstract|}}}<!--
    --> |url={{{url|}}}<!--
+
    -->|publisher={{{publisher|}}}<!--
    --> |doi={{{doi|}}}<!--
+
    -->|isbn={{{isbn|}}}<!--
 +
    -->|hyperlinkurl={{{hyperlinkurl|}}}<!--
 +
    -->|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|}}}<!--
+
    -->|abstract={{{abstract|}}}<!--
    --> |url={{{url|}}}<!--
+
    -->|publisher={{{publisher|}}}<!--
    --> |doi={{{doi|}}}<!--
+
    -->|isbn={{{isbn|}}}<!--
    --> |collection editor={{{collection editor|}}}<!--
+
    -->|hyperlinkurl={{{hyperlinkurl|}}}<!--
    --> |collection author={{{collection author|}}}<!--
+
    -->|doi={{{doi|}}}<!--
    --> |collection year={{{collection year|}}}<!--
+
    -->|collection={{{collection|}}}<!--
    --> |collection title={{{collection title|}}}<!--
+
    -->|pages={{{pages|}}}<!--
    --> |pages={{{pages|}}}<!--
 
 
     -->}}<!--
 
     -->}}<!--
 
-->}}<!--
 
-->}}<!--
-->{{#if:{{{author|}}}<!--
 
-->|{{#arraydefine:authors|{{{author|}}}}}<!--
 
-->{{#arrayprint:authors||@@@@| {{#if:@@@@| {{#set:Has author=@@@@}}|}} }}<!--
 
-->|}}<!--
 
 
--></includeonly>
 
--></includeonly>

Latest revision as of 16:09, 28 December 2021

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.

NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.

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.
  • |cover= - the image of the cover for books and collections, and of the first page for articles (optional).
  • |publisher= - the name of the publishing company.
  • |abstract= - the abstract or a short synopsis of the resource.
  • |isbn= - the ISBN number of the publication.
  • |hyperlinkurl= - 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".