Template:Cite Q/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Usage

[edit]

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

Future developments

[edit]
  • Convert to use Lua for more advanced functionality
  • 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!

Parameters

[edit]
  • |1= = Wikidata QID for the article
  • |access-date= = date an online resources was viewed
  • |author-mask= = replace author name(s) with em-dashes or text
  • |chapter= = chapter title or number of a book or larger work; overrides Wikidata value
  • |date= = date of publication; uses Wikidata value if not set
  • |df= = date format
  • |display-authors= =
  • |embargo= = embargo date for PMC
  • |id= = generic ID; may be wikilinked
  • |mode= = Sets separator, terminal punctuation, and capitalization; use |mode=cs1 or |mode=cs2
  • |page= = single page number
  • |pages= = multiple page numbers, e.g. 27-29 or 34,36
  • |quote= = quotation from the source; may include wikilinks
  • |series= = series of which e.g. a book is part; may include wikilinks; uses Wikidata value if not set
  • |url= = url to source; uses Wikidata value if not set

For all but |1=; see {{Citation}} for more details.

Blank

[edit]
{{Cite Q| XXQIDXX |page= |access-date= |quote= }}

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

Examples

[edit]

Examples here are mostly test-cases, and will need to be thinned (and moved to a sub-page) before the template is widely deployed.

Journal

[edit]
{{Cite Q|Q15625490}}
“”, in (in en), volume 5, issue 5, 21 May 2010, Bibcode2010PLoSO...510676W, DOI:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMID 20505760, Wikidata Q15625490
{{Cite Q|Q15625490|page=42}}
“”, in (in en), volume 5, issue 5, 21 May 2010, Bibcode2010PLoSO...510676W, DOI:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMID 20505760, Wikidata Q15625490, page 42
{{Cite Q|Q15625490|access-date=18 May 2017}}
“”, in (in en), volume 5, issue 5, 21 May 2010, Bibcode2010PLoSO...510676W, DOI:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMID 20505760, Wikidata Q15625490
{{Cite Q|Q15625490|quote=lorem ipsum}}
“”, in (in en), volume 5, issue 5, 21 May 2010, Bibcode2010PLoSO...510676W, DOI:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMID 20505760, Wikidata Q15625490: “lorem ipsum”
{{Cite Q|Q15625490|page=42|access-date=18 May 2017|quote=lorem ipsum}}
“”, in (in en), volume 5, issue 5, 21 May 2010, Bibcode2010PLoSO...510676W, DOI:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMID 20505760, Wikidata Q15625490, page 42: “lorem ipsum”
{{Cite Q|Q30000000}} (with issue; volume - needs work!)
“The Synergistic Activity of Thyroid Transcription Factor 1 and Pax 8 Relies on the Promoter/Enhancer Interplay”, in Molecular Endocrinology (in en), volume 16, issue 4, 1 April 2002, DOI:10.1210/MEND.16.4.0808, ISSN 0888-8809, PMID 11923479, Wikidata Q30000000, pages 837-846
{{Cite Q|Q14558831}} (with arxiv; bibcode)
“A Catalog of Multiplicity among Bright Stellar Systems”, in Monthly Notices of the Royal Astronomical Society[1] (in en), volume 389, issue 2, September 2008, Bibcode2008MNRAS.389..869E, DOI:10.1111/J.1365-2966.2008.13596.X, ISSN 0035-8711, Wikidata Q14558831, pages 869–879
{{Cite Q|Q28597702}} (with biorxiv)
“TP53 copy number expansion is associated with the evolution of increased body size and an enhanced DNA damage response in elephants”, in (in en), volume 5, 19 September 2016, DOI:10.7554/ELIFE.11994, ISSN 2050-084X, PMID 27642012, Wikidata Q28597702
{{Cite Q|Q22241718}} (with citeseerx)
“The immune response in autism: a new frontier for autism research”, in Journal of Leukocyte Biology (in en), volume 80, issue 1, 9 May 2006, DOI:10.1189/JLB.1205707, ISSN 0741-5400, PMID 16698940, Wikidata Q22241718, pages 1-15
{{Cite Q|Q28798299}} (with osti)
“Cataracts induced by microwave and ionizing radiation”, in Survey of Ophthalmology (in en), volume 33, issue 3, November 1988, DOI:10.1016/0039-6257(88)90088-4, ISSN 0039-6257, PMID 3068822, Wikidata Q28798299, pages 200-210
{{Cite Q|Q23327424}} (with ssrn)
“Bermuda's Legacy: Policy, Patents and the Design of the Genome Commons”, in Minnesota Journal of Law, Science and Technology (in en), 28 August 2010, ISSN 1552-9533, SSRN 1667659, Wikidata Q23327424

Book

