Difference between revisions of "Template:Zotero"
From DFM Wiki
EricThrift (talk | contribs) (Allow locator and prefix text) |
EricThrift (talk | contribs) |
||
Line 3: | Line 3: | ||
|format=JSON | |format=JSON | ||
|data=citation=citation | |data=citation=citation | ||
− | }}{{#if:{{{prefix|}}}|{{{prefix}}} |}}{{#external_value:citation}}{{#if:{{{locator|}}}|, {{{locator}}}|}} [https://www.zotero.org//groups/{{{group|2183860}}}/items/{{{id}}} Zotero]</includeonly> | + | }}{{#if:{{{prefix|}}}|{{{prefix}}} |}}{{#external_value:citation}}{{#if:{{{locator|}}}|, {{{locator}}}|}}. [https://www.zotero.org//groups/{{{group|2183860}}}/items/{{{id}}} [Zotero]]</includeonly> |
<noinclude><templatedata> | <noinclude><templatedata> | ||
{ | { | ||
Line 16: | Line 16: | ||
"description": "Numeric identifier of the Zotero group library in which the reference is found.", | "description": "Numeric identifier of the Zotero group library in which the reference is found.", | ||
"default": "2183860" | "default": "2183860" | ||
+ | }, | ||
+ | "prefix": { | ||
+ | "label": "Prefix", | ||
+ | "description": "Citation prefix", | ||
+ | "example": "see also" | ||
+ | }, | ||
+ | "locator": { | ||
+ | "label": "Locator", | ||
+ | "description": "The page, section, or paragraph number", | ||
+ | "example": "52" | ||
} | } | ||
}, | }, |
Revision as of 19:00, 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.
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 |
Prefix | prefix | Citation prefix
| Unknown | optional |
Locator | locator | The page, section, or paragraph number
| Unknown | optional |