Anonymous user
Template:Cite Q/doc: Difference between revisions
archival parameters - separate section? in any case, I didn't realise how easy it is to get an archive.today long URL
Richardpruen (talk | contribs) m (1 revision imported: Templates and CSS files) |
imported>Boud (archival parameters - separate section? in any case, I didn't realise how easy it is to get an archive.today long URL) |
||
Line 6: | Line 6: | ||
{{Uses Wikidata|section=Parameter / entity map}} | {{Uses Wikidata|section=Parameter / entity map}} | ||
This template, a wrapper for {{Tl|Citation}}, returns a formatted citation from statements stored on a [[Wikidata]] item (referred to by its ''Q identifier'' or ''QID'') describing a citable source such as a scholarly article. | |||
This template returns a formatted citation from statements stored on a [[Wikidata]] item (referred to by its ''Q identifier'' or ''QID'') describing a citable source such as a scholarly article. | |||
You can read about the template in: | You can read about the template in: | ||
Line 20: | Line 15: | ||
== Usage == | == Usage == | ||
For example, Wikidata item {{Q|Q15625490}} is a scholarly item. To cite this as a source: | |||
:<code><nowiki>{{Cite Q|Q15625490}}</nowiki></code> → | |||
::{{Cite Q|Q15625490}} | |||
An example of an article using this template for ''all'' of its references is [[South Pole Telescope]]; an example using Harvard style citations is [[Suffix automaton]]. | An example of an article using this template for ''all'' of its references is [[South Pole Telescope]]; an example using Harvard style citations is [[Suffix automaton]]. | ||
Line 99: | Line 96: | ||
*{{para|s2cid}} = {{WDP|P8299}} (add {{para|s2cid-access}} to indicate free) | *{{para|s2cid}} = {{WDP|P8299}} (add {{para|s2cid-access}} to indicate free) | ||
*{{para|zbl}} = {{WDP|P894}} | *{{para|zbl}} = {{WDP|P894}} | ||
{{Columns-end}} | |||
{{Columns-start}} | |||
====Archival parameters==== | |||
*{{para|archive-url}} = {{WDP|P1065}} (the long URL with a date is needed; see [[WP:WEBARCHIVES]] for e.g. Archive Today) | |||
{{Columns-end}} | {{Columns-end}} | ||
Line 292: | Line 294: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Generate citations from Wikidata by passing the QID to this template", | "description": "Generate citations from Wikidata by passing the QID to this template", | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "QID", | "label": "QID", | ||
"description": "The Wikidata QID of the cited source", | "description": "The Wikidata QID of the cited source", | ||
"type": "string", | "type": "string", | ||
"suggested": true, | "suggested": true, | ||
"required": true | "required": true | ||
}, | |||
"author": { | |||
"label": "Author", | |||
"description": "Use for Last, First format", | |||
"example": "Prymachenko, Maria", | |||
"type": "string" | |||
}, | |||
"authorlink": { | |||
"label": "Author Link", | |||
"description": "Wikipedia article title, use with Author", | |||
"example": "Maria Prymachenko", | |||
"type": "string" | |||
} | } | ||
} | }, | ||
"paramOrder": [ | |||
"1", | |||
"author", | |||
"authorlink" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> |