Template:Cite Q

From Wikispecies
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]


Usage[edit]

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

An example of an article using this template for all of its references is en:South Pole Telescope; an example using Harvard style citations is en: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[edit]

  • 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.
  • We should have a [[:mediawiki:|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[edit]

  • |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[edit]

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

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]

{{Cite Q|Q15625490}}
Jeffrey T. Williams; Kent E. Carpenter; James L. van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21 May 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", ISSN 1932-6203, 5 (5), doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961, PMID 20505760, Wikidata Q15625490
{{Cite Q|Q15625490|page=42}}
Jeffrey T. Williams; Kent E. Carpenter; James L. van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21 May 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", ISSN 1932-6203, 5 (5): 42, doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961, PMID 20505760, Wikidata Q15625490
{{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 May 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", ISSN 1932-6203, 5 (5), doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961, PMID 20505760, Wikidata Q15625490, retrieved 18 May 2017
{{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 May 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", ISSN 1932-6203, 5 (5), doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961, PMID 20505760, Wikidata Q15625490, lorem ipsum
{{Cite Q|Q25766745}}
Andy Mabbett (2010), Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery, Omnibus Press, ISBN 978-1-84938-370-7, OCLC 762731304, OL 25083671M, Wikidata Q25766745
{{Cite Q|Q25766745 |chapter=The Final Cut}} (with chapter specified)
Andy Mabbett (2010), "The Final Cut", in Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery, Omnibus Press, ISBN 978-1-84938-370-7, OCLC 762731304, OL 25083671M, Wikidata Q25766745
{{Cite Q|Q25766745 |pages=48-52}} (with pages)
Andy Mabbett (2010), Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery, Omnibus Press, pp. 48–52, ISBN 978-1-84938-370-7, OCLC 762731304, OL 25083671M, Wikidata Q25766745
{{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 May 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", ISSN 1932-6203, 5 (5), doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961, PMID 20505760, Wikidata Q15625490, retrieved 18 May 2017
{{Cite Q|Q25766745|mode=cs1}}
Andy Mabbett (2010). Chris Charlesworth (ed.). Pink Floyd: The Music and the Mystery. Omnibus Press. ISBN 978-1-84938-370-7. OCLC 762731304. OL 25083671M. Wikidata Q25766745.
{{Cite Q|Q25766745|mode=cs2}}
Andy Mabbett (2010), Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery, Omnibus Press, ISBN 978-1-84938-370-7, OCLC 762731304, OL 25083671M, Wikidata Q25766745
{{Cite Q|Q25766745|author-mask=1}}
— (2010), Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery, Omnibus Press, ISBN 978-1-84938-370-7, OCLC 762731304, OL 25083671M, Wikidata Q25766745

For additional examples, see testcases.

Module:Wd[edit]

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

{{Wikidata|references|raw|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). Federal Statistical Office.

currently causes the following to be invoked:

{{Cite Q|Q15707237|pages=242}}
Bavarian State Office for Statistics and Data, ed. (1991), Amtliches Ortsverzeichnis für Bayern (in German), Munich: Bavarian State Office for Statistics and Data, p. 242, Wikidata Q15707237

because an area (P2046) statement on Regensburg (Q2978) is referenced to be stated in (P248) Amtliches Ortsverzeichnis für Bayern (1991) (Q15707237) with page(s) (P304) = 242.

Issues[edit]

See en:Template:Cite Q/doc#Issues