Template:Cite Q/sandbox

From Vigyanwiki
< Template:Cite Q
Template documentation

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 Script error: The module returned a nil value. It is supposed to return an export table. (Q15625490) is a scholarly item. To cite this as a source:

{{Cite Q|Q15625490}}
No label or title -- debug: Q15625490, Wikidata Q15625490

You can read about the template in:

No label or title -- debug: Q104831003, Wikidata Q104831003

Note: While Wikipedia 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

A wrapper for {{Citation}}, which calls available values from Wikidata.

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 |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 (Script error: The module returned a nil value. It is supposed to return an export table. (P5824)) will appear in Category:Cite Q - cites a retracted work.

Citations of papers which have been replaced (Script error: The module returned a nil value. It is supposed to return an export table. (P1366)) will appear in Category:Cite Q - cites a replaced work.

You can also use {{Cite Q bulleted}} if you want to have a bullet returned before the citation (useful for automatic lists)

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

Blank

<ref name="">{{Cite Q| XXQIDXX }}</ref>

Reference naming

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

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

Bibliographic parameters

Identifier parameters

Examples

{{Cite Q|Q15625490}}
No label or title -- debug: Q15625490, Wikidata Q15625490
{{Cite Q|Q15625490|page=42}}
No label or title -- debug: Q15625490, p. 42, Wikidata Q15625490
{{Cite Q|Q15625490|access-date=18 May 2017}}