Difference between revisions of "Template:Zotero"
From DFM Wiki
EricThrift (talk | contribs) (Added template help information.) |
EricThrift (talk | contribs) (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": " | + | "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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Zotero item identifier | id | This is the 8-character reference ID found in a Zotero item URL.
| Unknown | required |
Group | group | Numeric identifier of the Zotero group library in which the reference is found.
| Unknown | optional |