Difference between revisions of "Template:Zotero"

From DFM Wiki
(Added template help information.)
(Add link to zotero web library)
Line 1: Line 1:
 
<includeonly>{{#get_web_data:
 
<includeonly>{{#get_web_data:
  url=https://api.zotero.org/groups/2183860/items/{{{id}}}?format=json&include=citation&style=chicago-fullnote-bibliography&linkwrap=0
+
  url=https://api.zotero.org/groups/{{{group|2183860}}}/items/{{{id}}}?format=json&include=citation&style=chicago-fullnote-bibliography&linkwrap=0
 
  |format=JSON
 
  |format=JSON
 
  |data=citation=citation
 
  |data=citation=citation
}}{{#external_value:citation}}</includeonly>
+
}}{{#external_value:citation}} [https://www.zotero.org//groups/{{{group|2183860}}}/items/{{{id}}} Zotero]</includeonly>
 
<noinclude>This is a template for Zotero citations.<templatedata>
 
<noinclude>This is a template for Zotero citations.<templatedata>
 
{
 
{
Line 10: Line 10:
 
"label": "Zotero item identifier",
 
"label": "Zotero item identifier",
 
"description": "This is the 8-character reference ID found in a Zotero item URL.",
 
"description": "This is the 8-character reference ID found in a Zotero item URL.",
"example": "In the URL https://www.zotero.org/groups/2183860/dried_fish_matters/items/N46G9Q4Z/item-details, the ID is: N46G9Q4Z.",
+
"example": "N46G9Q4Z",
 
"required": true
 
"required": true
 +
},
 +
"group": {
 +
"description": "Numeric identifier of the Zotero group library in which the reference is found.",
 +
"default": "2183860"
 
}
 
}
 
},
 
},

Revision as of 10:12, 4 February 2021

This is a template for Zotero citations.

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