Jump to content

Template talk:Cite Q

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Cite Q/sandbox)

Multiple author display broken

[edit]
{{Cite Q|Q64876016}}
Christian D. Jersabek; Willem H. De Smet; Claus Hinz; Diego Fontaneto; Charles G. Hussey; Evangelia Michaloudi; Robert L. Wallace; Hendrik Segers. List of Available Names in Zoology, Candidate Part Phylum Rotifera, species-group names established before 1 January 2000 (PDF). Wikidata Q64876016.
{{Cite Q|Q64876016|display-authors=2}}
"Opinion 2430 – Parts of the List of Available Names in Zoology for phylum Rotifera: accepted". Bulletin of Zoological Nomenclature. 76: 74–76. 30 April 2019. doi:10.21805/BZN.V76.A022. ISSN 0007-5167. Wikidata Q64006730. {{cite journal}}: Invalid |display-authors=2 (help)
{{Cite Q|Q64876016|display-authors=etal}}
"Opinion 2430 – Parts of the List of Available Names in Zoology for phylum Rotifera: accepted". Bulletin of Zoological Nomenclature. 76: 74–76. 30 April 2019. doi:10.21805/BZN.V76.A022. ISSN 0007-5167. Wikidata Q64006730.
{{Cite Q|Q64876016|display-authors=all}}
"Opinion 2430 – Parts of the List of Available Names in Zoology for phylum Rotifera: accepted". Bulletin of Zoological Nomenclature. 76: 74–76. 30 April 2019. doi:10.21805/BZN.V76.A022. ISSN 0007-5167. Wikidata Q64006730. {{cite journal}}: Invalid |display-authors=all (help)

|display-authors is correct, per documentation and test cases. What broke? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:27, 9 March 2025 (UTC)[reply]

Apparently Q64006730 doesn't have any authors:
{{Cite Q|Q64006730}}
"Opinion 2430 – Parts of the List of Available Names in Zoology for phylum Rotifera: accepted". Bulletin of Zoological Nomenclature. 76: 74–76. 30 April 2019. doi:10.21805/BZN.V76.A022. ISSN 0007-5167. Wikidata Q64006730.
but, Q64876016 does:
{{Cite Q|Q64876016|display-authors=2}}
Christian D. Jersabek; Willem H. De Smet; et al. List of Available Names in Zoology, Candidate Part Phylum Rotifera, species-group names established before 1 January 2000 (PDF). Wikidata Q64876016.
Where is it documented that |display-authors=all is valid? cs1|2 does not support that value for |display-authors=.
Trappist the monk (talk) 19:04, 9 March 2025 (UTC)[reply]
|display-authors=all is an undocumented way to get round the automatic name list truncation. When there are more than eight authors, Module:Cite Q sets |display-authors=3. When there are more than eight authors and it is desirable to show all author names, editors may set |display-authors=all. When there are eight or fewer authors, |display-authors=all is passed to Module:Citation/CS1 as is. Module:Citation/CS1 rejects all as a value and emits the error message so that the template call can be fixed. All of this also applies to the editor name-list and |display-editors=.
Trappist the monk (talk) 19:20, 9 March 2025 (UTC)[reply]

Apologies; mispastes on my part; should all be Q64876016

{{Cite Q|Q64876016}}
Christian D. Jersabek; Willem H. De Smet; Claus Hinz; Diego Fontaneto; Charles G. Hussey; Evangelia Michaloudi; Robert L. Wallace; Hendrik Segers. List of Available Names in Zoology, Candidate Part Phylum Rotifera, species-group names established before 1 January 2000 (PDF). Wikidata Q64876016.
{{Cite Q|Q64876016|display-authors=2}}
Christian D. Jersabek; Willem H. De Smet; et al. List of Available Names in Zoology, Candidate Part Phylum Rotifera, species-group names established before 1 January 2000 (PDF). Wikidata Q64876016.
{{Cite Q|Q64876016|display-authors=etal}}
Christian D. Jersabek; Willem H. De Smet; Claus Hinz; Diego Fontaneto; Charles G. Hussey; Evangelia Michaloudi; Robert L. Wallace; Hendrik Segers; et al. List of Available Names in Zoology, Candidate Part Phylum Rotifera, species-group names established before 1 January 2000 (PDF). Wikidata Q64876016.
{{Cite Q|Q64876016|display-authors=all}}
Christian D. Jersabek; Willem H. De Smet; Claus Hinz; Diego Fontaneto; Charles G. Hussey; Evangelia Michaloudi; Robert L. Wallace; Hendrik Segers. List of Available Names in Zoology, Candidate Part Phylum Rotifera, species-group names established before 1 January 2000 (PDF). Wikidata Q64876016. {{citation}}: Invalid |display-authors=all (help)

The documentation has:

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.

hardy "undocumented".

I'm questioning why that is reported as an error in the fourth example (and why |display-authors=etal apparently does nothing). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:29, 9 March 2025 (UTC)[reply]

