Templat:Cite Q

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Loncat ke navigasi Loncat ke pencarian
[lihat] [sunting] [versi terdahulu] [hapus singgahan] Ikon dokumentasi Dokumentasi templat

Usage[sunting sumber]

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.

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 pges.

Future developments[sunting sumber]

  • 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[sunting sumber]

  • |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 no value set, will suppress display of data from Wikidata.

Blank[sunting sumber]

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

Reference naming[sunting sumber]

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[sunting sumber]

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

Examples[sunting sumber]

{{Cite Q|Q15625490}}
Jeffrey T. Williams; Kent E. Carpenter; James L. van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (21 Mei 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", PLOS ONE (dalam bahasa Inggris), 5 (5), doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961alt=Dapat diakses gratis, 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 Mei 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", PLOS ONE (dalam bahasa Inggris), 5 (5): 42, doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961alt=Dapat diakses gratis, 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 Mei 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", PLOS ONE (dalam bahasa Inggris), 5 (5), doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961alt=Dapat diakses gratis, PMID 20505760, diakses tanggal 18 May 2017 , Wikidata Q15625490
{{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 Mei 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", PLOS ONE (dalam bahasa Inggris), 5 (5), doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961alt=Dapat diakses gratis, PMID 20505760, lorem ipsum , Wikidata Q15625490
{{Cite Q|Q25766745}}
Andy Mabbett (2010), Chris Charlesworth, ed., Pink Floyd: The Music and the Mystery (dalam bahasa Inggris), 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", dalam Chris Charlesworth, Pink Floyd: The Music and the Mystery (dalam bahasa Inggris), 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 (dalam bahasa Inggris), Omnibus Press, hlm. 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 Mei 2010), "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles", PLOS ONE (dalam bahasa Inggris), 5 (5), doi:10.1371/JOURNAL.PONE.0010676, ISSN 1932-6203, PMC 2873961alt=Dapat diakses gratis, PMID 20505760, diakses tanggal 18 May 2017 , Wikidata Q15625490
{{Cite Q|Q25766745|mode=cs1}}
Andy Mabbett (2010). Chris Charlesworth, ed. Pink Floyd: The Music and the Mystery (dalam bahasa Inggris). 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 (dalam bahasa Inggris), 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 (dalam bahasa Inggris), Omnibus Press, ISBN 978-1-84938-370-7, OCLC 762731304, OL 25083671M , Wikidata Q25766745

For additional examples, see testcases.

Module:Wd[sunting sumber]

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)". Diarsipkan dari versi asli tanggal 10 Maret 2019. Diakses tanggal 10 Maret 2019. 

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 (dalam bahasa Jerman), München: Bavarian State Office for Statistics and Data, hlm. 242 , Wikidata Q15707237

because an luas wilayah (P2046) statement on Regensburg (Q2978) is referenced to be sumber rujukan (P248) Amtliches Ortsverzeichnis für Bayern (1991) (Q15707237) with halaman (P304) = 242.

Issues[sunting sumber]

  • Render subjudul (P1680), 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:
    1. tertera sebagai (P1932) qualifier on penulis (P50)
    2. untai nama pengarang (P2093)
    3. penulis (P50) label in English
    4. penulis (P50) label in any other language
    • Regardless of which of the above is used, link to the author biography article if available, via penulis (P50) (matched via nomor urut (P1545) if applicable)
  • Author names (Western-style, at least) should display as "Last, First Middle" to match Wikipedia house style
  • Are there values of |others which are not illustrators? Possibly:
    • signatories
    • presenter
    • performer
  • Add a tracking category for references with a digantikan oleh (P1366) statement
  • Add a tracking category for references with a is retracted by (P5824) statement
  • Links to sister projects: Wikisource, if a transcription project exists; Wikibooks; Wikiversity (esp. the Wikijournals there); perhaps more
    • Avoid <ref name="dicc">{{Cite Q|Q100160262}} {{cite wikisource|wslanguage=pt|wslink=Diccionario Bibliographico Brazileiro/Francisco Antonio de Almeida|title=Transcription}}</ref>!
  • 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 {{ #invoke:WikidataIB |getLink |{{{1}}} }} 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 (untai nama pengarang (P2093)) 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 diterbitkan pada (P1433)
  • 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 url parameter should also pick up data from the properties alamat konten penuh (P953) and Lokator Sumber Seragam (P2699)
  • Linking title to Wikipedia article, if any
  • Need to fetch ISSN etc. from item about journal