Template talk:Cite Q#How to make "published in" work
{{oldtfdfull|date= 2017 September 15 |result=no consensus |disc=Template:Cite Q}}
{{talk header}}
{{WikiProject banner shell|
{{WikiProject Wikidata}}
{{WikiProject Books|referencework=yes }}
}}
{{User:MiszaBot/config
|archiveheader = {{talkarchivenav}}
|maxarchivesize = 75K
|counter = 8
|minthreadsleft = 4
|minthreadstoarchive = 1
|algo = old(45d)
|archive = Template talk:Cite Q/Archive %(counter)d
}}
{{archives|search=yes}}
Multiple author display broken
;
: {{Cite Q|Q64876016}}
;
:{{Cite Q|Q64006730|display-authors=2}}
;
:{{Cite Q|Q64006730|display-authors=etal}}
;
:{{Cite Q|Q64006730|display-authors=all}}
{{para||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)
:Apparently Q64006730 doesn't have any authors:
::
:::{{Cite Q|Q64006730}}
:but, Q64876016 does:
::
:::{{Cite Q|Q64876016|display-authors=2}}
:Where is it documented that {{para|display-authors|all}} is valid? cs1|2 does not support that value for {{para|display-authors}}.
:—Trappist the monk (talk) 19:04, 9 March 2025 (UTC)
::{{para|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 {{para|display-authors|3}}. When there are more than eight authors and it is desirable to show all author names, editors may set {{para|display-authors|all}}. When there are eight or fewer authors, {{para|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 {{para|display-editors}}.
::—Trappist the monk (talk) 19:20, 9 March 2025 (UTC)
Apologies; mispastes on my part; should all be Q64876016
;
: {{Cite Q|Q64876016}}
;
:{{Cite Q|Q64876016|display-authors=2}}
;
:{{Cite Q|Q64876016|display-authors=etal}}
;
:{{Cite Q|Q64876016|display-authors=all}}
The documentation has:
{{Blockquote|By default, if there are more than eight author names, the template displays three, followed by "et al". This can be changed using
; 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 {{para|display-authors|etal}} apparently does nothing). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:29, 9 March 2025 (UTC)
:Yeah. I missed that. I explained the operation of {{para|display-authors|all}} above. Q64876016 has eight authors so the automatic name-list truncation does not apply. Module:Citation/CS1 rejects {{para|display-authors|all}} for this case just as it rejects {{para|display-authors|8}}:
::
:::{{Cite Q|Q64876016|display-authors=8}}
:{{para|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, {{para|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)
:{{ping|Trappist the monk|Pigsonthewing}} It seems to be working OK in general. E.g.:
: I suspect this might be because {{Q|Q64876016}} is {{WDP|P31}}={{Q|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)
Anonymous throws error
;
:{{Cite Q|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)
:The error message arises because Module:Cite Q includes a category wikilink in the value assigned to {{para|author1}}:
::{{Cite Q|Q133265892|expand=yes}}
: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}}
::
:::{{Cite Q|Q133265892|author=(())}}
:—Trappist the monk (talk) 22:01, 12 March 2025 (UTC)
::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)
:::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)
cite Q and short citations
When using {{t|cite Q}} in combination with short citations (such as {{t|sfnp}}), the citation ends up in :Category:Harv and Sfn no-target errors unless {{t|sfn whitelist}} is also added. For example, see Jacques l'Hermite and this talk thread.
Is there a way to enhance {{t|cite Q}} so that the citation does NOT end up in :Category:Harv and Sfn no-target errors even when {{t|sfn whitelist}} is NOT also added? Elrondil (talk) 10:17, 28 April 2025 (UTC)
: One could do that without enhancing {{t|cite Q}} by passing param {{para|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)
::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)
Formatting authors
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
{{tq|
is the SAME as
{{tq|
: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: {{tq|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)
::Thank you. I’m aware of this "workaround", BUT the purpose of qualifier P1932 (object named as) is "to indicate used spelling or how a certain information was printed in the source". I do not want to be going around Wikidata changing correct data to incorrect data as a "workaround", one that affects EVERY usage of that qualifier at that and not just the usage in this ONE Wikipedia page. A new qualifier (e.g., cite-Q-workaround) wouldn’t ever make it into Wikidata (hopefully), so manually adding the data in the {{t|cite Q}} use is probably the least evil here 🙂. Elrondil (talk) 22:57, 29 April 2025 (UTC)