Jump to content

Help talk:Citation Style 1/Archive 69

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Archive 65Archive 67Archive 68Archive 69Archive 70Archive 71Archive 75

Cite book Harv warning

Initial conversation

Cite book has started giving a harv error message even when ref=harv has not been added. E.g.

Ratcliffe, Derek, ed. (1977). A Nature Conservation Review. Vol. 2. Cambridge, UK: Cambridge University Press. ISBN 978-0-521-21403-2.

It only did this before with the citation template. Many articles use this template without ref=harv, and they are all suddenly giving error messages, which is ugly and distracting. If it carries on I will have to turn off the harv warnings, but then I will not be warned when I am using ref=harv and I make a mistake. What is the position? Dudley Miles (talk) 21:54, 18 April 2020 (UTC)

It's not giving an error message for me? Have you got some script running?Nigel Ish (talk) 22:02, 18 April 2020 (UTC)
Yes, he has, the usual one. In User:Dudley Miles/common.js, there is a line calling User:Ucucha/HarvErrors.js. That script complains about every citation or cite template that uses ref=harv and is not referred to by a harv template, even when there is no actual error in the citation or cite template. It is the script that is the problem, not the cite book template. Remove it from your common.js and the error messages will go away. Or I have a modified copy in User:David Eppstein/HarvErrors.js that I use, to detect other errors but ignore this non-error. —David Eppstein (talk) 22:09, 18 April 2020 (UTC)
(edit conflict)
User:Ucucha/HarvErrors. See the documentation there for how to turn off the warning messages that that script emits for templates that do not have anything pointing at them.
See also Category:Harv and Sfn template errors
Trappist the monk (talk) 22:14, 18 April 2020 (UTC)
Change User:Ucucha/HarvErrors.js for User:Svick/HarvErrors.js and that will take care of spurious warnings, but leave error-detection in place. Headbomb {t · c · p · b} 22:30, 18 April 2020 (UTC)
I've come here to ask about the same thing. It's suddenly doing what {{Citation}} does. Someone must have made a change. SarahSV (talk) 23:27, 18 April 2020 (UTC)
Yep: Help talk:Citation Style 1 § module suite update 18–19 April 2020 and in particular: Help talk:Citation Style 1 § make ref=harv the default for CS1.
Trappist the monk (talk) 23:54, 18 April 2020 (UTC)
Please undo the edit(s) that caused the change. SarahSV (talk) 00:11, 19 April 2020 (UTC)
For people who use this template in Selected works and Further reading, it's going to cause a mass of error messages. SarahSV (talk) 00:21, 19 April 2020 (UTC)
@SlimVirgin: it is going to cause a script that you personally installed for your own use to incorrectly display error messages for things that are not errors. This incorrect behavior of the script is old and not the fault of the citation templates. The citation templates should not be forced to work around your idiosyncratic choice of script installation. —David Eppstein (talk) 00:26, 19 April 2020 (UTC)
(edit conflict)
My position in the discussions preceding this particular change did not prevail. You are using User:Ucucha/HarvErrors so you can turn off the warnings. Add this line to User:SlimVirgin/common.js:
window.checkLinksToCitations = false;
Trappist the monk (talk) 00:31, 19 April 2020 (UTC)
Trappist the monk, thank you. SarahSV (talk) 00:34, 19 April 2020 (UTC)
Trappist the monk, I'm no longer getting the warning messages if a source in Works cited isn't used, what Gerda below calls the wanted error messages. This change is not good. Things were working well. SarahSV (talk) 02:47, 21 April 2020 (UTC)
@SlimVirgin: then use User:Ucucha/HarvErrors.js and you should have those. Headbomb {t · c · p · b} 02:59, 21 April 2020 (UTC)
Let me understand: wouldn't that also "kill" the wanted error messages, where I misspelled a name, for example? - With the script in place, the examples for {{cite book}} get messages. I just watched a user adding |ref=none to further readings. Not what I want to do for thousands of articles, and making every older version still look horrible. --Gerda Arendt (talk) 06:41, 19 April 2020 (UTC)
With the version of the script I'm using (or with the modification described above), I still get error notifications for actual errors: when a harv ref refers to a link that is not there. That covers both the case of a misspelling in the harv link and a misspelling in the reference itself. I merely don't get errors for articles that have ref=harv citations (usually because they use citation style 2 for which this has long been the default) but don't point to them using harv templates, something that is not actually an error. If I saw someone mass-adding ref=none on my watchlist I would revert them and tell them to fix their user script. —David Eppstein (talk) 06:50, 19 April 2020 (UTC)
(ec, a bit of patience please with old users who never heard of citation style 2, - not an answer therefore) I wrote many book definitions without ref=harv precisely if I did NOT want to cite them. I understand the default was changed, and I use the wrong script. Could a bot perhaps kindly go over Further reading sections and External links and add |ref=none because I don't want to annoy readers who use the "wrong script" which worked well for me? ... or change the script? ... or at least tell users "You use the wrong script"? ... or perhaps replace it? --Gerda Arendt (talk) 07:06, 19 April 2020 (UTC)
@Gerda Arendt: might be proposed at WP:BOTREQ – I already posted a message there, see WP:BOTREQ#Cleanup of cite templates after "ref=harv" became default and/or update to HarvErrors.js (which means: suggesting to keep the discussion here for the time being, until a clear botreq can be formulated). --Francis Schonken (talk) 07:39, 19 April 2020 (UTC)
Thank you for trying but the reply above looks as if such a bot would be reverted ;) --Gerda Arendt (talk) 07:47, 19 April 2020 (UTC)

Sorry I'm late, I posted the following at Template talk:Citation, and I appreciate much of this has been said and argued over already:

"This week, for the first time ever that I know of, ordinary {{cite web| ... and {{cite new| ... and probably other such templates are suddenly displaying warnings like

"Harv warning: There is no link pointing to this citation. The anchor is named CITEREFLaSala2016."

This type of message used to occur, helpfully, only when there was an explicit Harvard parameter indicating that links were expected: ... |ref=harv }]

That was useful as one normally only put the harv indicator in when the plan was to insert inline citations in the text, and missing one was obviously a problem.

Now, however, the error occurs WITHOUT the ref=harv parameter! This makes no sense: it causes an error if any citation is listed in a bibliography or further reading, and worse, if citations are listed inside an inline ref tag --- it seems to happen from the third citation onwards --- there is a fine specimen at K. Pattabhi Jois, and there is no visible means of suppressing the errors.

This makes checking for ACTUAL errors much more difficult, as false positive "errors" are displayed all over. Would be glad if the status quo could be resumed, please." Chiswick Chap (talk) 12:18, 21 April 2020 (UTC)

@Chiswick Chap:, there is no error caused by this. As pointed out by the big notice at the top, what you see here is User:Ucucha/HarvErrors.js complaining about CS1 templates and throwing "warnings". If you don't like those, you are welcomed to use User:Svick/HarvErrors.js, or request a new script made at WP:SCRIPTREQ that behaves like you want. Headbomb {t · c · p · b} 12:46, 21 April 2020 (UTC)
With respect, I beg to differ. The "errors" in the old dispensation were immensely useful in locating broken links. The new "errors" are a b. nuisance. I'm sure I'm not the only editor "old and wise enough to know the difference". I don't with respect want to switch all of them off (or on): I want the old arrangement which worked correctly. Chiswick Chap (talk) 12:56, 21 April 2020 (UTC)
The "old" arrangement didn't "work correctly". It worked "correctly" on a handful of articles that were specifically written around this script. I know, because I used the script before the update, and the "warnings" it threw were plentiful and irrelevant 9 times out of 10. Now every citation is treated the same, which gives greater flexibility in how people can write articles without being unnaturally forced into CS1 or CS2. Make a WP:SCRIPTREQ, and someone can design a new script that behaves like you want. Headbomb {t · c · p · b} 13:48, 21 April 2020 (UTC)
In other words, dear Chiswick Chap and all other editors, you people are far too dim and ill-informed to understand and appreciate the FINER things of life, art, and engineering, and should HUMBLY and MEEKLY accept the PEARLS OF WISDOM so GENEROUSLY dispensed to you from above by THOSE WHO KNOW. The fact that you miserable serfs fellow-editors find it b. inconvenient is merely a passing problem in the ways of Wikipedia, a small ripple in space-time, a miniscule play in the eternal Lila of the illusions of the world, and you should quietly f. off and die accept that if you had greater intellect you would dimly glimpse the splendours of cascading CSS sheets, the marvels of Perl scripts, and the untrammelled bliss of pure machine code running unhindered on a whole farm of servers, subservient to the unified and resplendent will of the UNIVERSAL PROGRAMMER. Chiswick Chap (talk) 13:58, 21 April 2020 (UTC)
Or, you know, go to WP:SCRIPTREQ and ask for an updated script. Headbomb {t · c · p · b} 14:49, 21 April 2020 (UTC)
(edit conflict)
If by third citation onwards you are referring to this group of references, the first two of that group do not have contributor, author, or editor names. An anchor ID is the concatenation of CITEREF, up to four contributor/author/editor names and a date. When there are no names, no anchor ID (this is not new).
You might replace User:Ucucha/HarvErrors.js with User:Trappist the monk/HarvErrors.js. That script does not show the warning messages unless the article uses one of the {{harv}} or {{sfn}} families of templates.
Trappist the monk (talk) 12:58, 21 April 2020 (UTC)
@Chiswick Chap: If you want to find broken links, without the warnings, then use User:Svick/HarvErrors.js. Headbomb {t · c · p · b} 13:15, 21 April 2020 (UTC)

Sorry to join in with this late. Looking at this from a different angle, automatically adding harv anchors to every cite template not immediately proceeded by a <ref> tag is adding unnecessary html to the page when parsed. Whilst this isn't a problem with only a few instances on the page, on certain pages with maybe 50 "Further reading" links, this will add a significant overhead to the html (which could be problematic on older mobiles). When the page is parsed to html, the harv anchors become html anchors with an id equal to the CITEREF anchor. In html, id's must be unique. When we had to add anchors manually, where we cite the same author with several publications in the same year we differentiate the anchors eg Smith 1990a; Smith 1990b; Smith 1990c; etc. Automatically adding the anchors, would in the above case give 3 anchors with an id of "Smith 1990", causing non-compliant html. This probably isn't a problem most of the time, but the worst case scenario would be the browser going into "quirks mode", stop rendering the page and then redraw the page once the html, css, javascript etc has finished downloading. Again, this is more likely to happen on mobiles. As 40 - 70% (dependent on who's figures you look at) of internet access is from mobiles, then how the site behaves on mobiles needs to be considered. Putting aside "errors" being shown up by scripts, we should be adding |ref=none to unused anchors to prevent html problems. --John B123 (talk) 16:05, 15 June 2020 (UTC)

automatically adding harv anchors to every cite template not immediately proceeded by a <ref> tag is adding unnecessary html to the page when parsed
Perhaps. But, it is very common for editors who use short-form citation templates to have a Bibliography section populated with cs1|2 templates, none of which are wrapped in <ref>...</ref> tags and many of which are the targets of the short-form citations. In fact, I suspect that the opposite is true; in most cases, cs1|2 templates wrapped in <ref>...</ref> tags don't need anchor IDs because generally, nothing links to them except the superscript added by cite.php during conversion from wiki-text to html.
where we cite the same author with several publications in the same year we differentiate the anchors eg Smith 1990a; Smith 1990b; Smith 1990c; etc. Automatically adding the anchors, would in the above case give 3 anchors with an id of "Smith 1990"
Only true if the en.wiki editor has been lazy and failed to disambiguate |date= in the cs1|2 templates as should be done when citing three 1990 vintage Smith sources. The lazy en.wiki editor should have written {{cite ... |last=Smith |... |date=1990a |...}}, {{cite ... |last=Smith |... |date=1990b |...}}, {{cite ... |last=Smith |... |date=1990c |...}}. If the article is using short-form citation templates to link to the long-form cs1|2 citations, Module:Footnotes detects cs1|2 templates with identical anchor IDs and, when there is a short-form citation that uses that anchor ID, emits an error message. These error messages are hidden; see :Category:Harv and Sfn template errors § Displaying error messages to learn how they may be displayed for you.
I do not dispute your claim that rendering an anchor ID with every cs1|2 template adds a few bytes per citation to a rendered article. Where that is a concern, mostly I would think in very large articles with hundreds of cs1|2 templates, it is possible to turn-off the anchor ID for each cs1|2 template with |ref=none. There has been some discussion about creating a cs1|2 configuration template that would be read when the wiki-text is converted to html that might be used to disable all cs1|2 anchor IDs except those specifically created (|ref= has a value other than none). As far as I know, no one is clambering for such a template.
Trappist the monk (talk) 17:21, 15 June 2020 (UTC)
In fact, I suspect that the opposite is true; in most cases, cs1|2 templates wrapped in <ref>...</ref> tags don't need anchor IDs because generally, nothing links to them - My point in mentioning the <ref>...</ref> in my previous post was exactly that, the issue generally occurs outside the references section: Bibliography, Further reading etc. (On a side note, where multiple cite templates are bundled within single <ref>...</ref>, anchors are added for the second and subsequent cites.)
Only true if the en.wiki editor has been lazy and failed to disambiguate |date= in the cs1|2 templates I'm not sure if it's laziness. Judging by the number of sfn and harv errors I've put right, I think it's lack of understanding rather than laziness. I doubt it would enter the mind of the average user to disambiguate dates when adding a list of articles to a "Further reading" section with nothing linking to them. --John B123 (talk) 19:25, 15 June 2020 (UTC)

Break

@Trappist the monk:, can you point to where consensus was reached for this change?

This was the situation before the change. When writing an article, we compile a list of long citations under "Works cited" and use short citations (sfn or harvnb) throughout the text. The short links to the long. If we include a long citation but don't use it, we see a red error message. This is very useful.

What we might do at that point is move the unused reference into Further reading, and remove ref=harv. We do the same when compiling "Selected works" lists of publications. Then if we want to use the same long citation as a source again, we move it back into "Works cited" and add ref=harv; that allows us to restore an sfn citation.

That flexibility has now disappeared, it seems. Either we get ugly error messages all the time in Further reading and Selected works, or we turn them off and don't get the ones we need. SarahSV (talk) 03:00, 21 April 2020 (UTC)

You still can all do that, and now you can all do that natively with both CS1 and CS2 templates. If you don't want the warning messages, then don't use scripts that give warning messages. You could also ask for a new script to be developed at WP:SCRIPTREQ which only gives warnings if a citation is in a specific section / omit warnings when in a specific section. Headbomb {t · c · p · b} 03:03, 21 April 2020 (UTC)
As for the discussion, see here and here. Headbomb {t · c · p · b} 03:05, 21 April 2020 (UTC)
Thanks for the links. But we wanted the flexibility. It was a good thing to have templates where ref=harv was the default and others where it wasn't. And we wanted to keep on using the error-message scripts. Someone has made a central change that affects all articles that use templates but without gaining site-wide consensus.
It sometimes feels as though these templates are written for other template writers rather than for article writers. I don't want to be forced to come here to have these discussions, because I have no technical knowledge, so it's hard to take part in them. I don't understand the terms; I'm not sure how to express myself, and there are other things I'd rather be doing. You wouldn't like it if I did something that forced you to spend hours or days discussing the Holocaust. Surely a change that affects all articles using templates should have more consensus. SarahSV (talk) 03:16, 21 April 2020 (UTC)
Re: "You could also ask for a new script to be developed at WP:SCRIPTREQ which only gives warnings if a citation is in a specific section". We had one. It relied on the presence of ref=harv if a source wasn't used. How would a new script work? What would it look for? I would like to see this change reverted. It seems to have no benefit and several disadvantages. SarahSV (talk) 03:23, 21 April 2020 (UTC)
Ask at WP:SCRIPTREQ and explain which section should have warning and which should not. The errors should always be reported though, given those are actually confirmed problems. Headbomb {t · c · p · b} 03:44, 21 April 2020 (UTC)
What I need is a script that tells me when a long citation isn't used as a source so that I can move it out of "Works cited". We had that, and now it doesn't work because of this change. What is the benefit of the change? SarahSV (talk) 04:19, 21 April 2020 (UTC)
What I need is a script that tells me when a long citation isn't used as a source so that I can move it out of "Works cited". Then ask for that at WP:SCRIPTREQ (User:Ucucha/HarvErrors.js still works for that, btw, with warnings outside "Works cited" sections as well). The benefits of this change is that tens of thousands of broken anchors are fixed, and that CS1 and CS2 are now on equal footing and now both work out of the box for {{sfn}}-purposes. Headbomb {t · c · p · b} 04:23, 21 April 2020 (UTC)

These two discussions—here and here—don't amount to consensus. The second is from 2018; the first is more recent but hardly anyone commented. You need strong consensus for a change that affects so many people.

Can you explain about the broken anchors? (Your last point about equal footing means we've lost functionality/flexibility because CS1 and CS2 are now the same; that's not a benefit.) SarahSV (talk) 04:53, 21 April 2020 (UTC)

