Difference between revisions of "Template:Zotero"

From DFM Wiki
m (Changed "Zotero" link to "(Zotero record)" in the citation.)
(Allow locator and prefix text)
Line 3: Line 3:
 
  |format=JSON
 
  |format=JSON
 
  |data=citation=citation
 
  |data=citation=citation
}}{{#external_value:citation}} [https://www.zotero.org//groups/{{{group|2183860}}}/items/{{{id}}} (Zotero record)]</includeonly>
+
}}{{#if:{{{prefix|}}}|{{{prefix}}}&nbsp;|}}{{#external_value:citation}}{{#if:{{{locator|}}}|,&nbsp;{{{locator}}}|}} [https://www.zotero.org//groups/{{{group|2183860}}}/items/{{{id}}} Zotero]</includeonly>
 
<noinclude><templatedata>
 
<noinclude><templatedata>
 
{
 
{

Revision as of 18:58, 23 February 2021

Template for importing a formatted citation from the DFM Zotero library. Simply supply the Zotero ID for an item in the DFM library, and MediaWiki will communicate with the Zotero server to retrieve a formatted citation. The template is intended for usage within footnote citations.

Template parameters

ParameterDescriptionTypeStatus
Zotero item identifierid

This is the 8-character reference ID found in a Zotero item URL.

Example
N46G9Q4Z
Unknownrequired
Groupgroup

Numeric identifier of the Zotero group library in which the reference is found.

Default
2183860
Unknownoptional