Difference between revisions of "Template:SciteAPACollectionResourceFormatter"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
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>|editor=</nowiki></code> - the editor(s) of the resource. If multiple editors need to be specified, a comma delimited array can be passed here.  
 
* <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>|publisher=</nowiki></code> - the name of the publishing company.  
 
* <code><nowiki>|publisher=</nowiki></code> - the name of the publishing company.  
 
* <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>|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>|hyperlinkurl=</nowiki></code> - if the resource is online, the stable URL of the resource.  
* <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>|removelinks</nowiki></code> - add this to remove wiki links.
* <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>|pages=</nowiki></code> - 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".
 
</noinclude>
 
  
<includeonly>{{#if: {{{authors|}}} |{{{authors}}}|{{{author}}}}}. ({{{year}}}) {{{title}}}. In {{#if: {{{collectionauthor|}}} |{{{collectionauthor}}}|{{#if: {{{collectioneditors|}}} |{{{collectioneditors}}} (eds.)|{{{collectioneditor}}} (ed.)}}}} ({{{collectionyear}}}){{#if: {{{collectiontitle|}}} |'' {{{collectiontitle}}}''|}}{{#if: {{{publisher|}}} |. {{{publisher}}}|}}{{#if: {{{pages|}}} |, {{{pages}}}.|.}}{{#if: {{{doi|}}} |<nowiki> </nowiki>doi: [http://dx.doi.org/{{{doi}}} {{{doi}}}.]}}{{#if: {{{url|}}} |<nowiki> </nowiki>Retrieved from [{{{url}}} {{{url}}}].}}</includeonly>
+
</noinclude><includeonly><!--
 +
-->{{FormatResourceAuthors|authors={{{editor|}}} }}&#32;<!--
 +
-->{{#arraydefine: editorsArray|{{{editor|}}} }}<!--
 +
-->{{#arrayunique: editorsArray}}<!--
 +
-->{{#ifexpr: {{#arraysize:editorsArray}} = 1 |(Ed.).|(Eds.).}}<!--
 +
-->&#32;({{{year}}}) ''{{FormatResourceTitle|title={{{title}}}|}}'' {{{publisher}}}.<!--
 +
-->{{#if: {{{hyperlinkurl|}}} |&#32;Retrieved from {{{hyperlinkurl}}}.}}</includeonly>

Latest revision as of 15:29, 6 July 2017

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

Parameters:

  • |editor= - the editor(s) of the resource. If multiple editors 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 URL of the resource.
  • |removelinks - add this to remove wiki links.