[edit]
{{Cite Q|Q25766745}}
Pink Floyd: The Music and the Mystery (in en), Omnibus Press, 2010, OCLC 762731304, Wikidata Q25766745
{{Cite Q|Q25766745 |chapter=The Final Cut}} (with chapter specified)
“The Final Cut”, in Pink Floyd: The Music and the Mystery (in en), Omnibus Press, 2010, OCLC 762731304, Wikidata Q25766745
{{Cite Q|Q25766745 |pages =48-52}} (with pages)
Pink Floyd: The Music and the Mystery (in en), Omnibus Press, 2010, OCLC 762731304, Wikidata Q25766745, pages 48-52
{{Cite Q|Q4784}} (with ISBN 10 & OCLC)
Metroland (in en), Jonathan Cape, 1980, Wikidata Q4784
{{Cite Q|Q14944010}} (edition; with LCCN & OCLC)
(in en), Illustrator: , New York City: , 1911, LCCN 11025047, OCLC 361881, Wikidata Q14944010
{{Cite Q|Q21707170}} (with MR)
Introduction to the Theory of Games (in en), , 1952, Wikidata Q21707170
{{Cite Q|Q24969482|volume=1|date=1873}} (with volume & year; note: it is better to create an item for the specific volume)
Johann Sebastian Bach: His Work and Influence on the Music of Germany, volume 1, 1873, Wikidata Q24969482
{{Cite Q|Q29581627|series=A series}} (with series)
Early heart transplant surgery in the UK (A series)[2], , 1999, ISBN 978-1-84129-007-2, Wikidata Q29581627

News

[edit]

Not working at present; needs special handling.


Manuscript

[edit]
{{Cite Q|Q15664389}} (with hdl)
Eleanor Elizabeth Bourne Papers, (Please provide a date or year), Wikidata Q15664389

Misc

[edit]
{{Cite Q|Q15901614}} (with ISMN)
Trois Bagatelles, Composer: , 1961, Wikidata Q15901614

Mode

[edit]
{{Cite Q|Q15625490|access-date=18 May 2017|mode=cs1}}
“”, in (in en), volume 5, issue 5, 21 May 2010, Bibcode2010PLoSO...510676W, DOI:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMID 20505760, Wikidata Q15625490
{{Cite Q|Q15625490|access-date=18 May 2017|mode=cs2}}
“”, in (in en), volume 5, issue 5, 21 May 2010, Bibcode2010PLoSO...510676W, DOI:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMID 20505760, Wikidata Q15625490
{{Cite Q|Q25766745|mode=cs1}}
Pink Floyd: The Music and the Mystery (in en), Omnibus Press, 2010, OCLC 762731304, Wikidata Q25766745
{{Cite Q|Q25766745|mode=cs2}}
Pink Floyd: The Music and the Mystery (in en), Omnibus Press, 2010, OCLC 762731304, Wikidata Q25766745

Authormask

[edit]
{{Cite Q|Q25766745|author-mask=1}}
Pink Floyd: The Music and the Mystery (in en), Omnibus Press, 2010, OCLC 762731304, Wikidata Q25766745

Module:Wd

[edit]

Module:Wd can automatically cause this template to be invoked, e.g.,

{{#invoke:Wd|references|raw|Q2978|P2046}}
Error: Unable to display the reference properly. See the documentation for details.

currently causes the following to be invoked:

{{Cite Q|Q15707237|pages=242}}
Amtliches Ortsverzeichnis für Bayern[3] (in de), Munich: , 1991, Wikidata Q15707237, pages 242

because an area (P2046) statement on PQ2978 (PQ2978) is referenced to be stated in (P248) PQ15707237 (PQ15707237) with page(s) (P304) = 242.

{{wikidata|references}} is used in a number of places including {{Infobox World Heritage Site}} resulting in the above reference appearing as a reference footnote at Regensburg § History after 1945.

Issues

[edit]
  • Multiple author names treated as one blob
  • Linking author name(s)
  • Title for a book uses {{ #invoke:WikidataIB |getLink |{{{1}}} }} and may be expensive
  • What to do if title not in English
  • Linking title to Wikipedia article, if any
  • Need to fetch ISSN etc. from item about journal
  • More properties/ parameters to add
  • Parameters with no equivalent property?
  • Move Wikidata link before |quote= (and after other IDs like |pmid=)
  • Fix |ol= values
  • Need to handle volume, issue and page(s) as qualifiers of journal (see Q30000000 example)
  • Check/ resolve handling of redirected QIDs
  • Need wider variety of examples/ test cases
  • Need to add manual date for newspaper articles/ website articles.
  • Resolve special case of newspaper articles
  • Improve date formatting options
  • Make publisher a link, where appropriate
  • Handle volume in a serial
  • Improve handing of unexpected multiple values
    • e.g. Handle multiple DOIs
  • Handle author name string (author name string (P2093)) values (e.g. on Q38000000)
  • Order of precedence for rendering author names:
    1. object named as (P1932) qualifier on author (P50)
    2. author name string (P2093)
    3. author (P50) label in English
    4. author (P50) label in any other language
  • Handle pseudonymous author personas such as P. D. Q. Bach or Mark Twain


Pink Floyd: The Music and the Mystery