Difference between revisions of "Template:Zotero"
From DFM Wiki
EricThrift (talk | contribs) (Add cache seconds) |
EricThrift (talk | contribs) (Allow the ID to be provided as a single positional argument.) Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<includeonly>{{#get_web_data: | <includeonly>{{#get_web_data: | ||
| − | url=https://api.zotero.org/groups/{{{group|2183860}}}/items/{{{id}}}?format=json&include=citation&style=https%3A%2F%2Fdriedfishmatters.org%2Fstatic%2Fchicago-note-bibliography-16th-edition-nosuffix.csl&linkwrap=0 | + | url=https://api.zotero.org/groups/{{{group|2183860}}}/items/{{{id|{{{1}}}}}}?format=json&include=citation&style=https%3A%2F%2Fdriedfishmatters.org%2Fstatic%2Fchicago-note-bibliography-16th-edition-nosuffix.csl&linkwrap=0 |
|format=JSON | |format=JSON | ||
|data=citation=citation | |data=citation=citation | ||
| Line 11: | Line 11: | ||
"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": "N46G9Q4Z", | "example": "N46G9Q4Z", | ||
| − | "required": true | + | "required": true, |
| + | "aliases": [ | ||
| + | "1" | ||
| + | ], | ||
| + | "type": "string" | ||
}, | }, | ||
"group": { | "group": { | ||
Latest revision as of 15:58, 30 November 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Zotero item identifier | id 1 | This is the 8-character reference ID found in a Zotero item URL.
| String | required |
| Group | group | Numeric identifier of the Zotero group library in which the reference is found.
| Unknown | optional |
| Prefix | prefix | Citation prefix
| Unknown | optional |
| Locator | locator | The page, section, or paragraph number
| Unknown | optional |
| Suffix | suffix | Citation suffix (text to come at the end of the citation) | Unknown | optional |