SlimVirgin, can you please link to an article where this change is causing a problem? Thanks. It seems to me that if a source isn't being used in a Works cited section, it will now show a warning (with Ucucha's script in its default configuration) whether that source is using CS1 or CS2 templates, which makes for better consistency for editors.
As for consensus, this page has 365 watchers, and it is the page where changes to CS1 templates are discussed. If you would like to start a new discussion thread about the benefits and drawbacks of potentially reversing this change to CS1 templates, please do so on this page.
Also, all error and warning messages related to this change are hidden from readers and editors unless they have made changes to customize their personal CSS or JS files, so this change affects a tiny fraction of editors, and ways to reduce those effects have been provided. – Jonesey95 (talk) 05:08, 21 April 2020 (UTC)
There is now no way to get rid of these error messages, because removing ref=harv no longer works. The only way not to see them is (a) remove the script, but then we won't have warnings when they are needed in Works cited sections; or (b) rewrite the citations manually for Further reading and Selected works.
Jonesey95, the problem is that it is showing warnings when those templates are used in Further reading or Works cited. So I added a script that Trappist the monk suggested above. But that script has turned off all the warnings, so I don't see the red warnings anymore when long citations are not used as sources. But I want to see those. SarahSV (talk) 05:19, 21 April 2020 (UTC)
The script is showing brown warnings for CS1 templates (e.g. cite book) that it has always shown for CS2 templates (e.g. citation). The consensus was that this consistency was an improvement. Another improvement is that the brown warning messages will now show for CS1 templates that are used in Bibliography / Works cited sections but that are not actually cited, and should really be in Further reading sections. If you are willing to link to an article where you see this change as a problem, that would help us understand why the change may be objectionable. (Edited to add: I see that you have included a screen shot from Jedwabne pogrom, where the brown warning messages are helping indicate that two of the full citations are not templated, including one that does not end with a full stop. The warning messages are helping to indicate that CITEVAR improvements could be made.) – Jonesey95 (talk) 05:38, 21 April 2020 (UTC)
"The consensus": can you point to this consensus, please? I think you're mistaken about why the warnings are there; they're there because ref=harv is now the default. SarahSV (talk) 05:45, 21 April 2020 (UTC)
It is linked above in response to one of your comments. Do a find on this page for "Yep:". Consistency is specifically mentioned in the first discussion. – Jonesey95 (talk) 06:02, 21 April 2020 (UTC)
Not much of an improvement perhaps, but I have tweaked a copy of HarvErrors.js at User:trappist the monk/HarvErrors.js so that the brown warning messages are not emitted when there are no short-cite templates. In other words, when there are no {{harv}} or {{sfn}} templates, the script is mute so reference sections are not cluttered with the warning messages. I use a different color scheme and my error messages don't shout so the look is a bit different. In User:SlimVirgin/common.js, replace importScript('User:Ucucha/HarvErrors.js'); with importScript('User:Trappist the monk/HarvErrors.js');.
There is now no way to get rid of these error messages, because removing ref=harv no longer works. To quash the script warning messages in a Further reading section (or anywhere else), you can set |ref=none in the cs1|2 template. When set to this value, the cs1|2 templates will not create an anchor ID.
Trappist the monk (talk) 11:28, 21 April 2020 (UTC)

For the broken anchors, see Help talk:Citation Style 1/Archive 46#broken anchors, I've updated the archive to reflect the old behaviour. For consensus, it's a pretty strong one. This fixes tens of thousands of broken anchors, putting CS1 and CS2 on par with each other, thus allowing for greater flexibility in the choice of CS1 and CS2 styles with an increased user-friendliness. That this reduces the usefulness of an opt-in, optional script used by about 200 active editors is not much of an argument compared to the benefits this brings to everyone else. Headbomb {t · c · p · b} 05:28, 21 April 2020 (UTC)

Headbomb, we've been fine for years without the change. It has broken things. I've posted an image of what I see now in Further reading and Selected works sections. So what I normally do is pull references that I might use in future out of Works cited and into FR, and I remove ref=harv. Then I can easily put them back. What I will have to do now is rewrite them manually so that I (and other editors) don't see these warnings, because removing ref=harv no longer works. SarahSV (talk) 05:36, 21 April 2020 (UTC)
The change broke nothing, and while you may have been fine for years without it, articles clearly weren't. And there is a way to get rid of those warnings, don't use User:Ucucha/HarvErrors.js since that's the script that put them there. Again, WP:SCRIPTREQ is there if you want an updated script. Headbomb {t · c · p · b} 05:44, 21 April 2020 (UTC)
I don't see anything broken in the Further reading section at Jedwabne pogrom, except the minor CITEVAR problems that I noted above. You can add |ref=none if you really don't want to see brown warning messages for those citations, but if you later want to move the citations up to Works cited, you'll need to remember to remove it. As it stands, seeing a brown warning for every entry in Further reading is a good way to confirm that those full citations are not being used in the article, as long as they are all formatted consistently.
Also in the Works cited section of Jedwabne pogrom, you might want to disambiguate the three Polonsky & Michlic 2003 citations and their matching short citations, since the short citations don't know which full citation to link to. Same problem with Gross 2003. Let me know if you would like help with any of that. – Jonesey95 (talk) 05:49, 21 April 2020 (UTC)
There two Polonsky & Michlic 2003 in "work cited" that should be trimmed down to one, with the page information moved into the sfn, yes. Also another, which is probably one for a |ref=none since it's not cited directly. The Gross 2003 citation works correctly, there's a collision, but it's not an important one. Headbomb {t · c · p · b} 06:06, 21 April 2020 (UTC)

