Template:Cite Q/doc

Purpose
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 is a scholarly item. To cite this as a source:

You can read about the template in:

Usage
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  displays them all. The same applies to multiple editors – see the test-case pages.

Citations of papers which have been retracted will appear in Category:Cite Q - cites a retracted work.

Citations of papers which have been replaced will appear in Category:Cite Q - cites a replaced work.

Parameters

 * 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, will suppress display of data from Wikidata.

Reference naming
For ease of use, you may wish to name your references to reflect the cited work, for example:



Parameter / entity map
This section lists where each of the template's supported parameters gets its data.

Bibliographic parameters

 * at                   =
 * authorn          = ;
 * chapter              =


 * edition              =
 * editorn          = ;
 * issue                =
 * journal              =
 * language             =
 * pages                =
 * place                =  (for written-at place)
 * publication-date     =  (treated like date unless both are given)
 * publication-place    =  (for publication place, treated like place unless both are given)
 * publisher            =
 * series               =
 * title                =  (Wikidata label)
 * translatorn      =
 * url                  =, ,
 * version              =
 * volume               =
 * others               =, , , ,

Identifier parameters

 * asin       =  (add asin-tld for some locales)
 * arxiv      =
 * bibcode    =  (add bibcode-access to indicate free)
 * biorxiv    =
 * citeseerx  =
 * doi        =  (add doi-access to indicate free; add doi-broken-date if deprecated)
 * hdl        =  (add hdl-access to indicate free)
 * isbn       =  (falls back to )
 * ismn       =
 * issn       =
 * jstor      =  (add jstor-access to indicate free)
 * lccn       =
 * mr         =
 * oclc       =
 * ol         =  (add ol-access to indicate free)
 * osti       =  (add osti-access to indicate free)
 * pmc        =  (add pmc-embargo-date if embargoed)
 * pmid       =
 * rfc        =
 * ssrn       =
 * s2cid      =  (add s2cid-access to indicate free)
 * zbl        =

Examples











 * (with chapter specified)


 * (with pages)











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
Module:Wd can automatically cause this template to be invoked, e.g.,

currently causes the following to be invoked:

because an statement on  is referenced to be   with  = 242.

Issues
See en:wikipedia:Template:Cite Q

Template data
{	"description": "Generate citations from Wikidata by passing the QID to this template", "params": { "1": {			"label": "QID", "description": "The Wikidata QID of the cited source", "type": "string", "suggested": 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" ] }