Difference between revisions of "Template:SciteAPABookResourceFormatter"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
Parameters:
 
Parameters:
 
* <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.  
* <code><nowiki>|collection editor=</nowiki></code> - if this is a collection book, then indicate the editor(s). If multiple editors need to be specified, a comma delimited array can be passed here. If the book has an author, this field will be ignored.
 
 
* <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.  
Line 10: Line 9:
 
* <code><nowiki>|isbn=</nowiki></code> - the ISBN number of the publication.
 
* <code><nowiki>|isbn=</nowiki></code> - the ISBN number of the publication.
 
* <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>|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 hyperlinkurl of the resource.  
</noinclude>
+
* <code><nowiki>|removelinks</nowiki></code> - add this to remove wiki links.
<includeonly><!--
+
 
-->{{#arraydefine:author |{{{author|}}} }}<!--
+
</noinclude><includeonly><!--
-->{{#arrayprint:author |;<nowiki> </nowiki>|@@@@|{{AuthorLastNameCommaFirstName|author=@@@@}}|;|print=pretty }}<!--
+
-->{{FormatResourceAuthors|authors={{{author|}}} }}<!--
-->. ({{{year}}}) ''{{{title}}}''. {{{publisher}}}.<!--
+
-->&#32;({{{year}}}) ''{{FormatResourceTitle|title={{{title}}}|}}'' {{{publisher}}}.<!--
-->{{#if: {{{doi|}}} |<nowiki> </nowiki>doi: [http://dx.doi.org/{{{doi}}} {{{doi}}}.]}}<!--
+
-->{{#if: {{{hyperlinkurl|}}} |&#32;Retrieved from {{{hyperlinkurl}}}.}}</includeonly>
-->{{#if: {{{url|}}} |<nowiki> </nowiki>Retrieved from [{{{url}}} {{{url}}}].}}</includeonly>
 

Latest revision as of 15:02, 6 July 2017

This template is used by the Semantic Cite mechanism to format book resources in the APA style.

Parameters:

  • |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.
  • |doi= - the DOI of the resource, if available.
  • |hyperlinkurl= - if the resource is online, the stable hyperlinkurl of the resource.
  • |removelinks - add this to remove wiki links.