Mal:Cite Q

Fra Wikipedia, den frie encyklopedi
Hopp til navigering Hopp til søk
Dokumentasjonsikon Maldokumentasjon [vis] [rediger] [historikk] [oppdater]

Usage[rediger kilde]

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

Future developments[rediger kilde]

  • 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[rediger kilde]

  • |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[rediger kilde]

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

Reference naming[rediger kilde]

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[rediger kilde]

This section lists where each of the template's supported parameters gets its data. P734}} Mal:Columns-start

Bibliographic parameters[rediger kilde]

Mal:Column

Identifier parameters[rediger kilde]

Mal:Columns-end

Examples[rediger kilde]

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[rediger kilde]

{{Cite Q|Q15625490}}
Jeffrey T Williams; Kent E Carpenter; James L Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21. mai 2010). «Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles». PLOS ONE. 5 (5). PMC 2873961Åpent tilgjengelig. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. fra Wikidata. 
{{Cite Q|Q15625490|page=42}}
Jeffrey T Williams; Kent E Carpenter; James L Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21. mai 2010). «Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles». PLOS ONE. 5 (5): 42. PMC 2873961Åpent tilgjengelig. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. fra Wikidata. 
{{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. mai 2010). «Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles». PLOS ONE. 5 (5). PMC 2873961Åpent tilgjengelig. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. fra Wikidata. 
{{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. mai 2010). «Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles». PLOS ONE. 5 (5). PMC 2873961Åpent tilgjengelig. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. fra Wikidata. «lorem ipsum» 
{{Cite Q|Q15625490|page=42|access-date=18 May 2017|quote=lorem ipsum}}
Jeffrey T Williams; Kent E Carpenter; James L Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21. mai 2010). «Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles». PLOS ONE. 5 (5): 42. PMC 2873961Åpent tilgjengelig. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. fra Wikidata. «lorem ipsum» 
{{Cite Q|Q30000000}} (with issue; volume - needs work!)
Stefania Miccadei; Rossana De Leo; Enrico Zammarchi; Pier Giorgio Natali; Donato Civitareale (1. april 2002). «The Synergistic Activity of Thyroid Transcription Factor 1 and Pax 8 Relies on the Promoter/Enhancer Interplay». Molecular Endocrinology. 16 (4): 837-846. PMID 11923479. doi:10.1210/MEND.16.4.0808. fra Wikidata. 
{{Cite Q|Q14558831}} (with arxiv; bibcode)
P. P. Eggleton; A. A. Tokovinin (september 2008). «A catalogue of multiplicity among bright stellar systems». Monthly Notices of the Royal Astronomical Society. 389 (2): 869–879. Bibcode:2008MNRAS.389..869E. arXiv:0806.2878Åpent tilgjengelig. doi:10.1111/J.1365-2966.2008.13596.X. fra Wikidata. 
{{Cite Q|Q28597702}} (with biorxiv)
Michael Sulak; Lindsey Fong; Katelyn Mika; Sravanthi Chigurupati; Lisa Yon; Nigel P Mongan; Richard D Emes; Vincent J Lynch (19. september 2016). «TP53 copy number expansion is associated with the evolution of increased body size and an enhanced DNA damage response in elephants». eLife. 5. PMC 5061548Åpent tilgjengelig. PMID 27642012. doi:10.7554/ELIFE.11994. fra Wikidata. 
{{Cite Q|Q22241718}} (with citeseerx)
P. Ashwood; S. Wills; J. Van de Water (9. mai 2006). «The immune response in autism: a new frontier for autism research». Journal of Leukocyte Biology. 80 (1): 1-15. PMID 16698940. doi:10.1189/JLB.1205707. fra Wikidata. 
{{Cite Q|Q28798299}} (with osti)
Richard M. Lipman; Brenda J. Tripathi; Ramesh C. Tripathi (november 1988). «Cataracts induced by microwave and ionizing radiation». Survey of Ophthalmology. 33 (3): 200-210. OSTI 6071133. PMID 3068822. doi:10.1016/0039-6257(88)90088-4. fra Wikidata. 
{{Cite Q|Q23327424}} (with ssrn)
Jorge L. Contreras (28. august 2010) (på en), Bermuda's Legacy: Policy, Patents and the Design of the Genome Commons, SSRN 1667659, fra Wikidata 

Book[rediger kilde]

{{Cite Q|Q25766745}}
Pink Floyd: The Music and the Mystery (engelsk). Omnibus Press. 2010. ISBN 978-1-84938-370-7. OCLC 762731304. OL 25083671M. fra Wikidata. 
{{Cite Q|Q25766745 |chapter=The Final Cut}} (with chapter specified)
«The Final Cut». Pink Floyd: The Music and the Mystery (engelsk). Omnibus Press. 2010. ISBN 978-1-84938-370-7. OCLC 762731304. OL 25083671M. fra Wikidata. 
{{Cite Q|Q25766745 |pages =48-52}} (with pages)
Pink Floyd: The Music and the Mystery (engelsk). Omnibus Press. 2010. s. 48-52. ISBN 978-1-84938-370-7. OCLC 762731304. OL 25083671M. fra Wikidata. 
{{Cite Q|Q4784}} (with ISBN 10 & OCLC)
Julian Barnes (1980) (på en), Metroland, Jonathan Cape, OL1984733W, fra Wikidata 
{{Cite Q|Q14944010}} (edition; with LCCN & OCLC)
Robert Louis Stevenson (1911) (på en), Treasure Island, Illustrator: N. C. Wyeth, New York: Charles Scribner's Sons, LCCN 11025047, OCLC 361881, OL7130221M, fra Wikidata 
{{Cite Q|Q21707170}} (with MR)
J. C. C. McKinsey (1952) (på en), Introduction to the Theory of Games, McGraw-Hill Education, MR 50248, fra Wikidata 
{{Cite Q|Q24969482|volume=1|date=1873}} (with volume & year; note: it is better to create an item for the specific volume)
Philipp Spitta (1873), Johann Sebastian Bach: His Work and Influence on the Music of Germany, 1, fra Wikidata 
{{Cite Q|Q29581627|series=A series}} (with series)
Early heart transplant surgery in the UK. A series (engelsk). History of Modern Biomedicine Research Group. 1999. ISBN 978-1-84129-007-2. OL 12568266M. fra Wikidata. 

News[rediger kilde]

Not working at present; needs special handling.


Manuscript[rediger kilde]

{{Cite Q|Q15664389}} (with hdl)
Eleanor Elizabeth Bourne, Eleanor Elizabeth Bourne Papers, fra Wikidata 

Misc[rediger kilde]

{{Cite Q|Q15901614}} (with ISMN)
(på fr) Trois Bagatelles, Composer: György Ligeti, 1961, fra Wikidata 

Mode[rediger kilde]

{{Cite Q|Q15625490|access-date=18 May 2017|mode=cs1}}
Jeffrey T Williams; Kent E Carpenter; James L Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21. mai 2010). «Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles». PLOS ONE. 5 (5). PMC 2873961Åpent tilgjengelig. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. fra Wikidata. 
{{Cite Q|Q15625490|access-date=18 May 2017|mode=cs2}}
Jeffrey T Williams; Kent E Carpenter; James L Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21. mai 2010). «Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles». PLOS ONE. 5 (5). PMC 2873961Åpent tilgjengelig. PMID 20505760. doi:10.1371/JOURNAL.PONE.0010676. fra Wikidata. 
{{Cite Q|Q25766745|mode=cs1}}
Pink Floyd: The Music and the Mystery (engelsk). Omnibus Press. 2010. ISBN 978-1-84938-370-7. OCLC 762731304. OL 25083671M. fra Wikidata. 
{{Cite Q|Q25766745|mode=cs2}}
Pink Floyd: The Music and the Mystery (engelsk). Omnibus Press. 2010. ISBN 978-1-84938-370-7. OCLC 762731304. OL 25083671M. fra Wikidata. 

