Template:Cite Q
This template uses Lua: |
Purpose
[edit]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.
For example, Wikidata item Biodiversity assessment of the fishes of Saba Bank atoll, Netherlands Antilles (Q15625490) is a scholarly item. To cite this as a source:
{{Cite Q|Q15625490}}
→- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21 May 2010). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". PLOS One (in English) 5 (5). Bibcode:2010PLoSO...510676W. ISSN 1932-6203. PMC 2873961. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. Wikidata Q15625490.
You can read about the template in:
- Mike Peel; Andy Mabbett (14 January 2021). "Automatically maintained citations with Wikidata and Cite Q". Diff (in English). Wikidata Q104831003.
Usage
[edit]A wrapper for {{Citation}}, which calls available values from Wikidata.
By default, if there are more than eight author names, the template displays three, followed by "et al". This can be changed using |display-authors=
; setting that parameter to all
displays them all. The same applies to multiple editors – see the test-case pages.
Citations of papers which have been retracted (retracted by (P5824)) will appear in Category:Cite Q - cites a retracted work.
Citations of papers which have been replaced (replaced by (P1366)) will appear in Category:Cite Q - cites a replaced work.
Parameters
[edit]|1=
= Wikidata QID for the article
Additionally, any named parameter used in {{citation}} may be entered and will overwrite the value in Wikidata. Using such parameters, with a value of unset
, will suppress display of data from Wikidata.
Blank
[edit]<ref name="">{{Cite Q| XXQIDXX }}</ref>
Reference naming
[edit]For ease of use, you may wish to name your references to reflect the cited work, for example:
<ref name="Williams-2010">{{Cite Q|Q15625490}}</ref>
Parameter / entity map
[edit]This section lists where each of the template's supported parameters gets its data.
Bibliographic parameters
[edit]|at=
= section, verse, paragraph, or clause (P958)|authorn=
= author (P50); author name string (P2093)|chapter=
= chapter (P792)|edition=
= edition number (P393)|editorn=
= editor (P98); editor-in-chief (P5769)|issue=
= issue (P433)|journal=
= published in (P1433)|language=
= language of work or name (P407)|pages=
= page(s) (P304)|place=
= location of creation (P1071) (for written-at place)|publication-date=
= publication date (P577) (treated like|date=
unless both are given)|publication-place=
= place of publication (P291) (for publication place, treated like|place=
unless both are given)|publisher=
= publisher (P123)|series=
= part of the series (P179)|title=
= title (P1476) (Wikidata label)|translatorn=
= translator (P655)|url=
= full work available at URL (P953), official website (P856), URL (P2699)|version=
= software version identifier (P348)|volume=
= volume (P478)|others=
= composer (P86), illustrator (P110), author of foreword (P2679), presenter (P371), performer (P175)
Identifier parameters
[edit]|asin=
= Amazon Standard Identification Number (P5749) (add|asin-tld=
for some locales)|arxiv=
= arXiv ID (P818)|bibcode=
= ADS bibcode (P819) (add|bibcode-access=
to indicate free)|biorxiv=
= BioRxiv ID (P3951)|citeseerx=
= CiteSeerX article ID (former scheme) (P3784)|doi=
= DOI (P356) (add|doi-access=
to indicate free; add|doi-broken-date=
if deprecated)|hdl=
= Handle ID (P1184) (add|hdl-access=
to indicate free)|isbn=
= ISBN-13 (P212) (falls back to ISBN-10 (P957))|ismn=
= ISMN (P1208)|issn=
= ISSN (P236)|jstor=
= JSTOR article ID (P888) (add|jstor-access=
to indicate free)|lccn=
= Library of Congress Control Number (LCCN) (bibliographic) (P1144)|mr=
= Mathematical Reviews ID (P889)|oclc=
= OCLC control number (P243)|ol=
= Open Library ID (P648) (add|ol-access=
to indicate free)|osti=
= OSTI article ID (P3894) (add|osti-access=
to indicate free)|pmc=
= PMC publication ID (P932) (add|pmc-embargo-date=
if embargoed)|pmid=
= PubMed publication ID (P698)|rfc=
= RfC ID (P892)|ssrn=
= SSRN article ID (P893)|s2cid=
= Semantic Scholar corpus ID (P8299) (add|s2cid-access=
to indicate free)|zbl=
= zbMATH Open document ID (P894)
Examples
[edit]{{Cite Q|Q15625490}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21 May 2010). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". PLOS One (in English) 5 (5). Bibcode:2010PLoSO...510676W. ISSN 1932-6203. PMC 2873961. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. Wikidata Q15625490.
{{Cite Q|Q15625490|page=42}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21 May 2010). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". PLOS One (in English) 5 (5): 42. Bibcode:2010PLoSO...510676W. ISSN 1932-6203. PMC 2873961. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. Wikidata Q15625490.
{{Cite Q|Q15625490|access-date=18 May 2017}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21 May 2010). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". PLOS One (in English) 5 (5). Bibcode:2010PLoSO...510676W. ISSN 1932-6203. PMC 2873961. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. Wikidata Q15625490. Retrieved 18 May 2017.
{{Cite Q|Q15625490|quote=lorem ipsum}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21 May 2010). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". PLOS One (in English) 5 (5). Bibcode:2010PLoSO...510676W. ISSN 1932-6203. PMC 2873961. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. Wikidata Q15625490.
lorem ipsum
{{Cite Q|Q25766745}}
- Pink Floyd: The Music and the Mystery, Omnibus Press, 2010, Wikidata Q25766745, OCLC 762731304.
{{Cite Q|Q25766745 |chapter=The Final Cut}}
(with chapter specified)- "The Final Cut", Pink Floyd: The Music and the Mystery, Omnibus Press, 2010, Wikidata Q25766745, OCLC 762731304.
{{Cite Q|Q25766745 |pages=48-52}}
(with pages)- Pink Floyd: The Music and the Mystery, Omnibus Press, 2010, pp. 48-52, Wikidata Q25766745, OCLC 762731304.
{{Cite Q|Q15625490|access-date=18 May 2017}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21 May 2010). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". PLOS One (in English) 5 (5). Bibcode:2010PLoSO...510676W. ISSN 1932-6203. PMC 2873961. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. Wikidata Q15625490. Retrieved 18 May 2017.
{{Cite Q|Q25766745|mode=cs1}}
- Pink Floyd: The Music and the Mystery, Omnibus Press, 2010, Wikidata Q25766745, OCLC 762731304.
{{Cite Q|Q25766745|mode=cs2}}
- Pink Floyd: The Music and the Mystery, Omnibus Press, 2010, Wikidata Q25766745, OCLC 762731304.
{{Cite Q|Q25766745|author-mask=1}}
- Pink Floyd: The Music and the Mystery, Omnibus Press, 2010, Wikidata Q25766745, OCLC 762731304.
{{Cite Q|Q25766745|editor=unset}}
- Pink Floyd: The Music and the Mystery, Omnibus Press, 2010, Wikidata Q25766745, OCLC 762731304.
For an example of a bibliography, updated periodically by Listeriabot, see en:wikipedia:User:Mike Peel/publications.
For additional examples, see testcases and testcases/many names.
Module:Wd
[edit]Module:Wd can automatically cause this template to be invoked, e.g.,
{{Wikidata|references|raw|Q2978|P2046}}
- Error: Unable to display the reference properly. See the documentation for details. "Alle politisch selbständigen Gemeinden mit ausgewählten Merkmalen am 31.12.2018 (4. Quartal)". Federal Statistical Office. Archived from the original on 10 March 2019. Retrieved 10 March 2019.
currently causes the following to be invoked:
{{Cite Q|Q15707237|pages=242}}
- Amtliches Ortsverzeichnis für Bayern, Munich: Bavarian State Office for Statistics and Data, 1991, pp. 242, Wikidata Q15707237, <http://nbn-resolving.de/urn/resolver.pl?urn=urn:nbn:de:bvb:12-bsb00059539-6>.
because an area (P2046) statement on Regensburg (Q2978) is referenced to be stated in (P248) Amtliches Ortsverzeichnis für Bayern (1991) (Q15707237) with page(s) (P304) = 242.
- See d:Q2978#P2046
Issues
[edit]See en:wikipedia:Template:Cite Q
See also
[edit]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
[edit]Generate citations from Wikidata by passing the QID to this template
Parameter | Description | Type | Status | |
---|---|---|---|---|
QID | 1 | The Wikidata QID of the cited source | String | required |
Author | author | Use for Last, First format
| String | optional |
Author Link | authorlink | Wikipedia article title, use with Author
| String | optional |