Template:Cite Q/doc: Difference between revisions
Richardpruen (talk | contribs) m 1 revision imported |
imported>Boud archival parameters - separate section? in any case, I didn't realise how easy it is to get an archive.today long URL |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{high use}} | {{high use}} | ||
{{warning|From the [[Wikipedia:Templates for discussion/Log/2017 September 15#Template:Cite Q|TfD closure]]: " | {{warning|From the [[Wikipedia:Templates for discussion/Log/2017 September 15#Template:Cite Q|TfD closure]]: "Until the matter of transcluding Wikidata on Wikipedia is resolved (most likely with a huge and contentious RFC) usage of this template should be extremely vetted to ensure that all of the transcluded information is accurate."}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
{{Lua|Module:Cite Q}} | {{Lua|Module:Cite Q}} | ||
{{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. | |||
You can read about the template in: | You can read about the template in: | ||
:{{cite Q|Q104831003}} | |||
'''Note:''' While Wikipedia [[Wikipedia:Citing sources#Wikidata|does not regard Wikidata as a reliable source]], citations using Cite Q are ''not'' citing Wikidata; they cite the individual work stated, using metadata about that work, which is held on Wikidata for convenience. | |||
== 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]]. | ||
By default, if there are more than eight author names, the template displays three, followed by "et al". This can be changed using {{para|display-authors}}; | By default, if there are more than eight author names, the template displays three, followed by "et al". This can be changed using {{para|display-authors}}; setting that parameter to <code>all</code> displays them all. The same applies to multiple editors – see the test-case pages. | ||
Citations of papers which have been retracted ({{WDP|P5824}}) will appear in [[:Category:Cite Q - cites a retracted work]]. | Citations of papers which have been retracted ({{WDP|P5824}}) will appear in [[:Category:Cite Q - cites a retracted work]]. | ||
| Line 22: | Line 27: | ||
Citations of papers which have been replaced ({{WDP|P1366}}) will appear in [[:Category:Cite Q - cites a replaced work]]. | Citations of papers which have been replaced ({{WDP|P1366}}) will appear in [[:Category:Cite Q - cites a replaced work]]. | ||
You can also use {{tl|Cite Q bulleted}} if you want to have a bullet returned before the citation (useful for automatic lists) | You can also use {{tl|Cite Q bulleted}} if you want to have a bullet returned before the citation (useful for automatic lists) | ||
===Parameters === | ===Parameters === | ||
| Line 91: | 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 117: | Line 127: | ||
;<code><nowiki>{{Cite Q|Q25766745|author-mask=1}}</nowiki></code> | ;<code><nowiki>{{Cite Q|Q25766745|author-mask=1}}</nowiki></code> | ||
:{{Cite Q|Q25766745|author-mask=1}} | :{{Cite Q|Q25766745|author-mask=1}} | ||
;<code><nowiki>{{Cite Q|Q25766745|editor=unset}}</nowiki></code> | |||
:{{Cite Q|Q25766745|editor=unset}} | |||
For an example of a bibliography, updated periodically by [https://listeria.toolforge.org/ Listeriabot], see [[User:Mike Peel/publications]]. | |||
For additional examples, see [[Template:Cite Q/testcases|testcases]] and [[Template:Cite Q/testcases/many names|testcases/many names]]. | For additional examples, see [[Template:Cite Q/testcases|testcases]] and [[Template:Cite Q/testcases/many names|testcases/many names]]. | ||
| Line 210: | Line 224: | ||
** Current rendering of author name uses semicolon: “Camelia-Manuela Lățăianu; Manuela Lataianu” | ** Current rendering of author name uses semicolon: “Camelia-Manuela Lățăianu; Manuela Lataianu” | ||
** Suggested improved rendering of author name: “Manuela Lataianu [= Camelia-Manuela Lățăianu]” | ** Suggested improved rendering of author name: “Manuela Lataianu [= Camelia-Manuela Lățăianu]” | ||
** Such instances should be fixed on Wikidata, [https://www.wikidata.org/w/index.php?title=Q108740476&type=revision&diff=1630505802&oldid=1505280341 as done here] | |||
=== Deferred === | === Deferred === | ||
| Line 268: | Line 283: | ||
** This is intended; please discuss on talk | ** This is intended; please discuss on talk | ||
** Fix ready for test in template sandbox: <nowiki>{{cite Q/sandbox|qid=Q15625490}}</nowiki> gives {{cite Q/sandbox|qid=Q15625490}} | ** Fix ready for test in template sandbox: <nowiki>{{cite Q/sandbox|qid=Q15625490}}</nowiki> gives {{cite Q/sandbox|qid=Q15625490}} | ||
* Replace the QID with a pen icon | |||
** The QID is valid metadata about the cited work. | |||
== See also == | |||
[[:meta:WikiCite]] and [[:d:Wikidata:WikiProject Source Metadata]] - goals of those projects include the management of citations across Wikimedia projects and better insight into research resources through Wikimedia projects. | |||
== Template data == | == Template data == | ||
| Line 273: | 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> | ||