Re. "You could also ask ... at WP:SCRIPTREQ ..." – anyhow, I posted a place-holder request there (WP:SCRIPTREQ#HarvErrors.js), that is: inviting script-writing co-editors to come here to help determine what is feasible. I was thinking about placing an RfC at WP:VPT to determine whether the "|ref=harv " default is what editors generally want for cs1 cite templates, but didn't do that yet: I am still pondering whether that is a good idea (and if so: how to get it started on the right foot). --Francis Schonken (talk) 07:20, 21 April 2020 (UTC)

Don't invite them here, go there and discuss what you'd want the script to do there. Here is for discussing CS1/CS2 templates, not scripts. Headbomb {t · c · p · b} 10:31, 21 April 2020 (UTC)
"Selected works" section in Coral Lansbury

This is what I see now in "Selected works" and "Further reading" sections that use {{cite book}}, {{cite news}}, etc. Dudley and Gerda, have you been able to find a solution yet? SarahSV (talk) 18:28, 21 April 2020 (UTC)

@SlimVirgin: and? You'd see those too if someone used {{citation}} instead. Headbomb {t · c · p · b} 18:36, 21 April 2020 (UTC)
I used to see them if people used {{citation}}, but people usually didn't. If they did, I could switch to {{cite book}} without ref=harv and that fixed it. Now there is no way to fix it. SarahSV (talk) 18:46, 21 April 2020 (UTC)
Except switching from CS1 to CS2 based on your preferences is a violation of WP:CITEVAR, and you shouldn't be doing that to begin with. Headbomb {t · c · p · b} 18:56, 21 April 2020 (UTC)
Change can be difficult. In this case, you may find that the new way to eliminate the brown warning messages, adding |ref=none to either {{citation}} or {{cite book}}, is actually easier than converting {{citation}} to {{cite book}}. – Jonesey95 (talk) 18:59, 21 April 2020 (UTC)
I can't tell whether you're being deliberately obtuse. I see these error messages in lots of articles now because more people used {{cite book}} etc than used {{citation}} in FR and Selected works. SarahSV (talk) 19:04, 21 April 2020 (UTC)
Nope, deliberately helpful. Things have changed (CS1 templates now work consistently like CS2 templates when it comes to ref=harv, as explained above), and I'm trying to help you adapt to this change. I understand that you are seeing brown warning messages that you did not see before; I have seen them for years when people used {{citation}}, but I have learned to ignore them when they are not indicating an actual error. Adding ref=none to cite book is easy and does not violate WP:CITEVAR, which seems like an improvement to me, although I recognize that it is a different workflow that will take some getting used to. – Jonesey95 (talk) 19:12, 21 April 2020 (UTC)
Sigh. I get that you are frustrated but it is a two-way path. It is equally as exasperating when we offer possible solutions to a problem that are ignored. Read my reply to you. With that tweaked script I do not see any of the warning messages that you are seeing at Coral Lansbury. When I introduce a bogus {{harvnb}} to that article and preview it, I see the appropriate error message and, because the article now has a short cite template (bogus or not), all of the warning messages. Read my reply. Try it. Report back here.
Trappist the monk (talk) 19:06, 21 April 2020 (UTC)
Not frustrated, Trappist, but upset. I was in the middle of reading for an article I'm writing. Now I've lost my train of thought, and lost time, because of this. These central changes affect a lot of people, and those of us without technical knowledge are lost. As I said before, please imagine that I do something on WP that forces you to discuss the Holocaust in Danish for the next few days, and if you don't, then articles are full of error messages. The only way to get rid of them is for you to discuss the Holocaust in Danish. Imagine that, and you'll understand how I feel. I will now try your script. SarahSV (talk) 19:12, 21 April 2020 (UTC)
These changes affect at most ~200 ish active editors who use User:Ucucha/HarvErrors.js, many of which will welcome the added CS1 support. And they will repair tens of thousands of anchors all across Wikipedia for millions of readers. To compare this to the "discussing the Holocausts in Danish" is delusional at best. Headbomb {t · c · p · b} 19:17, 21 April 2020 (UTC)
Trappist the monk, I just tried it. It did the same as the first script you suggested. It removes the brown error messages in FR and Selected works, yes, but it also removes the error messages we want to see, namely when we use a long citation without a corresponding short one. That's one of the points of User:Ucucha/Errors.js. We need the flexibility of being able to add and remove ref=harv. SarahSV (talk) 19:22, 21 April 2020 (UTC)
@SlimVirgin: re namely when we use a long citation without a corresponding short one: that is not, and never has been, an error. Most Wikipedia articles are formatted with long citations that do not have short forms referring to them. Perhaps you have something more specific in mind, like "when we add a long citation to a references section that is only supposed to contain things that are referred to by short footnotes". The script you use did catch those, but caught a lot of non-errors besidea. If you want to catch these you will need a smarter script, one that is capable of distinguishing articles that use short citations for all references from articles that use them only for some or for none of the references. —David Eppstein (talk) 19:45, 21 April 2020 (UTC)
SarahSV The degraded functionality of cite book is deliberate and they (whoever they are) are happy with it. They have stopped ref=harv working and made cite book work like citation, in order to make cite book still work even if editors have not formatted it properly. The effect (as I think you are saying) is that you will get an error message if a citation does not link to a source, but not the other way round. Sources which do not link to citations (for example because someone removed citations to an unreliable source but forgot to remove the source from the bibliography) will not give an error message. Apparently the idea is that helping editors who cannot be bothered to format properly is more important than providing full functionality for conscientious editors. Dudley Miles (talk) 19:32, 21 April 2020 (UTC)
Again, |ref=harv works exactly as before, and there is no degradation of anything. It simply has been made default to make templates more user friendly and to repair tens of thousands of broken anchors. However you dealt with warnings in CS2 before still apply here. There is literally no difference in how CS1 and CS2 templates behave. For the millionth time now, if you don't like how User:Ucucha/HarvErrors.js behaves, then make a WP:SCRIPTREQ for a new script. Headbomb {t · c · p · b} 19:34, 21 April 2020 (UTC)
{{Citation}} isn't used as much as FR and Selected works, so I didn't see the brown warnings often. When I did, I sometimes stopped to switch to cite book and that fixed it. But now I see the warnings in lots of articles. Part of what's distressing about this discussion is you're forcing us to explain the same thing over and over and over. We've lost functionality, however you want to describe it. For no good reason and without warning, and without putting a script in place that would solve the problem. I know nothing about coding. But I should imagine that part of being a good coder would be to anticipate problems, find solutions in advance, prepare users for the change, and make the change as easy as possible, with clear explanations and some empathy. None of that happened here. SarahSV (talk) 20:18, 21 April 2020 (UTC)
"Part of what's distressing about this discussion is you're forcing us to explain the same thing over and over and over." Well maybe if you listened and actually went to WP:SCRIPTREQ like has been asked of you a million times you wouldn't be so distressed. Or actually followed the hours of advice dispensed. Or answered our questions when we're trying to figure out what it exactly is that you want and consider problematic about the current version except for "it's different, i don't like it". Headbomb {t · c · p · b} 20:27, 21 April 2020 (UTC)
You underestimate how distressing it is to be forced to interact with this level of aggression on the page. I can't walk away from it because then I'm left with the problem. SarahSV (talk) 20:46, 21 April 2020 (UTC)
Then perhaps you should re-evaluate how you interact with people then. You're given tons of resources to address your problem, but refuses to make use of any of them. You're pointed to go to WP:SCRIPTREQ, but refuse to do so. No one can help you if you don't let yourself be helped. Headbomb {t · c · p · b} 20:51, 21 April 2020 (UTC)
Are you sure you wrote what it is that you wanted to write? The brown warning messages apply to long citation without a corresponding short one; the error messages apply to a short cite without a corresponding long citation.
I just looked at User:SlimVirgin/common.js and its history.
  1. you removed window.checkLinksToCitations = false; – ok
  2. you
    1. removed importScript('User:Ucucha/HarvErrors.js'); – ok
    2. added 'User:Trappist the monk/HarvErrors.js'not ok
The script won't work if it doesn't get imported. Try again? I can't do it for you:
  1. remove:
    importScript('User:Ucucha/HarvErrors.js');
  2. add:
    importScript('User:Trappist the monk/HarvErrors.js');
Trappist the monk (talk) 19:42, 21 April 2020 (UTC)
Thank you. I will try again. No, I'm not sure of anything. That's what I'm trying to explain about this being like me forcing you to discuss the Holocaust in Danish. You're speaking a language I don't understand, discussing issues I don't understand, and yet I have to deal with it. It's upsetting. SarahSV (talk) 20:22, 21 April 2020 (UTC)
Trappist the monk, it produces error messages where they are wanted (e.g. a long citation without sfn or harvnb in the text), but it also produces them in FR where there is no ref=harv. SarahSV (talk) 20:49, 21 April 2020 (UTC)

The addition of ref=harv to cite book was the way linked and unlinked sources were distinguished. Now that ref=harv has been made non-functional, there is no way a script can distinguish between cases where cite book is being used with anchors or intentionally without. Dudley Miles (talk) 20:00, 21 April 2020 (UTC)

Again I ask, how did you deal with this in CS2 before? |ref=harv works exactly as it did before and generates a harvard anchor. Headbomb {t · c · p · b} 20:02, 21 April 2020 (UTC)
Not true. |ref=none inhibits anchor ID creation. This functionality was added several years ago specifically for {{citation}} so that editors didn't have to see the warning messages emitted by HarvErrors.js.
Trappist the monk (talk) 20:05, 21 April 2020 (UTC)

Combining with Headbomb's suggestion at User talk:Citation bot/Archive_20#remove ref=harv, I see (for the time being) some possible tasks (please add more ideas worth considering if you think of any):

  1. remove redundant "|ref=harv" from cite templates:
    Would be a WP:COSMETICBOT task, and would thus require explicit permission for the task before proceeding. Additionally it might make the work harder for those who try to clean up articles by listing footnote-used citations separately from those belonging in "External links"/"Bibliography"/"Works"/"External links" type of sections (since the HarvErrors script seems no longer very useful for such endeavours). --Francis Schonken (talk) 08:34, 19 April 2020 (UTC)
    It would be a cosmetic task indeed (if done alone) with no effect on anything, but it would not make the work any harder for anyone. So a bad task for a bot, if that's the only thing to be done. Headbomb {t · c · p · b} 10:55, 19 April 2020 (UTC)
    Might be worth getting it added to ProveIt's cleanup routines and to WP:GENFIXES though. --AntiCompositeNumber (talk) 02:57, 21 April 2020 (UTC)
    Absolutely yes. Headbomb {t · c · p · b} 10:53, 21 April 2020 (UTC)
    As things currently stand this isn't a WP:COSMETICBOT task - |ref=harv currently throws a maintenance category. Maybe it shouldn't, and maybe a bot removal isn't a good idea, but removing the parameters is not a cosmetic edit according to the definition in the policy. Jo-Jo Eumerus (talk) 19:05, 21 April 2020 (UTC)
    JCW-CleanerBot (talk · contribs) is currently removing |ref=harvs as a stand-alone task (example) – are we OK with that? --Francis Schonken (talk) 18:50, 29 April 2020 (UTC)
    That one is my bad, that should have been made from my account not the bot account. I was testing an AWB pluggin (mentioned at WT:AWB#Running into a limit making a list) to fetch the templates, and forgot to switch back to my account afterwards. The edits themselves aren't problematic though and were all reviewed manually, so no needs to revert. Headbomb {t · c · p · b} 19:00, 29 April 2020 (UTC)
    That template is not suitable for experimentation, so it will be reverted: please take your experiments to pages where you are the main contributor to the content, tx. --Francis Schonken (talk) 21:04, 29 April 2020 (UTC)
    There is no experimentation with the template. There was an experimentation with the AWB / Mediawiki API. Headbomb {t · c · p · b} 21:21, 29 April 2020 (UTC)
  2. add "|ref=none" to those templates which currently have no |ref= definition:
    See also above. Would be WP:COSMETICBOT except for those readers who use the HarvErrors script (presumably a minority of readers), thus would need explicit permission too. Apart from that, would probably generate a lot of false positives (e.g., cite templates called by a footnoted reference for which no "ref=harv" was placed in the past). --Francis Schonken (talk) 08:34, 19 April 2020 (UTC)
    This would not have consensus, because the entire point is that having |ref=harv being the default is that thousands of citation notes are fixed, and that it makes the entire citation ecosystem more user-friendly. The solution is to use a script that's up to date. Headbomb {t · c · p · b} 10:55, 19 April 2020 (UTC)
  3. define "|ref=none" for all cite templates in "External links"/"Bibliography"/"Works"/"External links" type of sections, unless when the template has a |ref= definition.
    Might generate false positives (e.g. articles erroneously using a "Bibliography" list as list of works used in references). --Francis Schonken (talk) 08:34, 19 April 2020 (UTC)
    See above. Whatever false positives there are far fewer in number than the broken footnotes that it fixes. Headbomb {t · c · p · b} 10:55, 19 April 2020 (UTC)
  4. move cite templates which are not called by footnotes to a "Further reading" section if they're not yet in a "External links"/"Bibliography"/"Works"/"External links" type of section.
    Technically more complicated (probably more than Citation bot can do), but might be worth to consider writing such script/code. --Francis Schonken (talk) 08:34, 19 April 2020 (UTC)
    Where to put citations is irrelevant and unrelated to citation anchors being enabled. Headbomb {t · c · p · b} 10:55, 19 April 2020 (UTC)
    The way I understand it, the HarvErrors script was used for script-assisted clean–up of articles. Namely, among other things, differentiate cite template formatted citations used as references from cite template formatted entries not belonging in a "Works cited" type of section. Which is useful clean-up. If the script is no longer useful in assisting such clean-up (which seems a consequence of the "ref=harv" default), and applying repairs and workarounds does not make it useful again for that purpose (or would require more effort than writing some code from scratch), we might consider programming a bot to do such task. Which makes Headbomb's comment above irrelevant to this 4th suggestion. --Francis Schonken (talk) 15:28, 19 April 2020 (UTC)
    The error scripts are still useful for the task described above. If you have five full citation templates in a "Works cited" section, and only four of them are connected to {{sfn}} templates, the unused one will show a brown warning message. See this version of Coniston railway station (England) for an example. Only one full citation in the Sources section shows the brown warning message. In this case, it is because the sfn template that is trying to use it omits the year. – Jonesey95 (talk) 17:33, 19 April 2020 (UTC)
    This one is a horrible idea. For one thing it imposes some bot-enforced ideal of how citations should be formatted, violating WP:CITEVAR. For another it will cause damage to the (probably many) articles that in some way use unlinked references to separately-formatted citations, whether inline or in footnotes, whether formatted as proper parenthetical citations or as prose. —David Eppstein (talk) 05:02, 21 April 2020 (UTC)

Two solutions work for me to stop the wrong error message when cite book is used without harv referencing. 1. Adding "window.checkLinksToCitations = false;" to "importScript('User:Ucucha/HarvErrors.js');" 2. Replacing "importScript('User:Ucucha/HarvErrors.js');" with "importScript(David Eppstein/HarvErrors.js);".

However, I have found a new problem. When cite book is used with ref=harv, I am getting an error message "CS1 maint: ref=harv (link)". Based on the comment of Trappist the monk above, this appears to be because CS1 has been changed to make harv referencing the default for cite templates, and give an error message for ref=harv on the ground that it is now redundant. Can I get rid of the wrong "CS1 maint: ref=harv (link)" error message by changing from CS1 to CS2, and if so how do I do that? Dudley Miles (talk) 09:30, 19 April 2020 (UTC)

CS1 maint: ref=harv (link) is not an error message and must not be construed to be one. It is, as it claims to be, a maintenance message. Because |ref=harv is now the default, use of that parameter value no longer has meaning. The module suite adds the category so that editors and their tools can know where these parameters are being used so that they can be removed or modified.
Changing from cs1 to cs2 will not remove the maintenance message if the cs2 template retains |ref=harv. To remove the message, remove the parameter or change its assigned value to something more appropriate.
Trappist the monk (talk) 11:11, 19 April 2020 (UTC)
When ref=harv was working, if it was in a citation and someone deleted the citation(s) for a book and forgot to delete the book from the bibliography, there would be an error message on the book in the bibliography. If you edited an article which does not use harv, then in order to comply with the article style it was good practice to use cite book without ref=harv, and then you would not get an error message. Now that ref=harv is disabled you presumably either have to get false error messages or not get warnings of errors. So it is now best to turn off error checking entirely because it is a waste of time. Can't we just go back to the system that was working fine? It seems to be Wikipedia's motto now, if something works, break it. Dudley Miles (talk) 11:50, 19 April 2020 (UTC)
ref=harv is still working. And you can still have those warning enabled by using Ucucha as is. What's now happening is that tens of thousands of broken citations now work because 'the system' didn't work as well as it should have. Failing to remove an "unused" citation is not a high-priority issue, because those will still be relevant as general references to articles. And you can always surpess anchors by using |ref=none, just as you could in CS2 before. Now people are free to use either CS1 or CS2, as they should have been a long time ago. Headbomb {t · c · p · b} 12:02, 19 April 2020 (UTC)
Trappist the monk says "Because |ref=harv is now the default, use of that parameter value no longer has meaning." Headbomb says "ref=harv is still working." Which is correct? What are the tens of thousands of broken citations which now work? Who decided that "Failing to remove an "unused" citation is not a high-priority issue"? In some cases they will have been removed because they are unreliable sources. The solution is to stop using citation templates. The latest changes have made them too difficult to use for anyone who is not a technical expert. Dudley Miles (talk) 12:48, 19 April 2020 (UTC)
"ref=harv" generates anchors automatically. This is the default setting now, which means that ref=harv and not putting ref=harv both generate anchors. Nothing broke, just now adding ref=harv is no longer needed because that's done automatically. Stopping to use citation templates would not make any difference here. Anything you wanted to remove, you'd still have to remove manually. You'd lack warnings. Citations would diverge in style and be harder to maintain. Bots couldn't maintain them. The solution here is to update your script, not break thousands of citations. Headbomb {t · c · p · b} 13:00, 19 April 2020 (UTC)
Both are correct. Writing a cs1 template with |ref=harv is the same as writing a cs1 template without |ref=harv. In both cases, the template does the same thing. ref=harv is still working because it is the same as the default. All other values assigned to |ref= are still handled in exactly the same way that they were handled before the module suite update.
Trappist the monk (talk) 13:36, 19 April 2020 (UTC)
Updating the script would not help with the many thousand articles already written which rely on cite book only generating error messages if ref=harv is used. I would prefer not to have so called "error checking" which gives irritating "maintenance messages" on any article I read which uses ref=harv, and does not give error messages on unused sources. Dudley Miles (talk) 15:04, 19 April 2020 (UTC)
If you do not wish to see the maint category messaging, remove this line from User:Dudley Miles/common.css:
.citation-comment {display: inline !important;} /* show all Citation Style 1 error messages */
Error messages (the red ones) will still display (except Cite <template> requires |<param> which is currently hidden).
Trappist the monk (talk) 15:16, 19 April 2020 (UTC)
Thanks. I will try that. Dudley Miles (talk) 15:36, 19 April 2020 (UTC)
But what about all the other people who will see them? This reminds me of the unnecessary "dead-url=yes" change. There are red error messages littering articles all over the place. SarahSV (talk) 03:10, 21 April 2020 (UTC)
Again, you are free to not use warning scripts and restrict yourself to error-checking scripts. Headbomb {t · c · p · b} 15:18, 19 April 2020 (UTC)
Whether making articles conform to WP:V is handling of "errors" or handling of "warnings" is an irrelevant distinction. --Francis Schonken (talk) 15:34, 19 April 2020 (UTC)
This not making articles conform to WP:V, this is making articles conform to optional, opt-in, and outdated scripts' bad outputs. Headbomb {t · c · p · b} 11:07, 20 April 2020 (UTC)
IMHO you're losing perspective here. Repairing citations so that a Wikipedia article conforms to WP:V, for which HarvErrors is a designated tool, is far preferable to doing COSMETICBOT edits which, as such, have no relation whatsoever to making articles more or less compliant to core content policies. If the HarvErrors scripts deserve all the epithets you suggest, then go make them better – complaining about them in general is neither here nor there. --Francis Schonken (talk) 11:45, 20 April 2020 (UTC)
Who has proposed to unleash cosmetic bots here? Actual errors are still flagged by all relevant scripts, including User:Ucucha/HarvErrors.js if you like warnings, or User:Svick/HarvErrors.js if you don't. The "fixed" scripts already exist. Headbomb {t · c · p · b} 12:06, 20 April 2020 (UTC)
Re. "Who has proposed ... ?" You proposed a COSMETICBOT task here
Please make up your mind: if HarvErrors is fixed, so that its WP:V-improving assistance is fully operational, it no longer needs the derogatory epithets, does it? --Francis Schonken (talk) 12:22, 20 April 2020 (UTC)
"You proposed a COSMETICBOT task" I did not. I specifically said that removing |ref=harv is not an edit that should be done on its own. Headbomb {t · c · p · b} 12:26, 20 April 2020 (UTC)
... which is still a COSMETICBOT task (an "allowed" COSMETICBOT task does not make a non-COSMETICBOT task), and thus far less substantial than making articles WP:V-compliant, for which a useful script can of course play a significant role. As said, you seem to be losing perspective. I mean, of course, over-all perspective on what best helps the encyclopedia forward. --Francis Schonken (talk) 12:34, 20 April 2020 (UTC)
In WP-linguo, a cosmetic bot is a bot that makes cosmetic edits. This wouldn't be a cosmetic bot task, because the bot would be making substantive changes, and the removal of |ref=harv would be bundled among those. Headbomb {t · c · p · b} 12:42, 20 April 2020 (UTC)

Let's link this to policy: a WP:COSMETICBOT task, i.e. a bot performing cosmetic edits, is usually allowed if the WP:COSMETICBOT task is performed, in the same edit, with a substantial task. That does not make a WP:COSMETICBOT task a substantial task. Aligning citations with core content policies are, in contrast, substantial edits. A script that significantly assists with that is more important than whether or not a substantial edit has an appended cosmetic edit. The loss of perspective seems complete if you think that a cosmetic edit appended to a substantial edit is remotely as substantial as getting a script which has proven its usefulness for articles' WP:V compliance back on track. Trying to make policies say what they don't say is further illustration of that loss of perspective. --Francis Schonken (talk) 13:16, 20 April 2020 (UTC)

This discussion is getting more and more pointless, since you do not seem to understand even the basics of what's at play here. Headbomb {t · c · p · b} 13:20, 20 April 2020 (UTC)
Well, I suppose you needed a reality check one way or another. The basics is WP:V, not bots. --Francis Schonken (talk) 13:23, 20 April 2020 (UTC)
Come back to this when you understand what's going on. Headbomb {t · c · p · b} 13:26, 20 April 2020 (UTC)
My edits above show that I know what's going on, and where not I'm not afraid to ask. Your self-contradicting derogatory language about the HarvErrors script (and its users), your explanations on cosmetic edits (contradicted by policy), etc. were however of little help to better understand what is going on. --Francis Schonken (talk) 13:48, 20 April 2020 (UTC)
Let me educate you then, since you still haven't got a clue about anything going on here. What happened here is that automatically-generated anchors (which were formerly and still are generated by |ref=harv) is now the default behaviour in CS1 templates, just like it was the default behaviour in CS2 templates. This has 2 main effects.
  • The first effect is that this fixes tens of thousands of missing anchors, which {{sfn}}-like templates assumed were being emitted, but weren't because someone used a CS1 template instead of CS2 template because they erroneously assumed those templates had the same behaviour. Additionally editors now have a vastly increased flexibility in the choice of CS1/CS2 styles without having to append |ref=harv to CS1 templates (or adding pointless |ref=harv to CS2 templates because this was required in CS1 before). The number of actual errors (namely missing anchors) flagged by users scripts, like User:Ucucha/HarvErrors.js has gone done significantly, leaving only things that now actually require human review, alongside a slight increase in collisions (which are flagged by HarvErrors scripts and other opt-in messages).
  • The second effect is that opt-in scripts which "warn" against "missing" {{sfn}}-generated anchors based on CS2-generated anchors, or CS1-generated anchors from |ref=harv, will now warn against "missing" {{sfn}}-generated anchors regardless of which of CS1 or CS2 templates are used. Additionally an opt-in CS1/CS2 maintenance message will display for those that choose to have those enabled. If those warnings bother you, then use User:Svick/HarvErrors.js instead of User:Ucucha/HarvErrors.js, and don't enable opt-in CS1/CS2 maintenance messages.
Finally, the feature request at User talk:Citation bot has nothing to do with WP:V. What it aims to do is to additional cleanup of citation clutter when the bot would make an edit anyway. This is not a cosmetic task, nor would it violate any aspect of WP:COSMETICBOT, because those would be done alongside substantive changes, and would affect absolutely nothing in how the HarvErrors scripts behave, both theoretically and practically. However, it would, over time, remove several of those opt-in CS1/CS2 maintenance messages, as well as reduce edit window citation clutter. Headbomb {t · c · p · b} 14:13, 20 April 2020 (UTC)

I have checked the three solutions suggested and I see that they all work, but with reduced functionality as they do not highlight unused sources. This is an important issue as in some cases citations have been deleted because the sources are not reliable, and in other cases the book should be in further reading to signal to readers that it may contain additional information not covered in the article. I hope this deficiency will be resolved in the future. Dudley Miles (talk) 14:58, 20 April 2020 (UTC)

If you want the warnings, you can still use User:Ucucha/HarvErrors.js as before. Headbomb {t · c · p · b} 15:11, 20 April 2020 (UTC)
That does not help because the rare correct warning will be get lost among the countless false ones which did not give warnings when cite book was used without ref=harv under the previous system. Dudley Miles (talk) 15:50, 20 April 2020 (UTC)
That's really no different than before in an article that used {{citation}} all over without using {{sfn}} and similar templates. Headbomb {t · c · p · b} 16:59, 20 April 2020 (UTC)
Exactly. That is why citation was rarely used in recent edits. When I saw it in an article I would change it to cite book, which was fine until the latest changes degraded its functionality. Dudley Miles (talk) 17:12, 20 April 2020 (UTC)
{{citation}} is used on about 300,000 pages. That's not exactly rare. Headbomb {t · c · p · b} 17:26, 20 April 2020 (UTC)
Also, changing it to cite book etc (on an article that uses citation templates consistently) is a violation of WP:CITEVAR. —David Eppstein (talk) 17:38, 20 April 2020 (UTC)
No, it isn't a violation of CITEVAR. It's a violation if templates are added to an article that doesn't use them, and it's a violation to change the rendered style. SarahSV (talk) 19:02, 21 April 2020 (UTC)
Which is exactly what changing CS1 to CS2 does. It changes the rendered style, and thus violates WP:CITEVAR. Headbomb {t · c · p · b} 19:04, 21 April 2020 (UTC)
How many of the 300,000 are with harv referencing? If they are, then there is no problem. They would not have given an error message and I would not have known it is being used. I was referring to the small minority of articles which showed error messages because they use the citation template in the bibliography without harv referencing. In most cases, the template is not used consistently, but as one of several styles. In such cases, I assumed it was OK to change them, but whether I was right or not it will no longer apply. Dudley Miles (talk) 09:22, 21 April 2020 (UTC)
How many? Well, about 142,000 articles use shortened footnotes, so that's a ball park. But many of those are used for CS1 templates. Point is, the vast majority of articles using CS2 templates (at least 285,000 – 142,000 = 143,000) had those warnings on before. Headbomb {t · c · p · b} 10:24, 21 April 2020 (UTC)
@Dudley Miles: there is absolutely no requirement that CS2 be used only in conjunction with harv referencing. CS2 is a valid citation style when used in non-harv footnotes, just like CS1 (and just like CS1 is a valid style even when used with harv referencing). I repeat, if you are changing CS2 to CS1, or vice versa, in consistently-formatted articles, you are in violation of WP:CITEVAR, regardless of whether there is any harv referencing in the article. Don't do it. —David Eppstein (talk) 18:59, 21 April 2020 (UTC)

"Ideas related to getting the HarvErrors script back on track" - how about putting it back how it was before the changes which were plainly made without consensus, and are certainly (judging by all the above) against consensus now? The hundreds of thousands of article-problems created would be seen from any rational standpoint as a powerful argument for reversion. Chiswick Chap (talk) 13:19, 21 April 2020 (UTC)

@Chiswick Chap: The solution is to update your scripts, not re-break citation templates. Headbomb {t · c · p · b} 13:29, 21 April 2020 (UTC)
No, the solution is to abide by consensus. Chiswick Chap (talk) 13:30, 21 April 2020 (UTC)
Consensus is that issues caused by scripts should be resolved by updating scripts. Readers are more important than editors. Headbomb {t · c · p · b} 13:43, 21 April 2020 (UTC)
No, functionality is more important as it benefits editors who can then make correct articles which benefit readers. I'm not claiming importance and nor is anyone else who's objected to these drastic and non-agreed changes here. Chiswick Chap (talk) 15:18, 21 April 2020 (UTC)
Indeed, and the functionality here is to provide anchors for {{sfn}} templates, not provide validation for scripts. Headbomb {t · c · p · b} 15:23, 21 April 2020 (UTC)
How does degrading the functionality of cite book benefit readers? So far as I can see the main effect of the new script is to make it easier for unreliable sources to pass unnoticed in bibliographies. Dudley Miles (talk) 15:40, 21 April 2020 (UTC)

The cite book functionality has not be degraded, it has been upgraded. You can now use harvard/snf templates with it without having to worry about explicitly declaring |ref=harv. See for example Smith (2016).

  • Smith, John (2016). Book of Stuff. Oxford University Press.

This fixed tens of thousand of broken footnotes everywhere on Wikipedia. It also makes the conversion of "manual" footnotes like <ref>Smith 2016</ref> very much easier to do without having to worry about finding where the corresponding citation is in the text. Headbomb {t · c · p · b} 15:44, 21 April 2020 (UTC)

It is clearly not true that the cite book functionality has not been degraded. What you have done is to degrade the functionality in order to make the template work even when an editor does not bother to format it correctly. Dudley Miles (talk) 16:19, 21 April 2020 (UTC)
Yes, just like {{citation}} if someone doesn't "bother to format it correctly". That's the point of automatic anchor generation. It's simpler for everyone to use. Headbomb {t · c · p · b} 18:12, 21 April 2020 (UTC)
But that was the disadvantage of {{citation}}. Now you've lumbered the other templates with the same lack of flexibility. Not all template use is for sourcing. SarahSV (talk) 20:07, 21 April 2020 (UTC)
If you could live with this "disadvantaged" in CS2, you can live with this "disadvantage" in CS1. That's why those are warnings, and not errors. They flag potential issues, not actual confirmed issues. Headbomb {t · c · p · b} 20:10, 21 April 2020 (UTC)
More importantly, CS2 isn't a special snowflake style. Both CS1 and CS2 are equally valid everywhere on Wikipedia. Headbomb {t · c · p · b} 20:12, 21 April 2020 (UTC)

Example

I never used HarvErrors.js. I do it all manually. Which can be a painstaking endeavour. Maybe if I'd used the script I'd have addressed this train-wreck of a "References" section (qualifying it WP:OVERREF is an understatement) a long time ago. CITEVAR issues regarding the article have been discussed on its talk page, e.g. here.

So, anyone to take up this challenge, that is the challenge of cleaning up "References", "Further reading" etc of that article, with or without script assistance? I would like to get some feedback on how much difference the script (in its original and/or patched versions) makes in tackling such complex cases, and whether the task would have been easier before the "|ref=harv " default for cs1 templates. Tx. --Francis Schonken (talk) 08:15, 21 April 2020 (UTC)

The only thing that needs "cleaning up" as far as footnotes are concerned is that there is there no "Schemelli 1736" reference. All the other anchors work. As for moving things from "References" to another section based on them being directly referenced by {{sfn}}-like footnotes, you can use User:Ucucha/HarvErrors.js if you want. There's no extra difficulty caused by this update. Headbomb {t · c · p · b} 09:56, 21 April 2020 (UTC)
Also technically {{GroveOnline}} is a CS1 template, and not a CS2 template, so there's a slight inconsistency there, which I've fixed. Headbomb {t · c · p · b} 10:38, 21 April 2020 (UTC)
As I wrote above, "CITEVAR issues regarding the article have been discussed on its talk page, e.g. here." The issue discussed there was to return to an earlier references format for the article, with which its first major contributor was familiar: that would be a referencing system using cs1 cite templates (which may not have been clear from the context, but you could have asked, that's what talk pages are for).
Also, you didn't catch a single citation that was not used as reference (and thus doesn't belong in the references system), but was contributing to the bulky "more-than-overref" effect. That's where the HarvErrors script would have come in, I suppose, to get this article in better shape WP:V-wise. --Francis Schonken (talk) 11:50, 21 April 2020 (UTC)
If you have issues with that article, take it to the article's talk page. However, CS2 is the dominant style used there. I don't care which is used, but either convert all to CS1, or convert all to CS2. HarvErrors makes no difference here as far as WP:V is concerned, because this is a style issue, not a WP:V issue. Headbomb {t · c · p · b} 12:50, 21 April 2020 (UTC)
The harverrors script shows a bunch of brown warning messages in the references section of that article. As far as I can tell, those warnings indicate sources that are not being used, so the script is working as a helpful tool to sort those sources into a Further reading section. Since this article used mostly {{citation}}, the brown errors were there before the CS1 update. In a similar article using mostly CS1 templates, before the CS1 module update, only {{citation}} or CS1 templates explicitly using |ref=harv would have shown the brown warnings. Now, the warnings are consistent whether CS1 or CS2 is used. In a situation like this, this change makes the script even more useful than it once was. Unless I am completely missing the point. – Jonesey95 (talk) 15:23, 21 April 2020 (UTC)

Do we have a resolution to this issue yet? If a source is in the reference/bibliography/etc. section, it ought to be cited in the text, and the presence of warnings there that an anchor is not being used is a useful way to highlight the fact that the source either needs to be removed or shifted to a further reading section. Parsecboy (talk) 11:58, 24 April 2020 (UTC)

I think Francis Schonken is still working on An Wasserflüssen Babylon. If you think that some of the full citations in References should be moved to Further reading, you should probably discuss that on the talk page for that article rather than here. – Jonesey95 (talk) 13:33, 24 April 2020 (UTC)
I'm not talking about that article, I'm talking about the problem that the harverrors script no longer works as intended (i.e., if you implement the changes suggested earlier in this wall of text, it only highlights short cites that have no corresponding anchor). It is very useful, especially when overhauling an old article, as it allows one to see when old references have been entirely replaced in the text. I'm not talking about a specific article, this is a general concept. Parsecboy (talk) 10:49, 25 April 2020 (UTC)
Uchacha's and Svick's HarvErrors.js scripts both work exactly the same as before. Nothing has changed there. What happened here is that now both CS1 and CS2 are supported out of the box, rather than just CS2. This has the real-onwiki effect of fixing tens of thousands of broken link for every reader out there. The "downside", if you want to call it such, is that there's a lot more "warnings", but there's no reason for why CS1 templates shouldn't throw those warnings just as much as CS2 templates do.
The above also lead to a newer and better script, User:Trappist the monk/HarvErrors.js which only throws warning on pages that make use of short footnotes, so those that feel the need to suppress warnings no one else but them see, will only see them on pages where those warnings might theoretically be of use. There's also ideas brewing about suppressing warnings in sections where they are not needed. Headbomb {t · c · p · b} 15:23, 25 April 2020 (UTC)
No, citations that are not used as references don't belong in a section that is called "References" – no preliminary discussion is needed about that, it's just something that needs repairing, a WP:SOFIXIT for which one doesn't need to be an expert on the topic. The only thing that is needed is that one cares about WP:V, and subsidiary guidance such as WP:OVERREF. --Francis Schonken (talk) 14:37, 24 April 2020 (UTC)
Except several of these citations may be used as general references. This is where editorial judgment and presentation comes into play. This is not a CS1/2 template issue that needs to be discussed here. Headbomb {t · c · p · b} 14:40, 24 April 2020 (UTC)
The concept of "general references" (whatever you think it may mean) is unknown to the WP:V policy. On the contrary, "... verifiability ... is satisfied by providing an inline citation to a reliable source that directly supports the contribution"; "... The cited source must clearly support the material as presented in the article. Cite the source clearly and precisely (specifying page, section, or such divisions as may be appropriate)." – As I said above, this is a WP:V issue.
There is no problem moving cite-formatted entries which have no apparent use as reference to a "Further reading" section. If that leaves some material unreferenced, the article should be tagged {{refimprove}} or some such, whether or not these works are listed as "References" (etc) or as "Further reading" (etc). --Francis Schonken (talk) 19:47, 24 April 2020 (UTC)
Good thing there is more to Wikipedia than what WP:V thinks exists. See Wikipedia:Citing_sources#General_references. Headbomb {t · c · p · b} 15:41, 25 April 2020 (UTC)
... which (in a quite confusing and self-contradictory way) mainly describes the disadvantages of so-called general references. So, if references which are indicated by footnotes are mingled with others that don't, in the same section, pushing the ones that have no clear connection to any part of the article body, to a "Further reading" section remains an acceptable first step when cleaning up an article. If that leaves some part of the article unreferenced, appropriate tagging, as described in my previous reply, needs to be done anyway, in whatever section the so-called general references are. Of course, if you have access to these documents, better still to sort the sourcing problems of the article, so that no tags need to be placed. But that doesn't diminish the possibility to sort them out to a "Further reading" section as a generally useful step until issues are addressed. --Francis Schonken (talk) 02:30, 26 April 2020 (UTC)
Indeed; it's why we have templates like {{More footnotes needed}} and {{No footnotes}}. The ability to easily locate references that aren't cited is very useful. Parsecboy (talk) 10:52, 25 April 2020 (UTC)

Removal of ref=harv

There was a discussion at User talk:Citation bot/Archive 20#remove ref=harv about removing "ref=harv", and there was no consensus. Despite this, Headbomb continues to do it with AWB, first from templates now from drafts. This makes it a Wikipedia:Fait accompli, and ignores that retaining ref=harv makes it less of a nuisance to add ref=none (assuming this change to the templates sticks).

It concerns me how these discussions have been split across multiple pages. When I tried to open a central discussion at the PUMP, Kees08 closed it down; see the archived discussion. It means no one is keeping track of the objections and Headbomb can continue as if there is consensus. SarahSV (talk) 22:33, 29 April 2020 (UTC)

There is consensus, that 3-4 people who use Ucucha's script and prefer a Wikipedia where there are tens of thousand of broken references for millions of readers instead of updating their scripts is not a sensible objection. Headbomb {t · c · p · b} 00:22, 30 April 2020 (UTC)
Almost every time I write about this issue, here and elsewhere (and perhaps every time), you've posted after me, often with gaslighting or a personal attack. It has made me reluctant to post in these spaces. SarahSV (talk) 00:45, 30 April 2020 (UTC)
Quoting SlimVirgin: 1. It concerns me how these discussions have been split across multiple pages. 2. Almost every time I write about this issue, here and elsewhere. You are making it difficult to AGF. Despite your forking of the discussions, we have tried to help you everywhere that you have posted and reposted your questions and comments and objections. – Jonesey95 (talk) 05:15, 30 April 2020 (UTC)
Gaslighting and personal attacks? After painstakingly correcting your misconceptions about what citation templates do, what the HarvErrors scripts do, pointing you dozens of times to WP:SCRIPTREQ on your plethora of discussions forks/WP:FORUMSHOPPING, literally working with you to improve scripts, if anyone is gaslighting and making personal attacks on anyone it's you. So if you're concerned about splitting discussions on multiple pages, then stop splitting them. Headbomb {t · c · p · b} 10:56, 30 April 2020 (UTC)
I concur with SV's comment, because you are also attacking an unidentified 2-3 people with an exaggerated mis-statement about their presumed preferences. I really don't understand your claim, especially because the un-updated scripts work just fine with identifying the broken links, but I suspect the cap fits. I never said I prefer "tens of thousands of broken references", not I believe has anyone, and will fix Ucucha errors if they are in my area of interest. What I said about your original solution was that the cure is worse than the disease: the majority of casual readers who saw a red interpolated message that was (a) usually a false positive and (b) only fixable with expert knowledge, as opposed to a bluelink that goes nowhere but I assume is rarely clicked (I have no data to support that). I look forward to the version that's backed by a whitelist, and to a canonical RFC somewhere. David Brooks (talk) 14:33, 30 April 2020 (UTC)
See, this is why this is hard to take seriously. Exactly zero readers saw any red messages whatsoever. The only people who saw any sort of red messages are log-in editors who chose to install a variant of the HarvErrors.js script (Ucucha's, Svick's, Trappist the monk's), and those who have opted in to display error messages generated by Module:Footnotes. Exactly zero red messages from HarvErrors.js are false positives, they are all confirmed errors. Module:Footnotes is experimental and does generate some false positives red error messages, which is why you need to opt-in to see those. The HarvErrors.js scripts, in all variants, are better here, and all work flawlessly.
HarvErrors.js however, now warns about "missing links" to CS1 templates like it did with CS2 templates before, with yellow/brown warnings. New scripts have been updated and several customization options are available, from displaying all yellow warnings, displaying no yellow warnings, to only displaying yellow-warnings on articles that make use of footnotes, and exclude sections where warnings have a low chance of being useful.
However, millions of readers saw tens of thousands of short footnotes with broken links, without any indication that they were broken until they clicked on them. This change remedies that, and also greatly enhances the flexibility of the citation system for editors, and of the HarvErrors.js scripts to find problems on CS1-based articles. And a minor inconvenience to a handful of editors who refuse to update their scripts and or explain what they consider a "good warning" or a "bad warning" does not overcome the impact this has on millions of readers. Headbomb {t · c · p · b} 16:21, 30 April 2020 (UTC)
I am sorry you could not take me seriously. Apparently I was not clear about the type of "red interpolated message"; in particular the first I saw was a false positive, reported to Trappist (albeit with an alarmist heading) on March 27. Back then, almost all citation-class templates with no error in coding or usage (and hence not reported by Ucucha) were complaining with something like sfn error: no target..., and a pointer to a suppression method that usually didn't work. That was the period I was referring to in my concurrence, and pointing that out in no way suggested I was "prefer a Wikipedia where there are tens of thousand of broken references for millions of readers". Perhaps I was being over-sensitive in assuming I was one of the 3-4 people. I think the error messages will reappear, with false positives on a smaller scale, when the feature is turned back on with a whitelist (I admit I have expressed skepticism about the scalability of that approach, while I have run several large survey queries to help Jonesey). "Worse than the disease" because the change did not fix the "link goes nowhere" error, but it did add an alarming but technical and, again, often false, error message, which IMO would have disturbed general users more than the link-to-null behavior by itself. And I think that will remain true. Believe me, I have been following what's going on. I have absolutely no problem with fixing the links, and I'm happy to see efforts to do it more cleanly. David Brooks (talk) 17:52, 30 April 2020 (UTC)
Those errors were generated by Module:Footnotes for a short time on March 27–28, which I reverted on March 28 after less than a day. Those errors and their associated false positives have nothing to do with |ref=harv being default in the CS1/2 update or the HarvErrors.js script. And I also agree with you that those error messages should not be enabled, at least until the false positive situation is resolved. Which it may not end up being. Headbomb {t · c · p · b} 18:23, 30 April 2020 (UTC)
(edit conflict)
Back then, almost all citation-class templates with no error in coding or usage (and hence not reported by Ucucha) were complaining with something like sfn error: no target..., and a pointer to a suppression method that usually didn't work.
That is rather an exaggeration isn't it? almost all? Not true. The error message that you quote was emitted then as it is now by Module:Footnotes. The error messages were, and still are, usually not from false positives though those exist. When I enabled the error messages on 27 March 2020, the category held about 47.7k pages. With whitelisting, with editor fixes, and with the switch to auto-|ref=harv, the category is now at about 34.2k pages. How much reduction of the category size is due each of these three 'reducers' is not known; probably not knowable. The module is used on about 144k pages so clearly not almost all.
Trappist the monk (talk) 18:31, 30 April 2020 (UTC)
I may have been somewhat imprecise there; otoh you inverted my meaning. Almost all citation-class templates that provide a custom author and/or date and eventually call CS1/2, although correctly coded, emitted a false positive. And I appreciate your suppressing the messages when that was pointed out. But that's the reverse of saying that almost all error messages were emitted by that class of template, which I didn't claim. Look, we're on the same page when it comes to wanting to get the citation mechanism and its links right. I think we're just visualizing different populations of readers/editors and I had misgivings about the direction of this solution which have, I'll admit, have migrated from "serious" to "still nervous". David Brooks (talk) 20:16, 30 April 2020 (UTC)
To be fair to the editors who did this change, having to append |ref=harv whenever I wanted to use sfn templates was also quite irritating. And I am willing to bet that a lot more templates needed that parameter back then than need |ref=none, meaning that the amount of work needed now is less than before the change.

I think we might want to discuss a better way to socialize CS1/2 changes. This isn't the first time where a change caused contention. Perhaps notifying folks through The Signpost - if I understand CS1/2 templates correctly, changes to them are implemented in periodic batches and there is a schedule of sorts of when they change - of major changes to CS1/2 will prevent complaints about breaking changes. Jo-Jo Eumerus (talk) 14:57, 1 May 2020 (UTC)

Given that pretty much no template need |ref=none for articles to be functional to readers, that sort of goes without saying that it's a lot less work. Also the Signpost editors don't like these tutorial articles, so don't bother writing them because you'll be wasting your time, because they'll even try to delete things in your userspace if you try to write something for them that they don't like. Headbomb {t · c · p · b} 15:15, 1 May 2020 (UTC)
Nobody has suggested "tutorial articles"; I was just proposing that changes that can hit many pages be reported there. Jo-Jo Eumerus (talk) 13:00, 2 May 2020 (UTC)
Wouldn't waste my time with that either, but YMMW. A mass message to those that use the old Ucucha's script summarizing {{HarvErrors}} would probably be more impactful, I feel. Headbomb {t · c · p · b} 14:37, 2 May 2020 (UTC)
Sure. My idea was more about preventing similar problems in the future. Jo-Jo Eumerus (talk) 15:29, 2 May 2020 (UTC)

Headbomb continues to remove ref=harv. [1] Pinging RexxS because I don't know what else to do at this point. SarahSV (talk) 21:44, 7 May 2020 (UTC)

You can do exactly nothing because this does not affect you or anyone else. If you're curious about why I did those specifically, I took a sampling of Category:CS1 maint: ref=harv (starting at 'Zu') and ran genfixes first, then did the removals on that handful because I wanted to know what was the proportion that would be affected by doing removals on articles where genfixes would be done. The answer is about 15%. Now stop your hounding. Headbomb {t · c · p · b} 21:50, 7 May 2020 (UTC)

Problem

Moved to WP:SCRIPTREQ#Problem. Headbomb {t · c · p · b} 12:54, 4 May 2020 (UTC)

Episode

When, and why, did |episode= in {{Cite episode}} become unsupported? It seems counter-intuitive. -- Michael Bednarek (talk) 02:31, 19 April 2020 (UTC)

This edit.
Trappist the monk (talk) 02:52, 19 April 2020 (UTC)
I'm sure it was reintroduced later as an alias for |number=. When and why was that removed? Was there any attempt to bot-replace it? Now we see |episode= removed without replacement, a clear disimprovement. -- Michael Bednarek (talk) 02:26, 20 April 2020 (UTC)
If |episode= was reintroduced to {{cite episode}}, you should be able to find its reintroduction and then removal in the template's history somewhere. I was not able to find a reintroduction and removal; I only found the initial removal that I linked above.
When this template migrated to Module:Citation/CS1, I left a note in Module:Citation/CS1/Whitelist (this edit – line 134) wondering if |episode= should be made part of {{cite episode}}. Since then I have done nothing with that parameter in the module suite.
Trappist the monk (talk) 12:02, 20 April 2020 (UTC)
|episode= was globally supported in that whitelist until 18 April 2020. Reading the module code, it seems the parameter is supported at {{Cite serial}}, so why not at {{Cite episode}}? -- Michael Bednarek (talk) 11:31, 25 April 2020 (UTC)
I migrated {{cite episode}} and {{cite serial}} from their {{citation/core}} implementations to their Module:Citation/CS1 implementations within minutes of each other. Because |episode= was required for {{cite serial}}, that parameter is whitelisted. The migrations were intended to be transparent to readers and editors. The new Module:Citation/CS1 implementation of {{cite episode}} reproduced the {{citation/core}} implementation of {{cite episode}} as it existed on the day of the migration. The old implementation did not support |episode=.
I can't tell you why |episode= was replaced with |title= in 2006; I wasn't here then. The editor who made that change hasn't contributed to en.wiki since April 2019 but you could try asking via email.
Trappist the monk (talk) 12:11, 25 April 2020 (UTC)

Request: Please make it so |lang=zh-tw displays "Taiwanese Mandarin" and not "Chinese"

Before
  • 回首頁 [Home page]. 臺灣閩南語常用詞辭典 [Dictionary of Frequently-Used Taiwan Minnan] (in Chinese (Taiwan) and Taiwanese Hokkien). Retrieved 2020-06-28.
After
  • 回首頁 [Home page]. 臺灣閩南語常用詞辭典 [Dictionary of Frequently-Used Taiwan Minnan] (in Taiwanese Mandarin and Taiwanese Hokkien). Retrieved 2020-06-28.
Proposed diff
[2] (without line 76 for now, will be separate request if this one approved)
Rationale
MediaWiki's name for zh-tw makes no sense. It outputs "Chinese" for zh-tw, zh-cn, etc. ISO really dropped the ball for zh. Languages as diverse as Cantonese, Beijing dialect, and Wu Chinese can be, and often are, all called "Chinese" even though they are not at all mutually intelligible in speech, especially traditional forms. (Nota bene: Varieties of Chinese.)
There's a huge political dimension to all this that there simply is not when it comes to calling en-US and en-UK both English. The Chinese Communist Party of course likes to push the idea of linguistic uniformity through Mandarin, and according to them that's what Chinese means. But since that isn't the definition our article is using, I don't know why our templates should use it. I also think that unless we move Mandarin Chinese to Chinese language, we should not call |lang=zh-cn "Chinese" either, but rather "Mandarin Chinese". Only plain |lang=zh should be "Chinese", and its use should be treated as an error, in my opinion, and we should consider raising one, maybe only putting it in an error category. Perhaps, Category:Articles with CS1 sources in unspecified language in Chinese language family.

Psiĥedelisto (talkcontribs) please always ping! 01:30, 19 July 2020 (UTC)

@Psiĥedelisto: Mandarin, Wu and Yue Chinese (the latter of which Cantonese is considered a dialect of) do have own ISO 639 codes: cmn, wuu and yue, respectively. Several other languages in the massive tent of written Chinese have separate codes as well, as is demonstratable by following links from Varieties of Chinese and looking at the articles' infoboxes. That doesn't solve this problem entirely, but it's incorrect to say that zh is the only available code. Glades12 (talk) 19:12, 19 July 2020 (UTC)
@Glades12: Thanks for clarifying this, I didn't know. It seems our template doesn't understand |lang=cmn, though. It does understand |lang=yue (outputting Cantonese) and |lang=wuu (outputting Wu Chinese). I guess why I say ISO dropped the ball is that I don't think |lang=zh should exist—no other broad language families have such codes, and it causes a lot of lazy mislabeling under the broad identifier rather than the narrow. What do you think about my idea to add a hidden error category? Now that you've taught me about |lang=cmn, I suppose we need that really: |lang=cmn-TW (Taiwanese Mandarin), |lang=cmn-CN (Standard Chinese, or should it be Beijing dialect?), etc. Psiĥedelisto (talkcontribs) please always ping! 19:21, 19 July 2020 (UTC)
@Psiĥedelisto: I'm undecided on an error category; simply a maintenance one, like Category:CS1 maint: unrecognized language, would probably be better. (Maybe that's what you meant by "hidden".) Correct me if I'm wrong, but there are probably a lot of cases where it's impossible to determine which variety an author uses in speech, since the vast majority look (more or less) identical in writing. In such cases (but not always, of course), I don't think we should penalise editors for using zh. Also, no idea why the software doesn't recognise cmn; it's as valid a code as the others we've mentioned here. Glades12 (talk) 07:36, 20 July 2020 (UTC)
Indeed, if we're citing a written text you can't tell what the author's native variety is, because they're writing in Standard Chinese, for which |lang=zh and the short name "Chinese" are quite appropriate. Codes like cmn, yue, wuu, etc would be relevant if we were citing recordings. Kanguole 08:32, 20 July 2020 (UTC)
@Kanguole: Not necessarily. Hokkien is often written in Tâi-lô or Tn̂g-lâng-jī, both of which are obviously different to Standard Chinese and not mutually intelligible, even in writing. Not making zh an error category is fine with me, though, I see your point. Cantonese, also, is often not fully mutually intelligible even in writing, and Cantonese-only characters exist. A Western reader might also confuse Chữ Nôm for Chinese, when they are also not mutually intelligible. So, these codes do serve a purpose for written texts. I'm not familiar enough with Wu Chinese to comment on it. Psiĥedelisto (talkcontribs) please always ping! 20:36, 20 July 2020 (UTC)
I quite agree that written Hokkien and written Cantonese ought to be marked specifically. That is a different situation from Standard Chinese as written in Taiwan, Hong Kong, Singapore or China. For Chữ Nôm, people are currently using |lang=vi-Hani. Kanguole 21:06, 20 July 2020 (UTC)
@Kanguole: OK but this is not really true. I don't know why you're insisting on the name "Standard Chinese" and not "Mandarin Chinese". "Standard" seems to elevate Mandarin unnecessarily, while Hokkien is itself a standard in Taiwan and is used in academic writing and news alongside Taiwanese Mandarin. Taiwanese Mandarin is a flavor of Mandarin with its own words and standards and authority over it. (Ministry of Education (Taiwan); National Languages Committee). See also Taiwanese Mandarin § Same words, different meaning et seq. We should be calling all Mandarin Mandarin, using cmn in most places we're using zh now. Psiĥedelisto (talkcontribs) please always ping! 02:10, 21 July 2020 (UTC)
Perhaps it is unfair that Guóyǔ ('national language') was codified in the early 1930s based on the Beijing dialect and Mandarin-based vernacular writing, but that is the reality, and pointing it out is not unnecessary elevation. Certainly the varieties of Taiwan and the mainland have diverged somewhat over the last 75 years, moreso in speech than in writing, but they are still the same language. Kanguole 07:43, 21 July 2020 (UTC)
Nothing against changing zh-tw to "Taiwanese Mandarin", adding cmn and putting zh into a tracking category, but since most Western readers won't be able to determine something more specific than zh when some text is advertised in the real world just as "Chinese" (which is often the case), it shouldn't be an error category as this would keep people from adding the information at all, and it is useful for formating purposes even while unspecific. --Matthiaspaul (talk) 17:59, 20 July 2020 (UTC)
I very much support this method; as someone who began editign the Taiwanese Mandarin article in earnest in May, and has big plans for it (not that none of us doesn't have big plans for a dozen separate articles at a time, but y'know), I have been trying to anticipate handling the number of pretty common tone/pronunciation differences as they pop up in the body of the article. A zh-tw would be more accurate and useful in circumstances where the ambiguity of "Chinese" might mislead a Mandarin learner to assume a Mainland utterance is grammatical in Taiwan or vice-versa, when it is not (that has happened to me before). WhinyTheYounger (talk) 02:22, 21 July 2020 (UTC)

duplicate error message

Cite book comparison
Wikitext {{cite book|author-link=[[Celia Fiennes]]|first=Celia|last=Fiennes|location=London|publisher=Leadenhall Press|title=Through England on a Side Saddle in the Time of William and Mary|year=1888}}
Live Fiennes, Celia (1888). Through England on a Side Saddle in the Time of William and Mary. London: Leadenhall Press. {{cite book}}: Check |author-link= value (help)
Sandbox Fiennes, Celia (1888). Through England on a Side Saddle in the Time of William and Mary. London: Leadenhall Press. {{cite book}}: Check |author-link= value (help)

fixed in the sandbox;

Trappist the monk (talk) 12:53, 22 July 2020 (UTC)

others prerequisites

In the Usage section is a table of parameters with some having prerequisites. It notes that the others parameter has a prerequisite of title, but it fails to note that the others parameter also has a prerequisite of last or author. I would fix it myself but I can't figure out where this is stored. —Anomalocaris (talk) 07:12, 22 July 2020 (UTC)

|others= doesn't have that prerequisite, and shouldn't anyway, because some sources (such as signs and very short magazine articles) only credit certain roles such as illustrators or editors. In cases like those, the templates should absolutely not force editors to choose between guessing who wrote the material and not including any names at all. Glades12 (talk) 11:09, 22 July 2020 (UTC)
It indeed has (essentially) that prerequisite as indicated by the existence of Category:CS1 maint: others. --Izno (talk) 13:03, 22 July 2020 (UTC)
I didn't know about that tracking category, but my point (that not all sources include their authors) still stands. Glades12 (talk) 14:35, 22 July 2020 (UTC)
Sorry. I was commenting on Template:Cite AV media notes, and from that page I clicked "talk" and I assumed I was on Template talk:Cite AV media notes, but I'm actually here at Help talk:Citation Style 1. My comments relate to Template:Cite AV media notes, which really does have a table as I described. Glades12: Izno is correct. Using any of these templates with the others parameter without last or author parameter causes the article to be automatically placed in Category:CS1 maint: others, which is an error category. In the case of Template:Cite AV media notes, the intent is that the authoring parameter is for the author of the notes, not for the composer or the lyricist or librettist or musical performer. If someone does put the performing musician's name in the authoring parameter, the display looks OK but it's supplying incorrect metadata. A lot of phonograph records, cassettes and CDs come with media notes with no apparent author. For example, I'm looking now at the notes that came with a CBS Records 1987 CD, Mozart: The Flute Quartets (Jean-Pierre Rampal, Flute; Isaac Stern, Violin; Salvatore Accardo, Viola/Alto; Mstislav Rostroprovich, Cello). The notes are in English, German and French, without author, although the German does list the Übersetzung (translator). Most other record and CD notes also don't have a listed author. A page using the others parameter (for the four musicians, for example) would be placed in the error Category:CS1 maint: others. This is a mess that should be fixed somehow. —Anomalocaris (talk) 06:22, 23 July 2020 (UTC)
"Using any of these templates with the others parameter without last or author parameter causes the article to be automatically placed in Category:CS1 maint: others, which is an error category." Nope. There's a distinction between CS1 tracking categories (prefixed with "CS1 maint") and error categories (prefixed with "CS1 errors"). Pages in the tracking categories may need to be edited for possible errors, while ones in the error categories certainly contain errors and should be edited in any case. Also, there was literally no way to know that you were talking about Cite AV media notes specifically; everything here implied that you were talking about all CS1 templates. Glades12 (talk) 06:39, 23 July 2020 (UTC)
|title-link= prerequisite at {{cite AV media notes}} was misplaced; fixed now.
Trappist the monk (talk) 09:59, 23 July 2020 (UTC)
Glades12: You're right, there was no way to know I was talking about Template:Cite AV media notes. As I explained, when I made my initial post here, I didn't realize I wasn't on Template talk:Cite AV media notes. I apologize for failing to note in my initial posting that I was talking about Template:Cite AV media notes. That's why I noted it as soon as I realized the issue.
Trappist the monk: You have removed all prerequisites from the others parameter, was this intentional?
Anyone interested: The subcategories of Category:CS1 maintenance may not be error categories, but many if not most of them seem to be de facto error categories. For example, Category:CS1 maint: archived copy as title‎ and Category:CS1 maint: ASIN uses ISBN‎ are de facto error categories. I don't believe I am the only Wikipedian who has assumed that if an a page is listed in any subcategory of Category:CS1 maintenance, it should be edited to coax the page out of the subcategory. I know there are Wikipedians who comb through these categories and fix things; within the past week or so, Category:CS1 maint: unrecognized language‎ had about 350 articles, and over the course of about two days, I saw the number drop to 42, and I checked the history of some articles that had been in the category and I saw that one or more editors were fixing the language parameter. Let us compare the error category Category:CS1 errors: URL–wikilink conflict to the non-error category Category:CS1 maint: others.
  • Category:CS1 errors: URL–wikilink conflict: This is a tracking category for CS1 citations that have wikilinks embedded in |title=, |chapter=, |article=, or |booktitle=, etc. while also specifying a URL for that element.
  • Category:CS1 maint: others: This is a tracking category for CS1 citations that use |others= without also using |author= or |editor= or any of their aliases. |others= is provided to record other (secondary) contributors to the cited source. Articles are listed in this category when Module:Citation/CS1 identifies a template that does not identify primary contributors....
So both categories claim to be tracking categories, but to the Wikipedia priesthood, one of them is an an error category and the other is not. I have been editing Wikipedia for over 15 years and I am in the top 1,300 Wikipedians by number of edits, but despite my status as a "senior editor", this distinction is becoming apparent to me only now. If Category:CS1 maintenance is not a collection of error category pages, I believe it and its member pages should me modified to make the distinction clearer. Perhaps something like, "This is not an error category and pages listed listed here do not necessarily need to be 'fixed'." But we need to be careful, since any page in, for example, Category:CS1 maint: archived copy as title‎, does need to be fixed. —Anomalocaris (talk) 22:00, 23 July 2020 (UTC)
The entire citation area is a mess and has been for the last three or four years. A small group of people are making decisions that massively impact the functioning of the project and they're doing so in an out-of-the-way enclave. It has become so confusing anf frustrating that, frankly, I am on the verge of giving up. - Sitush (talk) 22:19, 23 July 2020 (UTC)
My intent was realignment of |title-link= with its prerequisite |title= because, as it was, it was so obviously wrong and because, at the time, I had other stuff on my mind. The incorrect alignment has been in place since I made this edit – I guess it wasn't so obvious at the time... Unless someone beats me to it, I'll add |lastn=, |authorn=, |editor-lastn=, and |editorn= as prerequisites for |author= (probably tomorrow).
Trappist the monk (talk) 00:04, 24 July 2020 (UTC)

Rendering page number in book-length computer files

We need a way to handle page numbers in computer files and eBooks that are not absolute page numbers. Google has their own way of identifying such pages, and we should decide how we want to handle it in the general case, Google or otherwise. I'm hoping for a discussion to see, in the first instance, whether there's interest in establishing a conventional method of doing this (achievable via /doc changes alone), or if something more robust is required.

Checked the archives, and didn't see anything about this; please add a link if I missed something. More and more, books are being "printed" online only, and exist purely as digital files. Or as both, but the accessible one is digital. Especially in the former case, there may not be an absolute "page number", depending on the format (i.e., not pdf or other fixed format) and on the rendering engine. In particular, Google will render these without visible page numbers in their page view mode. They do have an identifier they use in their url to distinguish the two cases. As near as I can determine from generalizing from a few dozen examples, the url param |pg= is used for both cases, but the value differs depending on the source; for example: |pg=PA35 for printed, absolute page number visible in printed version, and |pg=PT35 for a page number on a digital resource. Note that in book search results, the Google result snippet will be slightly different: the boxed contextual snippet will say found inside – page 35 in the latter case, and found inside in the former.

For starters, I think this could be a doc-only change, by way of some additional text at the section on page, recommending what to do in this case, without any need for software changes. For example, something like:

For computer files where no fixed page number is present, code the page number a |page=X99, where the 'X' prefix is replaced by an identifier ('G' for Google books, 'I' for internet archive, ...) and the '99' represents the page identifier given by that display provider. The following table provides the identifiers for some common eBook providers: <table>...

That's just a first cut, and I'm sure I failed to consider lots of things. But the point is, I think we can initiate something useful without a software change, which would be a lot easier to get going, n'est-ce pas?

An example of using a conventional approach, as proposed
In this example from Google books, page numbers are absent in both the results snippet and the "view inside" pages, but a value appears in the url.

By June, the different branches of Free France, led by de Gaulle out of London, and by Giraud out of Algeria, merged into one, creating the French Committee of National Liberation.<ref name="Davis-2018">{{cite book |lang=en |last=Brunet |first=Luc-Andre |editor-last1=Davis |editor-first1=Muriam Haleh |editor-last2=Serres |editor-first2=Thomas |title=North Africa and the Making of Europe: Governance, Institutions and Culture |chapter=1. The Role of Algeria in Debates over Post-War Europe within the French Resistance |url=https://books.google.com/books?id=tP5DDwAAQBAJ&pg=PT35 |accessdate=23 July 2020 |date=22 February 2018 |publisher=Bloomsbury |isbn=978-1-350-02184-6 |oclc=1037916970 |type=computer file |page=G35–36}}</ref>

Going forward, maybe we do want more control of this, so maybe there's a new param to explain who the rendering engine is:(e.g., |epager=Google, |epager=Internet Archive, etc.). You would think that the value of the |url= field would be enough to imply the latter, but in the real world, the multiplicity of CS1 params not infrequently don't all remain in sync, so I wouldn't trust that method; you'd end up with page numbers corresponding to some mystery provider. That might even be a reason to keep the original suggestion (i.e., use |pg=G35 for Google efile) because the page number and the method are kept together in one param value. Your thoughts appreciated. Mathglot (talk) 01:10, 24 July 2020 (UTC)

I recommend citing the chapter, and if you have the energy, provide a quotation supporting the claim in the article. We have never required page numbers, and some sources, like web sites, have never had page numbers. I don't think it should be our job to make up nonexistent location designations for documents that do not have them. – Jonesey95 (talk) 03:15, 24 July 2020 (UTC)
There's a similar issue in scanned documents. There is a page within the PDF and there is the number that was printed on the original physical page; those are often different. Shmuel (Seymour J.) Metz Username:Chatul (talk) 04:29, 24 July 2020 (UTC)
Page numbers are used to help a reader discover the information that supports the wikitext. They are not necessarily pertinent in digital formats, which may use electronic bookmarks or other similar tagging as locators. Assuming that one can link that exact location (it is increasingly possible), the point of pagination is moot: the reader will be immediately directed to the verifying information. What may perhaps become useful in the future is better handling of such locators. Right now the only such specific locator used in CS1/CS2 is |chapter-url= and its aliases. Other than that, I don't think any special system is warranted. In scanned works, what is actually cited is the scan image, not its source. Different considerations apply, imo. 98.0.246.242 (talk) 01:37, 25 July 2020 (UTC)

|subject-link= and |subject-mask=

The other day, I noticed that we don't have |subject-mask= or any of its enumerated forms. I have added |subject-mask=, |subjectn-mask=, and |subject-maskn=

{{cite interview/new |title=Title |subject=Abraham Lincoln |subject-mask=2}}
——. "Title" (Interview).
{{cite interview/new |title=Title |subject=Abraham Lincoln |subject1-mask=2}}
——. "Title" (Interview).
{{cite interview/new |title=Title |subject=Abraham Lincoln |subject-mask1=2}}
——. "Title" (Interview).

The |subject= and |interviewer= arrays of parameters are used primarily in {{cite interview}}. Because we don't have non-hyphenated forms of the |interviewer= parameters and because the preferred form for parameter names is hyphenated, I have deprecated |subjectlink=, |subjectlinkn=, and |subjectnlink=. Here are some simple searches that indicate usage of these parameters:

Trappist the monk (talk) 22:48, 26 July 2020 (UTC)

Cite journal comparison
Wikitext {{cite journal|bibcode=1978BAMS...59..702B|doi-access=free|doi=10.1175/1520-0477(1978)059<0702:hbdstf>2.0.co;2|first=R. G.|issn=0003-0007|issue=6|journal=Bulletin of the American Meteorological Society|last=Barry|pages=702–705|title=H.-B. de Saussure: The First Mountain Meteorologist|volume=59|year=1978}}
Live Barry, R. G. (1978). "H.-B. de Saussure: The First Mountain Meteorologist". Bulletin of the American Meteorological Society. 59 (6): 702–705. Bibcode:1978BAMS...59..702B. doi:10.1175/1520-0477(1978)059<0702:hbdstf>2.0.co;2. ISSN 0003-0007.
Sandbox Barry, R. G. (1978). "H.-B. de Saussure: The First Mountain Meteorologist". Bulletin of the American Meteorological Society. 59 (6): 702–705. Bibcode:1978BAMS...59..702B. doi:10.1175/1520-0477(1978)059<0702:hbdstf>2.0.co;2. ISSN 0003-0007.

Fixed in the sandbox.

Trappist the monk (talk) 16:19, 29 July 2020 (UTC)

Thank you! − Pintoch (talk) 20:04, 29 July 2020 (UTC)

Support contribution/section in cite journal and others.

  • {{Cite journal | first1 = Shana | last1 = Kusin | first2 = Teddy | last2 = Angert | first3 = Katie | last3 = von Derau | first4 = B. Zane | last4 = Horowitz | first5 = Sandy | last5 = Giffin | name-list-style = vanc | title= 2012 Annual Meeting of the North American Congress of Clinical Toxicology (NACCT) October 1–6, 2012 las Vegas, NV, USA | volume = 50 | issue = 7 | pages = 574–720 | url = http://www.ohsu.edu/emergency/about/news/2012/nacct/posters/squash.pdf | contribution= 189. Toxic Squash Syndrome: A case series of diarrheal illness following ingestion of bitter squash, 1999-2011 |journal=Clinical Toxicology | doi = 10.3109/15563650.2012.700015| year = 2012 }}

Gives

It should give something better, like

Or maybe

Headbomb {t · c · p · b} 18:31, 27 July 2020 (UTC)

Pinging @David Eppstein: since you have a lot of experience there with math citations to sections of journal articles/books. Headbomb {t · c · p · b} 18:33, 27 July 2020 (UTC)
Use |department=:
  • {{Cite journal | first1 = Shana | last1 = Kusin | first2 = Teddy | last2 = Angert | first3 = Katie | last3 = von Derau | first4 = B. Zane | last4 = Horowitz | first5 = Sandy | last5 = Giffin | name-list-style = vanc | department= 2012 Annual Meeting of the North American Congress of Clinical Toxicology (NACCT) October 1–6, 2012 las Vegas, NV, USA | volume = 50 | issue = 7 | pages = 574–720 | url = http://www.ohsu.edu/emergency/about/news/2012/nacct/posters/squash.pdf | title= 189. Toxic Squash Syndrome: A case series of diarrheal illness following ingestion of bitter squash, 1999-2011 |journal=Clinical Toxicology | doi = 10.3109/15563650.2012.700015| year = 2012 }}
  • Kusin S, Angert T, von Derau K, Horowitz BZ, Giffin S (2012). "189. Toxic Squash Syndrome: A case series of diarrheal illness following ingestion of bitter squash, 1999-2011" (PDF). 2012 Annual Meeting of the North American Congress of Clinical Toxicology (NACCT) October 1–6, 2012 las Vegas, NV, USA. Clinical Toxicology. 50 (7): 574–720. doi:10.3109/15563650.2012.700015.
David Eppstein (talk) 18:40, 27 July 2020 (UTC)
That is very hacky. Headbomb {t · c · p · b} 17:16, 30 July 2020 (UTC)
It is, as far as I know, the only way to get three levels of titling (title/department/journal) within a journal cite. The other way is to use chapter/title/series or contribution/title/series but then you would have to call Clin.Tox. a series rather than a journal, and the volume/issue formatting would be for a book not a journal, so that's worse. The department is not included in the COinS metadata (and in particular is not coded wrongly in COinS as a department rather than as the title of a special issue). —David Eppstein (talk) 17:35, 30 July 2020 (UTC)

Citing third-party sources embedded in document

I'm trying to cite a newspaper source, for which the paper (or its website) doesn't exist anymore, but copies of the relevant article are embedded in a council ordinance. Can I do that, and if so, what would be the syntax?
The full ordinance is here, and I would like to reference page 106: "Success or failure?", Sean Robinson, The News Tribune. Frescard (talk) 14:23, 29 July 2020 (UTC)

If I understand correctly, you want to cite the newspaper article directly, as a sort of substitute stand-alone reference. If that is so, the answer is no, that is not correct. We must refer to sources as they are likely to be found. Here, the source is documentation of a local government ordinance. That is what should be cited. A location in the source is pertinent to the relevant wikitext. So the citation should be formatted exactly like that. Per your description, a reference to the particular news article cannot be sourced any other way. The answer was in the question. 172.254.241.58 (talk) 18:45, 30 July 2020 (UTC)
You could cite it as one document in a couple of ways (probably making use of |via=), but if you think it is helpful, you can instead cite both in one <ref> statement; something like {{cite news |newspaper=The News Tribune |first=Sean |last=Robinson |title=Success or failure? Probing Prometa}} as in {{cite web |url=https://online.co.pierce.wa.us/cfapps/council/model/otDocDownload.cfm?id=1448900&fileName=2007-81s%20final%20Ord%20file%201.pdf |department=Today in the Trib |website=Pierce County, Washington |title=Ordinance No. 2007-81s: etc. |p=106}}: Robinson, Sean. "Success or failure? Probing Prometa". The News Tribune. as in "Ordinance No. 2007-81s: etc" (PDF). Today in the Trib. Pierce County, Washington. p. 106. --Izno (talk) 02:18, 31 July 2020 (UTC)
The OP mentions that the original (the newspaper) is no longer in existence and cannot be found. If that is the case, citing the article directly is misleading and unverifiable. The use of |via= is I believe problematic: the source that includes the article is not an archive, repository, or other publisher. The article is included as supporting (incidental) documentation, as the OP described it, a source from a 3rd party. Tertiary sources should be referenced as such. 98.0.246.242 (talk) 02:16, 1 August 2020 (UTC)
He has stated a belief the web content cannot be accessed any longer directly. It may still be present in archives, digital or in fact physical. Giving the details of the document itself and stating that it can be found in the council minutes doesn't mislead whatsoever and may in fact aid someone to find it in one oc those other two contexts. Via is used to indicate a republisher. A republisher does not need to be one of those groups that you limited it to and in fact the council here is acting as a republisher of the original report. --Izno (talk) 03:00, 1 August 2020 (UTC)
WP:SWYGT. Also, archives (not self-archiving services) and legitimate republishers are supposed to satisfy legal/copyright requirements and are liable. In those cases, use of |via= is justified. But even that case does not apply here. The relevant text is a fragment of the containing source. It should be cited as such. 65.88.88.57 (talk) 14:16, 2 August 2020 (UTC)

Newspaper Article on Two Pages

What is the standard, if any, for citing a newspaper article that is available online, that is split onto two webpages. This occurs a lot with Newspaper.com sources. Generally speaking, the article is one source, with one title, author, date, etc. However, to assist with verifiability and to be able to archive each page of the article, I have been splitting it into two separate references, adding "Part 1" and "Part 2" to the title. See an example below:

This allows me to cite each sentence in an article with the relevant page of the news article. But it does create some confusion and adds additional sources in the reference list. Is there a better way to do this? Does (or could) {{Cite news}} support two urls and two archive-urls? Thanks for any insight. « Gonzo fan2007 (talk) @ 15:39, 3 August 2020 (UTC)

I'd combine the two thusly:
I don't think an archive URL is needed with Newspapers.com. Even if the website ever shut down, you're ultimately citing the original newspaper via an accurate facsimile, and the URL is a courtesy, not the source itself, per se.
Also, I don't think |type=clipping is helpful because Newspapers.com will allow readers without an account to see the full page from which the clipping is drawn. Imzadi 1979  20:56, 3 August 2020 (UTC)

Publication date

Is there a different validation for |publication-date= as it is reporting an error which does not happen if it is |date=?

Rik Farrow (2018). Rik Farrow (ed.). "Musings" (PDF). ;login. 43 (4). USENIX (published Winter 2018): 4. ISSN 1044-6397. {{cite journal}}: Check date values in: |publication-date= (help)</ref>

Keith D (talk) 21:17, 17 July 2020 (UTC)

Yes. Seasons, named dates (Christmas, Easter), and quarter dates are only supported by |date=.
Trappist the monk (talk) 21:33, 17 July 2020 (UTC)
Makes sense to support it in |publication-date= as well, I guess. --Matthiaspaul (talk) 11:20, 18 July 2020 (UTC)
Thanks. May be documentation could include a note to explain. Keith D (talk) 12:02, 18 July 2020 (UTC)
I would just make |publication-date= an alias of |date= and deprecate the long alias or remove it from the docs; we do not need to "advertise" every alias that has ever existed.  — SMcCandlish ¢ 😼  13:04, 4 August 2020 (UTC)

|website= parameter

How should editors use the |website= parameter? I'm talking about this edit and similar ones. The examples at Template:Cite web#Examples use the website name (in this case, Parties and Elections in Europe), but the automatic citation-creating tool uses the url of the website (in this case, www.parties-and-elections.eu). However, I also tried to use the auto-citation tool with a Wikipedia article as the url to test, and it put Wikipedia in the website parameter. Is this a mistake in the auto-citation tool? Thanks, Ezhao02 (talk) 15:37, 27 July 2020 (UTC)

The tool in question uses a system which has pre-configured settings for some websites (that you could get involved with if interested) and defaults to a certain setting. For e.g. Wikipedia, that setting indicates that Wikipedia is the website. For e.g. Parties and Elections, that's the default so it adds the website main URL. You should prefer the name if available and provide the URL if unavailable. --Izno (talk) 15:55, 27 July 2020 (UTC)
@Izno: To be clear, are you saying that both www.parties-and-elections.eu and Parties and Elections in Europe should be listed, or are you talking about the url of the web page (in this case, http://www.parties-and-elections.eu/basquecountry.html) being put in the url parameter? Is either the way I formatted it (prior to Impru20's edit linked above) or the way Impru20 formatted it considered "right" or "wrong"? Thanks, Ezhao02 (talk) 15:59, 27 July 2020 (UTC)
both www.parties-and-elections.eu and Parties and Elections in Europe should be listed No, do pick one or the other. Our guidance at Help:CS1#Work and publisher is currently the following:

On websites, in most cases "work" is the name of the website (as usually given in the logo/banner area of the site, and/or appearing in the <title> of the homepage, which may appear as the page title in your browser tab, depending on browser). Do not append ".com" or the like if the site's actual title does not include it (thus |work=Salon, not Salon.com). If no clear title can be identified, or the title explicitly is the domain name, then use the site's domain name. Do not falsify the work's name by adding descriptive verbiage like "Website of [Publisher]" or "[Publisher]'s Homepage". Capitalize for reading clarity, and omit "www.", e.g. convert "www.veterinaryresourcesuk.com" to "VeterinaryResourcesUK.com".

Does that help you decide? --Izno (talk) 16:02, 27 July 2020 (UTC)
Yes, thank you! Ezhao02 (talk) 16:18, 27 July 2020 (UTC)
@Izno: I still have another question about that page. How would you decide if "the title explicitly is the domain name"? Ezhao02 (talk) 16:23, 27 July 2020 (UTC)
Basic duck test. Does it look like the same duck? Yes. Then it's probably the same duck. --Izno (talk) 16:28, 27 July 2020 (UTC)
Thank you for all your help! Ezhao02 (talk) 16:31, 27 July 2020 (UTC)
Just to clarify further about "both www.parties-and-elections.eu and Parties and Elections in Europe should be listed ...?" Izno and the cited documentation are correct in answering "No." Either is okay; neither are an error, but both is an error. If the work has a proper title, then use that, but the domain name will suffice in absence of one, or if you don't have time to go look. It's okay that automated tools use the domain name, and it's also okay to cleanup up after them and change the auto-cites to use real titles. For a work without a title or whose title is literally its domain name, it's best to shave off the "www." if the site can be reached without it (most of them can, but it's worth testing; I ran into one only two days ago that 404'ed without the "www." prepended to it).  — SMcCandlish ¢ 😼  12:56, 4 August 2020 (UTC)

Please add param error checking for interwikis lacking leading colon

Hello, can you please add some error-check code and emit a big, red error message, if an editor codes a "link" param (author, title, translator, editor, contributor are the ones I'm aware of) to a sister wikipedia like fr-wiki without a leading colon on the lang code? What happens in this case, is various kinds of strange behavior, including dropping the field (author, say) and emitting only a semicolon or other punctuation; but worse is that the first of these, whatever it is, is picked up as an interwiki, and the entire article is linked under that language name in the left sidebar. Same thing occurs for fields with permissible wiki-linking, such as publisher. Beyond that, it screws up article links at Wikidata, as soon as their bot sees it.

You can see an example of the faulty behavior in revision 969921029 of André Diethelm. Go to the language links in the left sidebar, and notice that the Hebrew and Arabic links point to the correct articles (Google translate does a sufficient job of transliterating the titles to confirm they are correct if you need it) but the French one is wrong, and links to fr:Éditions Philippe Rey. This happens to be the publisher of one of the sources listed in the #Further reading section, namely "Lambert (2010)", but you won't see it on the rendered page, because it's been snatched by the wikimedia code and interpreted as the target of the "Francais" link in the language sidebar; all you will see in the Lambert citaton is extra punctuation between "Paris" and the ISBN. To actually see the linked publisher with the missing colon, you have to view the wikicode of that revision.

You can diff that version with current (diff), to see that the only change was to add one colon in the Lambert publisher field. Notice that the Francais link in the sidebar is now correct. (Same thing happens if you forget the leading colon in authorlink, or any of the other *-link fields.) These should be flagged as errors, because they will escape the notice of many users. Also, the bots at Wikidata are rapid, and although I noticed and fixed the problem within minutes, I was too late, and the Wikidata bot had already linked my French Resistance guy at en:André Diethelm to the French publisher fr:Éditions Philippe Rey via item d:Q3579477 ("Éditions Philippe Rey"; diff). I had to both unlink that connection, then go relink Diethelm to d:Q2847654 instead (same one that has the Hebrew and Arabic articles as well).

This is too much to ask most users to do. A big, fat, red error for interwiki links that lack a leading colon would be a big help. Thanks, Mathglot (talk) 06:04, 28 July 2020 (UTC)

I added a request for such error handling at Help talk:CS1 errors. Thanks, Mathglot (talk) 09:55, 3 August 2020 (UTC)
That discussion closed. One discussion in one place.
Trappist the monk (talk) 20:06, 4 August 2020 (UTC)
The |publisher=[[fr:éditions Philippe Rey|Philippe Rey]] is not a |<param-link>= problem; somewhat related, but not the same.
I have hacked the module sandbox to catch |<param-link>= where the assigned value begins with a known local inter-wiki prefix without a leading colon. There are a couple of exceptions. The w: and wikipedia: prefixes do not require leading colon. The s: and wikisource: prefixes have special meaning because cs1|2 creates urls from these inter-wiki links so that it can add the wikisource icon. From the example template, tweaked so that the author wikilink is missing the leading colon:
{{Cite book/new |first1=Gilles |last1=Lambert |author1link=fr:Gilles Lambert |title=Title}}
Lambert, Gilles. Title. {{cite book}}: Check |author1link= value (help)
Inter-wiki links are apparently namespace sensitive. The above example shows a linked author name and there is no link under languages to the fr.wiki. When I copied the above example to a random article in en.wiki main space and previewed, the linked author name is missing and fr.wiki is listed in the languages list, linked to Gilles Lambert.
The |publisher= inter-wiki link problem must be handled differently because for the most part, any cs1|2 parameter may be wiki-linked (despite documentation to the contrary). For all parameters in a cs1|2 template that are not |<param-link>= parameters, inter-wiki links must begin with [[<prefix>: where <prefix> is a known local inter-wiki prefix, s:, w: and their long-forms again excepted. As each parameter name is validated, the cs1|2 sandbox looks for this pattern and emits and error message when detected:
{{Cite book/new |title=[[fr:Title]]}}
fr:Title. {{cite book}}: Check |title= value (help)
In main space, the title from the above example is missing and fr.wiki is listed in the languages list, linked to Title.
Trappist the monk (talk) 20:06, 4 August 2020 (UTC)
There are other kinds of interwiki links that should (could?) be supported such as d:; interlanguage links are the ones that are problematic only. I do not understand why w: and wikipedia: (Wikipedia here is presumably its use as an interlanguage link as in wikipedia:Wikipedia:BRD?) are supported in this way. --Izno (talk) 21:26, 4 August 2020 (UTC)
I included the wikipedia: in the exclusion list because it is listed at Help:Interwiki linking as the long form of w:. But, now that you point it out, wikipedia: the prefix makes no sense because it conflicts with wikipedia: the namespace. No doubt the exclusion list might include b: (wikibooks), c: (commons), d: (wikidata), m: (meta), n: (wikinews), q: (wikiquote), v: (wikiversity).
Trappist the monk (talk) 22:11, 4 August 2020 (UTC)
wikipedia: does not conflict on other wikis as a thought. --Izno (talk) 22:55, 4 August 2020 (UTC)
[[wikipedia:]] on meta: links to the en.wiki main page. As a guess, I would say that wikipedia:, the name space, is common on encyclopedia wikis but not on other types of wiki.
Because [[w:]] appears to be a prefix that always links to en.wiki, I'm wondering if that prefix should continue to be excluded from the error check. Here at en.wiki, the w: prefix gets you to the article in the same way that the en: prefix or no prefix does:
[[w:Abraham Lincoln]]
[[en:Abraham Lincoln]]
[[Abraham Lincoln]]
At other wikipedias, the w: prefix links to the en.wiki article but isn't otherwise treated as a inter-language inter-wiki link.
Trappist the monk (talk) 12:53, 5 August 2020 (UTC)
Regarding, "Inter-wiki links are apparently namespace sensitive", yes; see Help:Interlanguage links#Method. And that's great that you were able to mock up something in the sandbox for the *-link case so quickly. I realize the other case (publisher, and other fields) is different, and is complicated by the legit shortcut codes that link to sister projects. Did anyone mention wikt:, species:, v:, voy:? See also, m:Help:Interwiki linking. Mathglot (talk) 09:35, 5 August 2020 (UTC) updated 10:21, 5 August 2020 (UTC)
I mentioned v: earlier.
At present cs1|2 tests what it thinks is a prefix against the table of known inter-wiki prefixes returned from mw.site.interwikiMap ('local'). I am minded to change that and instead use the list of languages returned by mw.language.fetchLanguageNames ('<local wiki lang code>', 'all') if I can show that all of the language codes in that list are also found in the inter-wiki map list.
Trappist the monk (talk) 12:53, 5 August 2020 (UTC)
I have changed the code so that ~/Configuration/sandbox creates a list of language prefixes from both mw.site.interwikiMap ('local') and mw.language.fetchLanguageNames ('<local wiki lang code>', 'all'). Prefixes in mw.site.interwikiMap ('local') must match a language code in mw.language.fetchLanguageNames ('<local wiki lang code>', 'all') to be added to the local list. There are seven 'language-like' codes in mw.site.interwikiMap ('local') that 'redirect' to another-language wiki but these codes do not contribute to the inter-wiki language list:
cmn: → Mandarin Chinese (ISO 639-3 code); redirects to zh.wikipedia.org
cz: → Czech (ISO 3166 country code); redirects to cs.wikipedia.org
dk: → Danish (ISO 3166 country code); redirects to da.wikipedia.org
epo: → Esperanto (ISO 639-3 code); redirects to eo.wikipedia.org
jp: → Japanese (ISO 3166 country code); redirects to ja.wikipedia.org
minnan: → invalid IETF language tag; redirects to zh-min-nan.wikipedia.org
zh-cfr: → invalid IETF language tag; redirects to zh-min-nan.wikipedia.org
These are not included in the local prefix list.
Trappist the monk (talk) 15:56, 5 August 2020 (UTC)
Can't remember anymore where I saw it, but there's a case where one type of Norwegian language code—whether no (Norwegian, in general) or nn (Nynorsk), I can't remember —is odd man out, wrt to a giant list of WP codes that generally match the ccTLD codes, except for that one case. (There's also Bokmal, nb, but it wasn't that.) This could be a red herring, but just wanted to recall it, in case it's relevant here. Mathglot (talk) 03:40, 6 August 2020 (UTC)
I'm not sure I understand what it is that you are saying. [[nn:]] links to the Norsk nynorsk nn.wiki, both of [[nb:]] and [[no:]] link to the Norsk bokmål nb.wiki. I do remember that for a time, language code no was not supported by the {{#language:}} magic word. That has since been fixed:
{{#language:nb|en}} → Norwegian Bokmål
{{#language:nn|en}} → Norwegian Nynorsk
{{#language:no|en}} → Norwegian
Trappist the monk (talk) 10:30, 6 August 2020 (UTC)
Found it, and it doesn't affect this issue, because it's about translation, not linking. If you're curious, it's used at Template:Expand Norwegian (Nynorsk); note the diff between |langcode= and |googlelangcode=, not found in any other Expand language template (such as Template:Expand Norwegian). The explanation at this /doc page references Nynorsk. So, red herring, as far as we are concerned here. Mathglot (talk) 04:28, 7 August 2020 (UTC)

Also, while I'm thinking of it: despite the emission of a CS1 error in preview mode, the editor can still override and save anyway, as shown in your sandbox example above. This is fine, for the *-link case, but not so great for the publisher=[[fr:Seuil]] case, because if that link is saved like that, the Wikidata bot will likely do something strange. I don't know if this is beyond the scope of this template, but, for example, could you stop the user from saving it in that form, either by stripping out the brackets, or supplying the preceding colon? If not, maybe in that case we'd need to see about an edit filter to trap it, but I suppose that would be a discussion for somewhere else. Mathglot (talk) 09:50, 5 August 2020 (UTC)

Hm, maybe not so fine in the *-link case, either; they can both lead to downstream problems of rendering and knock-on issues at Wikidata, if I'm not mistaken. Mathglot (talk) 03:47, 6 August 2020 (UTC)
Tweaks to the code:
For |<param-link>= parameters that fail the various link tests (has a url, has wikilink markup, has inter-wiki prefix without leading colon) the code simply unsets the parameter and declares the error:
{{Cite book/new |title=Title |title-link=//example.com}}Title. {{cite book}}: Check |title-link= value (help); External link in |title-link= (help)
{{Cite book/new |title=Title |title-link=[[Title]]}}Title. {{cite book}}: Check |title-link= value (help)
{{Cite book/new |title=Title |title-link=nv:Title}}Title. {{cite book}}: Check |title-link= value (help)
For |<param>=[[<prefix>:<value> the code extracts the label portion of the wikilink:
{{Cite book/new |title=[[es:Title]]}}es:Title. {{cite book}}: Check |title= value (help)
{{Cite book/new |title=[[es:Title|Title]]}}Title. {{cite book}}: Check |title= value (help)
These tweaks prevent the addition of extraneous inter-wiki links in the languages list.
That languages inter-wiki list at left must have a proper name. What is that name?
Trappist the monk (talk) 13:31, 6 August 2020 (UTC)
Usually just inter-language list or inter-wiki list. The latter can be ambiguous since the introduction of the inter-project list. --Izno (talk) 14:33, 6 August 2020 (UTC)
I've always just called it the "language links sidebar" (or "language sidebar", on the second occasion) because I've never seen anyone misunderstand what that means, but I don't know if there's an official term.
Thanks so much for tweaks here and earlier; this is going to really improve things. I wonder how many "stealth errors" are out there—defining that as something that "seemed all right" until now, that suddenly will generate a CS1 error where it didn't before. Do we care? I imagine editors at the articles concerned will wonder why something turned red that never was before, but all they have to do is click the [help] to find out. This is great stuff, thanks Trappist. Mathglot (talk) 03:07, 7 August 2020 (UTC)

Template-specific help in preview

Hi, I guess most of us do not remember all parameters supported by the various citation templates, in particular those which are not generic, but specific to certain templates.

In order to make it easier (quicker) to look up the template specific help page, I propose to let the template display an unobtrusive link to its help page (only) in article preview, either in front of the citation or after it.

This could look like[1]

  1. ^ [?] Smith, John (2015). "Title of Things". Journal of Stuff. 34 (1): 23–45. doi:10.4321/3210. PMID 012345.

{{Cite journal}} would have a link to Help:Cite journal, {{Cite conference}} to Help:Cite conference, {{Cite book}} to Help:Cite book etc.

If even this small [?] would be found to be too obtrusive, it could be put into some CSS stuff so that it would show only when an editor has opted in to maintenance messages.

--Matthiaspaul (talk) 11:01, 13 July 2020 (UTC)

  • I'm not sure I'd support that specific implementation, but the idea has merit and I'd support some variant of it. Possibly[1]
  1. ^ Smith, John (2015). "Title of Things". Journal of Stuff. 34 (1): 23–45. doi:10.4321/3210. PMID 012345. (Need help? See {{cite journal}} documentation)

As a preview/opt-in message. Headbomb {t · c · p · b} 12:42, 13 July 2020 (UTC)

Whatever we can agree upon. I deliberately tried to make it as short and unobtrusive as possible to not change the general appearance in preview, but if people would prefer longer messages as in your example, I would not be against it, either. --Matthiaspaul (talk) 12:54, 13 July 2020 (UTC)
Perhaps something like this (image instead of text) would be aesthetically more pleasing?[1]
  1. ^ Cite journal template documentation Smith, John (2015). "Title of Things". Journal of Stuff. 34 (1): 23–45. doi:10.4321/3210. PMID 012345.
--Matthiaspaul (talk) 15:54, 13 July 2020 (UTC)
Really should be at the end I feel, but YMMW. The real question is do we want this as default, or as an opt-in preview, or handled by a separate script? Headbomb {t · c · p · b} 18:45, 13 July 2020 (UTC)
I definitely don’t think it should be the default. It’s confusing for editors to see things in the preview that don’t appear in the finished page, and question marks or comments like “need help?” suggest something is questionable or that editor needs help, implies something is wrong even when it’s formatted correctly. Umimmak (talk) 18:58, 13 July 2020 (UTC)
This seems like something that could be created as a javascript that would give the little icon or a link for all templates, not just CS1 templates. I see people having trouble with editing a wide variety of templates, putting in incorrect parameters and much more. – Jonesey95 (talk) 19:02, 13 July 2020 (UTC)
Nothing against a script-based solution, but unfortunately I personally couldn't take much advantage of it then as I usually have JavaScript disabled for security reasons...
--Matthiaspaul (talk) 20:55, 13 July 2020 (UTC)
I don't think this would cause much confusion, as it is self-explanatory. The curious user would click it once or twice to see what it is, and then take it for granted almost as if it would be a style element of the skin. I don't think the user needs a lengthly description in each citation, because once read its purpose is obvious. Some users might even miss the feature for some while, but that's the same with other interface elements - they will be stumbled upon and then used (if intuitive). That's why my preferred implementation would use a link as small as possible - ideally, I would even "reuse" some existing style element (like the "^"), but then it would have to be implemented as part of Mediawiki's <ref> token rather than inside our local citation templates (however, this won't work because only the citation template itself knows the location of its help page).
If a question mark would draw the wrong association, we could use something like a "book" or "file" icon to indicate "documentation" or even something more abstract like a (diagonally) upwards-pointing arrow (similar to the external-link icon, but pointing in one direction only) to indicate "look up".
--Matthiaspaul (talk) 20:55, 13 July 2020 (UTC)
The reason why I prefer the link in front of the citation (at least when it remains as short as in my example) is because it then "blends in" visually with the other "strange" symbols (like the "1./2.", "^" typically found in front of citations), whereas at the end of a citation there is often other text following (inside the <ref> block), and it might look "out of place" there or actually cause confusion (when short).
If we'd use a long descriptive text label, we would definitely need to frame it for opt-in. If it remains just an icon (or similarly short) this would not be needed (thereby we'd include the large group of "normal" users who don't change their default configuration).
--Matthiaspaul (talk) 20:55, 13 July 2020 (UTC)
Following up on icon prefixes, I just ran into {{cite wikisource}}, a cite template I wasn't aware of. This actually uses a similar format already:
Wikisource reference Chisholm, Hugh, ed. (1911). "Aard-vark". Encyclopædia Britannica (11th ed.). Cambridge University Press – via Wikisource.
So, with a question mark icon added in preview mode this would look similar to:[1]
  1. ^ Cite wikisource template documentation Wikisource reference Chisholm, Hugh, ed. (1911). "Aard-vark". Encyclopædia Britannica (11th ed.). Cambridge University Press – via Wikisource.
Not too bad, I would think...
--Matthiaspaul (talk) 16:20, 19 July 2020 (UTC)
Nice coincidence, when one clicks on "View history" on a page, a circled black question mark icon appears in the upper right corner leading to Help:Page history. So, there is even some precedent for this... ;-)
--Matthiaspaul (talk) 20:58, 19 July 2020 (UTC)
cs1|2 renders differently in preview mode only when there are archive-url errors. The initial implementation of that queried the {{REVISIONID}} magic word for every citation whether there were errors or not. That implementation drew the attention of MediaWiki because it took longer to save pages. This because preview-pages are different from saved pages so MediaWiki can't reuse the preview and must parse the wikitext again before it can be saved. See Help talk:Citation Style 1/Archive 20 § archive url checks and preview mode and the related discussion at Wikipedia:Village pump (technical)/Archive 147 § Preview-only template warnings using REVISIONID magic word.
Trappist the monk (talk) 19:17, 13 July 2020 (UTC)
Obviously, I would have used {{REVISIONID}} as well to detect preview mode... Let's loop in User:Aaron Schulz to see if there is meanwhile another way to detect preview - after all, four years have passed...
Is there a CSS class for "preview messages", that is, something that is visible only in preview without being conditional on {{REVISIONID}}?
--Matthiaspaul (talk) 02:22, 14 July 2020 (UTC)
A bit too much insider jargon for me to decipher if the issue has been worked around by User:Aaron Schulz in 2019, so I'll drop these finds here for evaluation and comment by those who are familiar with the implementation:
--Matthiaspaul (talk) 17:26, 15 July 2020 (UTC)
On 2019-04-04, User:Krinkle wrote ([3]):
"The magic word {{REVISIONID}} is being deprecated for performance reasons. In the future, it will only return "" (empty string) when previewing edits, or "-" (dash) when reading pages. The release of next week, will only change this behaviour for articles in the content namespaces. It will not change for interface messages and other namespaces (such as talk pages, and user pages)."
So, it basically has reduced to a flag now.
Anyway, I would prefer to see such help links in preview rather than saving a few seconds on save. Comments?
--Matthiaspaul (talk) 15:49, 18 July 2020 (UTC)
Having reread the other threads, I have come to the conclusion that we can assume the issue as being worked around at least to an extent that using {{REVISIONID}} does no longer cause a significant performance hit that could not be remedied on server side.
On 2016-06-22, User:Ori Livneh/User:ATDT wrote (Help talk:Citation Style 1/Archive 20#archive url checks and preview mode):
We try to do all the work except actually save the edit to the database. If the user does not end up saving the edit or if the user goes back and makes additional changes, we just throw away whatever we computed. But if the user saves the edit, then often times a lot of the work is already done and all we have to do is commit it to the database. Whenever the REVISIONID magic word is used, this whole mechanism is basically subverted, because we can't reliable know in advance what the revision ID is going to be before we save it to the database.
However, with {{REVISIONID}} reduced to something like a {{PREVIEWMODE}} flag, the pseudo-revision ID can be predicted (even during preview) to be "-" when later saving a page, thus the precompiled page can be reused with no or only minor fixups. What still might differ is the resulting HTML (with or without the help icons), but nobody would keep them from silently generating the HTML for the "-" case during preview already (in addition to the preview itself), so, while this may still require two passes, there is no need to defer the final pass until the user hits "Save", thus no performance penalty on the user side.
In the worst case, the feature could be made conditional on citation errors occuring. In this case, it would not show for all citations in preview but at least for those where errors were detected and thus help is particulary useful.
--Matthiaspaul (talk) 18:06, 19 July 2020 (UTC)
Apparently, none of the three pinged server admins/developers can be bothered to reply. Since the problem apparently no longer exists, let's go for it. --Matthiaspaul (talk) 12:35, 8 August 2020 (UTC)

Why does Wikiquote's Ref template and Wikipedia's Ref template handle commas in the date field differently?

(X-posting from the Tech Pump) Wikiquote's ref template will parse "July 2 1999" just fine, but our template requires a comma, e.g. "July 2, 1999". Why is that? Can someone fix our template to stop caring so much? I screw this up on my first pass something like 25% of the time. -- Kendrick7talk 00:30, 7 August 2020 (UTC)

"July 2 1999" is not a valid date format here on the English Wikipedia, per MOS:DATESNO, so our CS1 citation templates (e.g. {{cite web}} and similar) display an error message. Wikiquote does not have enforceable date styles (per the English Wikiquote MOS), so ambiguous and non-standard dates aren't marked as errors. – Jonesey95 (talk) 01:58, 7 August 2020 (UTC)
What does MOS have to do with it? Wikiquote's template simply inserts the comma automatically, so the styling result is exactly the same. -- Kendrick7talk 12:37, 7 August 2020 (UTC)
Which template is doing this formatting? See my wikiquote sandbox, where Template:cite news on wikiquote is leaving "July 2 1999" alone. You are welcome to add examples to that sandbox page. – Jonesey95 (talk) 15:43, 7 August 2020 (UTC)
Wikiquote's version of "cite web" is definitely adding the comma; I've added an example to your sandbox. I don't know why I expected consistency, lol. -- Kendrick7talk 00:22, 8 August 2020 (UTC)

Some maintenance items to upgrade to errors

Right now, Category:CS1 maint: display-authors and other friends are nearly always empty because they are nearly always an easy-to-correct error. I would like to propose upgrading them to errors accordingly, which will make them more visible to editors.

To make this easier to do in the future with maintenance messages we decide should be errors, I'd also like to see the error and maintenance system implementations be made the same (save for the obvious distinction). For this latter, I trip up really hard every time I want to get maintenance items turned into errors, and it's making it hard to parse how to make the necessary code modification for display-X.

Any concerns? --Izno (talk) 12:45, 4 July 2020 (UTC)

After the next update which I am about to announce.
Error messages rely on tables defined in Module:Citation/CS1/Configuration. Each error message has four properties: message, anchor, category, hidden. For maint cats, we might define these:
message always nil or empty string
anchor a unique value used to link into Help:CS1 errors help text
category the key that tells common set_error() how to handle the issue; maint cat names all begin with 'CS1 maint:' whereas error message cats aren't so consistent
hidden ignored for maint cats which are always hidden
Category:Pages with inactive DOIs is presently a member of Category:CS1 maintenance but doesn't necessarily belong there. In Module:Citation/CS1/Identifiers this cat and its dependents are treated as pseudo errors (the categories are created and added to the table z.error_categories. Property and maint cats have their own tables (maintenance_cats and properties_cats). Maint cats can display their names as an editor-option via css, prop cats display nothing.
Before we embark on a messaging rewrite, we should normalize, somehow, the inactive doi handling. Inactive dois are not errors in the sense of cs1 errors like any of the categorized errors in Category:CS1 errors. Neither are they simple properties because they should be fixed. We could treat inactive dois as maint issues so that editors who have turned on maint messaging can see locate the inactive dois.
Another thing that I would like to do is standardize the location of error messages. We have a mix of locations: some error messages are adjacent to where the element occurs in the rendered citation and the other are all listed at the end. I have a preference for grouping all of the error messages at the end. Maint messaging is all rendered at the end of the citation.
Assuming that we do all of this, the simple case conversion from maint message to error message is to change category to the correct error cat; add the appropriate error message in message, and set hidden to the appropriate boolean.
No doubt, this enumeration is incomplete ...
Trappist the monk (talk) 15:30, 4 July 2020 (UTC)
Speaking of error messages, it might be worthwhile to also improve the preview messages on duplicated parameters so that they provide some location information. In articles with many citations it sometimes takes quite a while to spot the citation using e.g. |date= twice. --Matthiaspaul (talk) 07:58, 7 July 2020 (UTC)
@Matthiaspaul: That's a MediaWiki feature, unrelated to the citation templates. But there's a script, User:Frietjes/findargdups, which can tell you which template call has the duplicate. -- John of Reading (talk) 08:42, 7 July 2020 (UTC)
Thanks, John. --Matthiaspaul (talk) 14:27, 7 July 2020 (UTC)
The error message function has been renamed set_error()set_message() and been modified so that it will emit maintenance category 'messages' when the message property for that message is nil. Maint messaging is now part of the error_conditions{} table in Module:Citation/CS1/Configuration/sandbox; TODO: rename that table.
Module talk:Citation/CS1/testcases2
Trappist the monk (talk) 14:37, 30 July 2020 (UTC)

I worked my originating request as a result of this rework, which moves display_names messaging (inconsistently error and maintenance) to strictly errors. Main, /Configuration and testcases2. Perhaps of note that this changes the error for the "don't know" case from invalid_param_values to disp_name; I made that change to centralize all the disp_name errors fixing. There may be further work that should be done so the other use of that error can be more definite. --Izno (talk) 22:50, 8 August 2020 (UTC)

One other thing: I am not personally convinced that we need 5 categories to handle display_names issues. I think 1 would suffice. Seeking feedback on that point. --Izno (talk) 22:52, 8 August 2020 (UTC)

Template:Cite book needs additional terms

"Template:Cite Book" needs terms for all of the MARC 21 fields, especially total pages, size, etc.71.230.16.111 (talk) 06:47, 24 July 2020 (UTC)

Why? The fields you mention are intended for cataloguing books. We are citing them, not cataloguing them. This information does not usually go into citations according to most commonly-used academic citation standards. Making fields for this information will just encourage people to fill them in under circumstances where they would be better off omitted. —David Eppstein (talk) 06:51, 24 July 2020 (UTC)
Agreed. It's actually confusing and detrimental to citations to add claptrap like this, especially total page count, since it's often mistaken for the pages being cited for the information the citation pertains to. And we just have utterly no use for something like "|size=quarto". Yeesh. Wikipedia is not anything like WorldCat.  — SMcCandlish ¢ 😼  13:00, 4 August 2020 (UTC)
"References" are not just citations. A "citation" only needs to identify a known reference; we need to describe the reference, for readers not able to just go over to a shelf and pick it up, and to convince the reader that it is in fact a valid reference for the subject of the article. Thus the academic standard does not apply; whether something is published as manuscript, paperback or hardcover does matter. Should there be a different template, "identify book" instead of "cite book"?71.230.16.111 (talk) —Preceding undated comment added 06:11, 7 August 2020 (UTC)

Fulltext access fields

I'm sure the way in which access is indicated in citations has been discussed extensively by the regulars here, and I apologize for my ignorance of your past discussions. Is there a field to indicate that a book is public-domain (in this case, a 2018 work of US government) and the fulltext is freely available online? This will make it obvious that it is easy to verify the cited statement, and increase the likelihood of editors and readers actually doing it. I understand that such access parameters are already common on journal article templates.

An additional winkle here: many medical journal articles are currently freely accessible due to a special action taken by publishers for the COVID-19 pandemic. At some future date to be decided upon by the publishers, they will put the articles back behind paywalls. Public licenses are permanent, but free access may be revoked. I'm not sure how widespread this is, but we might end up with a lot of incorrect information on access. HLHJ (talk) 17:29, 8 August 2020 (UTC)

Does Help:Citation Style 1 § Registration or subscription required answer your question?
Trappist the monk (talk) 17:36, 8 August 2020 (UTC)

Help

I have a question about a book that is divided into several individual sections with their own authors. ¿How should I cite that book? In my case I am only interested in one section of that book. --Muwatallis II (talk) 23:11, 8 August 2020 (UTC)

Author. "Section". Title. {{cite book}}: |author= has generic name (help) is the basic skeleton. If you have some more information we can fill out the rest for you. --Izno (talk) 23:12, 8 August 2020 (UTC)

The book is called: Escuadra Nacional 1818-2018 (no author, only publisher)

The title of the chapter or section of the book already mentioned is: De la Guerra del Pacífico hasta fines del siglo XIX. The author is: Piero Castagneto Garviso. This author is just from the chapter or section of the book.

As I mentioned before, the book has other chapters or sections with their own authors, but I'm only interested in the one already mentioned. --Muwatallis II (talk) 00:04, 9 August 2020 (UTC)

Piero Castagneto Garviso. "De la Guerra del Pacífico hasta fines del siglo XIX". Escuadra Nacional 1818-2018. Publisher. is how that is done indeed. I expect there is an editor too who you might want to include, and of course a year. --Izno (talk) 00:25, 9 August 2020 (UTC)
+|url=http://anyflip.com/yccc/bhap:
Piero Castagneto Garviso. "De la Guerra del Pacífico hasta fines del siglo XIX". Escuadra Nacional 1818-2018. Publisher.
Trappist the monk (talk) 00:30, 9 August 2020 (UTC)

Placement of language annotation

When the source being cited is a chapter in an edited book or an article in a journal, the language of the source (specified with |language=) should be notated after the chapter or article, rather than after the book or journal, which may include items in several languages. For example, currently we have:

  • Author (2020). Buch (in German). {{cite book}}: |author= has generic name (help)
  • Autor (2020). "Kapitel". In Editor (ed.). Book (in German). {{cite book}}: |editor= has generic name (help)
  • Autorin (2020). "Artikel". Journal (in German). 3: 1–20.

The first is fine, but in the last two "(in German)" should be moved forward, after the chapter or article. Kanguole 11:50, 9 August 2020 (UTC)

Recently discussed here; see particularly my comments. --Izno (talk) 11:59, 9 August 2020 (UTC)
It seems there was substantial support for putting the annotation after the title of the item, with a few in favour of putting it at the end. Either would be better that the current practice of placing it after the name of the book, journal or series, which may be in several languages. But then the discussion got derailed onto formatting of multiple parentheticals. Kanguole 14:12, 9 August 2020 (UTC)
The conclusion you should draw is that the problem is not easy because of the paranetheticals. --Izno (talk) 14:47, 9 August 2020 (UTC)
Yeah, Kanguole summed it up well. While I have a preferences for moving it at the end (to avoid creating new problems), moving it after the most-specific title would have my support as well (but the parenthetical issues this creates would need more investigation IMO - some of them seem to be acceptable, whereas others just look too distracting to me - would be like trading one shortcoming for another).
--Matthiaspaul (talk) 16:19, 9 August 2020 (UTC)

trans-title= splits PDF format indication

In the following example, the "(PDF)" format designation comes after the translated title, which looks odd because the PDF symbol is displayed after the foreign language title:

Beskorovainyi, Vladimir V.; Soboleva, Elena V. (2010). ИДЕНТИФИКАЦИЯ ЧАСТНОй ПОлЕЗНОСТИ МНОГОФАКТОРНЫХ АлЬТЕРНАТИВ С ПОМОЩЬЮ S-ОБРАЗНЫХ ФУНКЦИй [Identification of utility functions in multi-objective choice modelling by using S-shaped functions] (PDF). БИОНИКА ИНТЕЛЛЕКТА [Bionics of Intelligence] (in Russian). Vol. 72, no. 1. Kharkiv National University of Radioelectronics. pp. 50–54. ISSN 0555-2656.

There are several potential ways to solve this:

  1. Include the translation in the link - undesirable because the translation does not actually belong into there.
  2. Move the (format) designator in front of the translation - undesirable because it looks out of place there
  3. Move the PDF symbol after the translation - undesirable because it also serves as "external link" indicator, also not sure if this is technically possible
  4. Suppress the PDF symbol and replace it by the normal "external link" symbol. Do we really need the PDF symbol, anyway? (Do we support any other file types with special symbols?)

Ideas? --Matthiaspaul (talk) 14:28, 20 June 2020 (UTC)

#4 is possible. Yes, other file types do have special symbols if the URL is a certain way and file type. PDF is understandably the most common. Because I have the link handy for Modern skin, the stylings applied to the others are in main.css. The other skins have similar rules, if not exactly the same. (See also phab:T225430.)
#3 is technically possibly. It would require including the trans-title in the link. (See also prior discussion.) If we do not want a sea of blue on this route, that is also technically possible but it would require an inaccessible design choice (to wit, making the link for some part of the title + trans-title not blue).
I would favor #2 if there is a consensus that this needs to change. It's puzzling that you think this undesirable given our recent discussions on parentheses stacking... ;) --Izno (talk) 14:59, 20 June 2020 (UTC)
Thanks for the links, Izno.
Well, I don't like #2, because it separates the actual title and the translation too much. To me, they belong together logically and therefore should not be separated - just like the format symbol and "(format)" text should be displayed in one location. To me, title information is far more important than format information, therefore, format information should not be inserted in the middle of title information, and in particular not given in two places.
Therefore, of the given choices, I would prefer #1 (which implies #3), that is, back to the old 2017 behaviour. Although I am not particularly fond of the potentially resulting long blue link labels, they would be of only minor concern to me (display cosmetics) - at least, they are logical.
For completeness, another solution would be to swap title and trans-title, but I don't actually suggest this, because I think the actual title should be displayed before the translation.
--Matthiaspaul (talk) 16:21, 20 June 2020 (UTC)
@Matthiaspaul: I've corrected the citation formatting above (but not in a way that affects the topic of this discussion). I hope you don't mind. Glades12 (talk) 07:03, 13 July 2020 (UTC)
Good to know that we meanwhile support |script-*= and |trans-*= parameter variants for them. I've changed it to |magazine=, though - they describe themselves as a magazine rather than as a journal. |work= is too unspecific. I use |work= only when none of the more descriptive parameters applies (typically with {{cite web}} or {{cite book}}, rarely with {{cite journal}} or {{cite magazine}}). --Matthiaspaul (talk) 10:22, 13 July 2020 (UTC)
There would be yet another way how this could be solved: Given that providing the PDF icon and a "(PDF)" text is redundant, we could simply suppress the "(format)" text if it resembles one of the external link types recognized and indicated by specific icons. If |format= is used to specify something different, it would be displayed as before, but then the icon and the text would not be redundant and therefore look much less out of place than now. --Matthiaspaul (talk) 18:12, 20 July 2020 (UTC)
It is not a given that the PDF icon and a "(PDF)" text is redundant. The pdf icon is rendered by MediaWiki as a css background-image property (MediaWiki:Common.css). Because it is not rendered from an html <img>...</img> tag, it does not support the alt= attribute. In cs1|2, the automatic |format=PDF is a way to notify screen-reader-users that the source is a pdf file. That functionality should not be degraded.
Trappist the monk (talk) 18:56, 20 July 2020 (UTC)
I agree, accessibility is important. Still, there are potential remedies for this as well:
Instead of completely muting the "(format)" text when it would be redundant because of the icon, the text could then be made invisible to normal users, but left readable for screen-readers only:
Or, the global link decoration could be disabled and the PDF icon be displayed locally (as image, and with alt= text).
--Matthiaspaul (talk) 22:57, 20 July 2020 (UTC)
Well, I proposed various ways how to possibly solve this. If they are undesirable, I think, per Izno's offer in the old discussion we should switch back to the 2017 behaviour (basically item #1 in the list). It might be a bit blueish at times, but at least it is logical.
--Matthiaspaul (talk) 11:32, 10 August 2020 (UTC)
I was referring you to the discussion where in fact I implemented the newer behavior. I am not interested in returning to the old behavior solely for this concern, and given the general lack of feedback, I'm not sure anyone sees this as a strong concern at this time. --Izno (talk) 20:40, 10 August 2020 (UTC)

How to disable the link?

There's a few links I've seen in references to old webpages with valid archive URLs of what the site looked like in 1997, but there's malware-downloading squatters at the URL now. Is there a way to suspend a link to the site in this template? Or should the URL just be replaced directly with the archive link in such cases? SnowFire (talk) 05:53, 10 August 2020 (UTC)

@SnowFire: If you add |url-status=unfit to the citation, the original URL will not be linked. Read more at Template:Cite web/doc. -- John of Reading (talk) 06:07, 10 August 2020 (UTC)