Authormask[rediger kilde]

{{Cite Q|Q25766745|author-mask=1}}
Pink Floyd: The Music and the Mystery (engelsk). Omnibus Press. 2010. ISBN 978-1-84938-370-7. OCLC 762731304. OL 25083671M. fra Wikidata. 

Module:Wd-norsk[rediger kilde]

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

{{Wikidata-norsk|referanser|rå|Q2978|P2046}}
https://www.destatis.de/DE/ZahlenFakten/LaenderRegionen/Regionales/Gemeindeverzeichnis/Administrativ/Aktuell/05Staedte.html. «Alle politisch selbständigen Gemeinden mit ausgewählten Merkmalen am 31.12.2018 (4. Quartal)». Statistisches Bundesamt. Arkivert fra originalen 10. mars 2019. Besøkt 10. mars 2019. 

currently causes the following to be invoked:

{{Cite Q|Q15707237|pages=242}}
Bayerisches Landesamt für Statistik, red. (1991) (på de), Amtliches Ortsverzeichnis für Bayern, München: Bayerisches Landesamt für Statistik, ss. 242, fra Wikidata, http://nbn-resolving.de/urn/resolver.pl?urn=urn:nbn:de:bvb:12-bsb00059539-6 

because an (QP2046) statement on Regensburg (Q2978) is referenced to be (QP248) Amtliches Ortsverzeichnis für Bayern (1991) (Q15707237) with (QP304) = 242.

{{wikidata-norsk|referanser}} is used in a number of places including {{Infobox World Heritage Site}} resulting in the above reference appearing as a reference footnote at Mal:Section link.

Issues[rediger kilde]

  • 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 ( (QP2093)) values (e.g. on Q38000000)
  • Order of precedence for rendering author names:
    1. (QP1932) qualifier on (QP50)
    2. (QP2093)
    3. (QP50) label in English
    4. (QP50) label in any other language
    • Regardless of which of the above is used, link to the author biography article if available, via (QP50) (matched via (QP1545) if applicable)
  • Handle pseudonymous author personas such as P. D. Q. Bach or Mark Twain

Pink Floyd: The Music and the Mystery