Yeah. I missed that. I explained the operation of |display-authors=all above. Q64876016 has eight authors so the automatic name-list truncation does not apply. Module:Citation/CS1 rejects |display-authors=all for this case just as it rejects |display-authors=8:
{{Cite Q|Q64876016|display-authors=8}}
Christian D. Jersabek; Willem H. De Smet; Claus Hinz; Diego Fontaneto; Charles G. Hussey; Evangelia Michaloudi; Robert L. Wallace; Hendrik Segers. List of Available Names in Zoology, Candidate Part Phylum Rotifera, species-group names established before 1 January 2000 (PDF). Wikidata Q64876016. {{citation}}: Invalid |display-authors=8 (help)
|display-authors=etal is for the case where the author name-list is incomplete. Q64876016 lists eight authors. Were there more authors than the eight listed, |display-authors=etal, as your example shows, adds ; et al. to the end of the author name-list indicating that the list is incomplete.
Trappist the monk (talk) 19:48, 9 March 2025 (UTC)[reply]
@Trappist the monk and Pigsonthewing: It seems to be working OK in general. E.g.: {{Cite Q|Q57633617|display-authors=2}} -> P. A. R. Ade; N. Aghanim; et al. (20 September 2016). "Planck 2015 results. XXVIII. The Planck Catalogue of Galactic cold clumps". Astronomy & Astrophysics. 594: 28–28. arXiv:1502.01599. Bibcode:2016A&A...594A..28P. doi:10.1051/0004-6361/201525819. ISSN 0004-6361. Wikidata Q57633617.
I suspect this might be because List of Available Names in Zoology, Candidate Part Phylum Rotifera, species-group names established before 1 January 2000 (Q64876016) is instance of (P31)=list of Available Names in Zoology (Q64875667), which is weird. However, all Cite Q does here is pass the info through to the main citation template, so I think the issue lies elsewhere. Thanks. Mike Peel (talk) 22:20, 24 March 2025 (UTC)[reply]

Anonymous throws error

[edit]
{{Cite Q|Q133265892}}
Anonymous (11 November 1887). "The Late Mr. Thomas Bolton, F.R.M.S.". Birmingham Post: 4. ISSN 0963-7915. Wikidata Q133265892.

The work is anonymous, and Wikidata correctly (per that project's standards) has P50="unknown value".

How should this be handled? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:36, 12 March 2025 (UTC)[reply]

The error message arises because Module:Cite Q includes a category wikilink in the value assigned to |author1=:
{{Cite journal |author1=Anonymous |id=[[WDQ (identifier)|Wikidata]] [[:d:Q133265892|Q133265892]] |issn=0963-7915 |journal=[[Birmingham Post|Birmingham Post]] |language=en-gb |pages=4 |publication-date=11 November 1887 |title=[[:s:The Late Mr Thomas Bolton FRMS|The Late Mr. Thomas Bolton, F.R.M.S.]]}}
This particular category contains the word 'author' which cs1|2 rejects as a generic name. The module must not include category links in any parameter values. Doing so corrupts the citation's author metadata:
&rft.au=AnonymousCategory%3ACite+Q+-+author+unknown
Work arounds might be:
{{Cite Q|Q133265892|author=Anonymous}}
Anonymous (11 November 1887). "The Late Mr. Thomas Bolton, F.R.M.S.". Birmingham Post: 4. ISSN 0963-7915. Wikidata Q133265892.
{{Cite Q|Q133265892|author=(())}}
"The Late Mr. Thomas Bolton, F.R.M.S.". Birmingham Post: 4. 11 November 1887. ISSN 0963-7915. Wikidata Q133265892.
Trappist the monk (talk) 22:01, 12 March 2025 (UTC)[reply]
Thank you. The workarounds are useful, but this bug needs a fix. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:09, 13 March 2025 (UTC)[reply]
I have fixed the bug by removing the tracking category from the citation's parameter value. If someone wants to move the tracking category to a better location outside of the CS1 template, be my guest. It appears, however, that this condition may not be an error worth tracking, as indicated by Pigsonthewing's initial comment above. – Jonesey95 (talk) 12:59, 16 March 2025 (UTC)[reply]

cite Q and short citations

[edit]

When using {{cite Q}} in combination with short citations (such as {{sfnp}}), the citation ends up in Category:Harv and Sfn no-target errors unless {{sfn whitelist}} is also added. For example, see Jacques l'Hermite and this talk thread.

Is there a way to enhance {{cite Q}} so that the citation does NOT end up in Category:Harv and Sfn no-target errors even when {{sfn whitelist}} is NOT also added? Elrondil (talk) 10:17, 28 April 2025 (UTC)[reply]

One could do that without enhancing {{cite Q}} by passing param |ref= with the default value, but that would require a module change to remove the unneeded code which emits an error message when it detects a user passing the default CITEREF value. Mathglot (talk) 08:15, 29 April 2025 (UTC)[reply]
I'm sure there's a reason for the message, but the message probably ought to be informational rather than a warning, even though it would then still not be idempotent. Elrondil (talk) 08:29, 29 April 2025 (UTC)[reply]

Formatting authors

[edit]

Is there a way to get the authors to be formatted the same way that they are when last and first names are added manually, but WITHOUT having to add them manually? That is, that the output of

{{CS1 config |mode=cs1}}

{{cite Q |Q134120249 }}

is the SAME as

{{CS1 config |mode=cs1}}

{{cite Q |Q134120249 |last1=l'Heremite |first1=laques |author-link1=Jacques l'Hermite |last2=Walbeeck |first2=Joannes van |author-link2=Johannes van Walbeeck |last3=Decker |first3=Adolf }}
Elrondil (talk) 10:25, 28 April 2025 (UTC)[reply]

This feature has been discussed many times in the archives of this page. I think it would require a change to the template's code, but a visit to the archives would shine more light on the issue than my feeble memory can. In the meantime, the documentation explains: The best option, which will apply to all articles using Cite Q with a given ID, is to modify the Wikidata property for each author and editor, adding "object named as" with the author's name in "Last, First" format.Jonesey95 (talk) 14:01, 29 April 2025 (UTC)[reply]