This template is within the scope of WikiProject Wikidata, a collaborative effort to improve Wikipedia's integration with Wikidata. If you would like to participate, please visit the project page.WikidataWikipedia:WikiProject WikidataTemplate:WikiProject WikidataWikidata
This template is within the scope of WikiProject Books. To participate in the project, please visit its page, where you can join the project and discuss matters related to book articles. To use this banner, please refer to the documentation. For guidelines on this template's usage, see its documentation.BooksWikipedia:WikiProject BooksTemplate:WikiProject BooksBook
|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=.
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.
Yeah. I missed that. I explained the operation of |display-authors=allabove. 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:
|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.
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
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 |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]
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 {{cite Q}} use is probably the least evil here 🙂. Elrondil (talk) 22:57, 29 April 2025 (UTC)[reply]
This feels like a problem that can be solved.
I think it would be technically feasible for the template to query the author's Wikidata item, and retrieve the given name (P735) and family name (P734), if they are available. Those values could then be inserted to first1 and last1 respectively. This would automatically correctly render the name as Lastname, Firstname.
For authors without a Wikidata entity, we can use the author name string (P2093) property on the publication entity, which is described as a fallback in the lua module. However this does not separate the first and last names. I would suggest we encourage people, when using author name string (P2093), to add qualifiers for author given names (P9687) and author last names (P9688). Then, similar to the solution above, CiteQ could then use those values (if available) to construct the first1 and last1 entries.