Difference between revisions of "Template:SetBibliographyItemBook"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 2: Line 2:
 
This template is called from within the [[Template:BibliographyItem|BibliographyItem]] template to define an individual book 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 called from within the [[Template:BibliographyItem|BibliographyItem]] template to define an individual book 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>|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 14: Line 16:
 
<includeonly><!--
 
<includeonly><!--
 
-->{{#scite:{{{citation key|}}}<!--
 
-->{{#scite:{{{citation key|}}}<!--
--> |type=book<!--
+
-->|type=book<!--
--> |author={{{author|}}}<!--
+
-->|author={{{author|}}}<!--
--> |title={{{title|}}}<!--
+
-->|title={{{title|}}}<!--
--> |year={{{year|}}}<!--
+
-->|year={{{year|}}}<!--
--> |publisher={{{publisher|}}}<!--
+
-->|publisher={{{publisher|}}}<!--
--> |isbn={{{isbn|}}}<!--
+
-->|isbn={{{isbn|}}}<!--
--> |url={{{url|}}}<!--
+
-->|url={{{url|}}}<!--
--> |doi={{{doi|}}}<!--
+
-->|doi={{{doi|}}}<!--
-->}}</includeonly>
+
-->}}<!--
 +
--><!-- set the citation text
 +
-->{{#set: Citation Text={{SciteAPABookResourceFormatter<!--
 +
                      -->|author={{{author|}}}<!--
 +
                      -->|title={{{title|}}}<!--
 +
                      -->|year={{{year|}}}<!--
 +
                      -->|publisher={{{publisher|}}}<!--
 +
                      -->|isbn={{{isbn|}}}<!--
 +
                      -->|url={{{url|}}}<!--
 +
                      -->|doi={{{doi|}}}<!--
 +
                      -->}}<!--
 +
-->}}<!-- set
 +
--></includeonly>

Revision as of 20:15, 13 August 2016

This template is called from within the BibliographyItem template to define an individual book 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)".
  • |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.