Sablon:Cite Q

A Wikipédiából, a szabad enciklopédiából
Ugrás a navigációhoz Ugrás a kereséshez
Template-info.svg Használati útmutató

Background[szerkesztés]

You can read about the template in:

Usage[szerkesztés]

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=; setting that parameter to all displays them all. The same applies to multiple editors – see the test-case pages.

Citations of papers which have been retracted (is retracted by (P5824)) will appear in Category:Cite Q - cites a retracted work.

Citations of papers which have been replaced (utóda (P1366)) will appear in Category:Cite Q - cites a replaced work.

You can also use {{Cite Q bulleted}} if you want to have a bullet returned before the citation (useful for automatic lists).

Parameters[szerkesztés]

  • |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[szerkesztés]

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

Reference naming[szerkesztés]

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[szerkesztés]

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

Bibliographic parameters[szerkesztés]

Identifier parameters[szerkesztés]

Examples[szerkesztés]

{{Cite Q|Q15625490}}
Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles” (angol nyelven). PLOS One 5 (5). DOI:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMID 20505760. Wikidata Q15625490.  
{{Cite Q|Q15625490|page=42}}
Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles” (angol nyelven). PLOS One 5 (5), 42. o. DOI:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMID 20505760. Wikidata Q15625490.  
{{Cite Q|Q15625490|access-date=18 May 2017}}
Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles” (angol nyelven). PLOS One 5 (5). DOI:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMID 20505760. Wikidata Q15625490. (Hozzáférés ideje: 2017. május 18.)  
{{Cite Q|Q15625490|quote=lorem ipsum}}
Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles” (angol nyelven). PLOS One 5 (5). DOI:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMID 20505760. Wikidata Q15625490. „lorem ipsum” 
{{Cite Q|Q25766745}}
Pink Floyd: The Music and the Mystery (en nyelven). Omnibus Press. Wikidata Q25766745. ISBN 978-1-84938-370-7. OCLC 762731304 
{{Cite Q|Q25766745 |chapter=The Final Cut}} (with chapter specified)
The Final Cut, Pink Floyd: The Music and the Mystery (en nyelven). Omnibus Press. Wikidata Q25766745. ISBN 978-1-84938-370-7. OCLC 762731304 
{{Cite Q|Q25766745 |pages=48-52}} (with pages)
Pink Floyd: The Music and the Mystery (en nyelven). Omnibus Press, 48-52. o.. Wikidata Q25766745. ISBN 978-1-84938-370-7. OCLC 762731304 
{{Cite Q|Q15625490|access-date=18 May 2017}}
Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles” (angol nyelven). PLOS One 5 (5). DOI:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMID 20505760. Wikidata Q15625490. (Hozzáférés ideje: 2017. május 18.)  
{{Cite Q|Q25766745|mode=cs1}}
Pink Floyd: The Music and the Mystery (en nyelven). Omnibus Press. Wikidata Q25766745. ISBN 978-1-84938-370-7. OCLC 762731304 
{{Cite Q|Q25766745|mode=cs2}}
Pink Floyd: The Music and the Mystery (en nyelven). Omnibus Press. Wikidata Q25766745. ISBN 978-1-84938-370-7. OCLC 762731304 
{{Cite Q|Q25766745|author-mask=1}}
Pink Floyd: The Music and the Mystery (en nyelven). Omnibus Press. Wikidata Q25766745. ISBN 978-1-84938-370-7. OCLC 762731304 

For an example of a bibliography, updated periodically by Listeriabot, see User:Mike Peel/publications.

For additional examples, see testcases and testcases/many names.

Workflow[szerkesztés]

The template used with a single parameter, the Q-number of the article on Wikidata, will produce a citation using the default display parameters from Template:Citation and the styling of the author and editor names as they are stored on Wikidata. This is rarely the same as required by the citation formatting in any given article. The guidance at WP:CITEVAR requires that editors match the formatting of citations that they add to that of the article where it is added. At present, {{Cite Q}}(?) does not know what style the formatting in an article requires (although it is possible that common styles could be marked or recognised automatically as is done for date formatting).

The result is that editors using {{Cite Q}}(?) must take care to preview their edits and ensure that the formatting rendered matches that of the rest of the article. The commonest formatting issues are:

  1. Order of editor names:
    A typical output might be:
    If that were used in an article that used "Last, First" format for author names, then the editor would have to supply those author names manually in the desired format. It's often worth previewing the citation in expanded form to show what is being passed to the actual citation template:
    • {{Cite Q |Q15625490 |expand=yes}}
    • {{Cite journal |author1=Jeffrey T Williams |author2=Kent E Carpenter |author3=James L Van Tassell |author4=Paul Hoetjes |author5=Wes Toller |author6=Peter Etnoyer |author7=Michael Smith |doi=10.1371/JOURNAL.PONE.0010676 |id=Wikidata Q15625490 |issn=1932-6203 |issue=5 |journal=PLOS One |language=en |pmc=2873961 |pmid=20505760 |publication-date=2010. május 21. |title=Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles |url=http://europepmc.org/abstract/MED/20505760 |volume=5}}
    That would make the author names (and author-links) easily available for copy and paste, followed by tweaking into the desired format:
  2. Punctuation:
    The separators between elements in the above citation is a comma, which is the default for a CS2-style format produced by {{Citation}}. Careful examination in a particular article will often show the separator punctuation to be a full stop (period). That may be selected by setting |mode=cs1:
  3. Italicisation in titles:
    Titles drawn from Wikidata cannot contain formatting, so editors using {{Cite Q}}(?) may have to add appropriate formatting.
    {{Citation}} will automatically apply italicisation to titles of books, etc. so that does not need to be added:
    However, some titles require partial italicisation, and that has to be done manually when the whole title is not italicised, although that is rare. Titles of chapters may also need to be checked:
    • For example (from Sablon:Isbn): |chapter= ''Porphyra'' as food: cultivation and economic

Template data[szerkesztés]

Generate citations from Wikidata by passing the QID to this template

Sablonparaméterek

ParaméterLeírásTípusÁllapot
QID1

The Wikidata QID of the cited source

Karakterlánckötelező