Template:Cite Q/doc

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; using that parameter with no value displays them all. The same applies to multiple editors - see the test-case pages.

Future developments

 * Once robust the functionality should be merged into Citation
 * Eventually, each signed-in reader should be able to set, under their "Preferences", the style in which they wish to see citations rendered. No more CiteVar wars!
 * We should have a Global templates|lobal template repository, so the code can be used by multiple wikis, without having to manually copy it after every update.g

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. P734}}

Bibliographic parameters

 * authorn = ;
 * chapter    =
 * date       =
 * editorn =
 * issue      =
 * journal    =
 * language   =
 * others     = ,
 * place      =
 * publisher  =
 * series     =
 * title      =
 * title      = Wikidata label
 * url        =, ,
 * volume     =

Identifier parameters

 * arxiv      =
 * bibcode    =
 * biorxiv    =
 * citeseerx  =
 * doi        =
 * hdl        =
 * isbn       =
 * isbn       =
 * ismn       =
 * jstor      =
 * lccn       =
 * mr         =
 * oclc       =
 * ol         =
 * osti       =
 * pmc        =
 * pmid       =
 * ssrn       =

Examples











 * (with chapter specified)


 * (with pages)









For additional examples, see testcases.

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

 * Render, following the title with a
 * More properties/ parameters to add
 * Parameters with no equivalent property?
 * Move Wikidata link before quote (and after other IDs like pmid)
 * Can be achieved by passing to Citation's id parameter
 * Check/ resolve handling of redirected QID
 * Resolve special case of newspaper articles
 * Improve date formatting options
 * Handle volume in a serial
 * Order of precedence for rendering author names:
 * qualifier on
 * label in English
 * label in any other language
 * Regardless of which of the above is used, link to the author biography article if available, via (matched via  if applicable)
 * Author names (Western-style, at least) should display as "Last, First Middle" to match Wikipedia house style
 * How to deal with Tussenvoegsels
 * Are there values of others which are not illustrators? Possibly:
 * signatories
 * presenter
 * performer
 * Add a tracking category for references with a  statement
 * Add a tracking category for references with a  statement
 * Links to sister projects: Wikisource, if a transcription project exists; Wikibooks; Wikiversity (esp. the Wikijournals there); perhaps more
 * Avoid !
 * Consider case where author is given as
 * Where there is a Wikipedia article about the work cited, link the title to that, overriding the URL if necessary (example: d:Q25766745)
 * Ditto for editions of works
 * Multiple author names treated as one blob
 * Linking author name(s)
 * Title for a book uses  and may be expensive
 * Fix ol values
 * Need to add manual date for newspaper articles/ website articles.
 * Make publisher a link, where appropriate
 * Improve handing of unexpected multiple values
 * e.g. Handle multiple DOIs
 * Handle author name string values (e.g. on Q38000000)
 * Handle pseudonymous author personas such as P. D. Q. Bach or Mark Twain
 * What to do if title not in English
 * Need to handle volume, issue and page(s) as qualifiers of
 * Need wider variety of examples/ test cases
 * If language of work or name is set (and not the local language); pass that; if not but language of title is set (and not the local language), use that
 * The  parameter should also pick up data from the properties  and
 * Linking title to Wikipedia article, if any
 * Need to fetch ISSN etc. from item about journal
 * Need to fetch ISSN etc. from item about journal