This is an archive of past discussions about Help:Citation Style 1. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.
{{Cite book}} includes an ASIN parameter. The documentation says not to use this when other identifiers are available, but this is widely abused. Example: [1] - all three instances here also had an ISBN. I think the ASIN parameter should be deprecated - it is a single-vendor ID and including it is an implicit promotion of Amazon. I have no problem with Amazon, but Wikipedia is not here to drive traffic to their sales pages. This parameter should be deprecated. Guy (Help!) 08:27, 9 June 2018 (UTC)
I don't actually see why, as parameters that encourage linking to single-vendor sales pages are actually antithetical to Wikipedia's core values. Guy (Help!) 08:34, 9 June 2018 (UTC)
That's an argument against newly adding such a parameter, not for removing a long-standing supported parameter that's in wide use (whether we like it or not) from a template that's currently in use on over 3 million articles (whose editors therefor have a legitimate interest in this issue). There are also valid arguments for keeping the parameter (that I don't find them persuasive does not make them invalid), so it's by no means a foregone conclusion which way the community will fall on this. --Xover (talk) 08:54, 9 June 2018 (UTC)
The current wording is sufficient to justify removing an ASIN value if other identifiers are present. If no other identifiers are present, just removing it would make the reference harder to identify. Of course one could add a different identifier and then remove the ASIN value. Kanguole08:57, 9 June 2018 (UTC)
Periodically I wonder if the maintenance category Category:CS1 maint: ASIN uses ISBN should be changed to an active error message. With this topic, I now wonder if we should disable |asin= display when the cs1|2 template also has a valid |isbn= assignment because amazon.com can be reached through Special:BookSources. At the same time we could categorize such templates into a new category Category:CS1 maint: ASIN ignored or even, perhaps, Category:CS1 errors: ASIN ignored.
That certainly seems eminently sensible and practical to me. I predict vocal minorities appearing for an active error message for this though. --Xover (talk) 11:54, 9 June 2018 (UTC)
In DeRisi, S; Kennison, R; Twyman, N (November 2003), "The what and whys of DOIs", PLOS Biology, 1 (2): E57, doi:10.1371/journal.pbio.0000057, PMC261894, PMID14624257, the alignment of the icon with the text really isn't great: (see [2]).
I'm going test the following on several skins, see where that gets us.
Code for things to be aligned in different skins
Version
Cologne
MinervaNeue
Modern
Monobook
Timeless
Vector
old
PMC1
PMC1
PMC1
PMC1
PMC1
PMC1
new
PMC1
PMC1
PMC1
PMC1
PMC1
PMC1
I came up with the above. Testing on all skins on desktop on Firefox. The alignment isn't 100% perfect in all cases, but it's always an improvement. Headbomb {t · c · p · b}17:03, 8 June 2018 (UTC)
I'm viewing this table using the monobook skin. Under it, the "new" MinervaNeue and Monobook columns have much larger lock icons, out of proportion to the text font, and worse aligned. It doesn't look like an improvement to me. —David Eppstein (talk) 17:56, 8 June 2018 (UTC)
@David Eppstein: that's because you're using the Monobook skin. You need to look at the Monobook column. If you had MinervaNeue, then the MinervaNeue column would look best. The idea here is that maybe we can implement something that changes with the skin (either in the template, or in the skin directly). Headbomb {t · c · p · b}23:04, 8 June 2018 (UTC)
Actually, I uploaded the wrong version from my sandbox. Things should be fixed now, although again you need to look in the column for the relevant skin. Headbomb {t · c · p · b}23:15, 8 June 2018 (UTC)
Perhaps you didn't notice, but my initial comment did include looking at the matching column to the skin I was using, and that that specific combination did not look good. In any case, after your update the monobook column (in monobook view) now looks the right size, and better aligned than before (still maybe 1 pixel below the baseline, but it was more like 3 before). —David Eppstein (talk) 00:02, 9 June 2018 (UTC)
Yes, I uploaded the wrong version initially, and I skipped over the second 'monobook'. Thought you were complaining about mostly MinervaNeue under Monobook, which didn't make a whole lot of sense. Things are fixed now though. Headbomb {t · c · p · b}00:10, 9 June 2018 (UTC)
I don't think that there is much to be done here about this issue. Module:Citation/CS1 cannot know the user's preferences so cannot adjust the display to suit the user's preferred skin. This is because the wikisource is rendered into html and then cached. The cached html is the page that gets served to readers. For logged-in readers, preferences appear to be added to the base html before the page is served to them. Presuming that is the case, we might create a css class for the access-signal images to be added to the appropriate skin css pages so that the locks will have appropriate size and vertical positioning. Failing that, we could do the same and publish appropriate css so that users could tweak their own user custom.css or skin.css pages.
For vertical positioning, the square bracket characters and the pipe character ([|]) illustrate, I think, the descender height to cap height limits of a font. The access-signal image should fit within those bounds. The 9px size was chosen because the image fits more-or-less correctly when using the default skin, Vector. I have added brackets to the table above to facilitate this comparison.
CSS classes are likely the way to go. Also I removed the brackets, because alignment isn't based on how they fit into [], but rather with the line height in general (which can be seen when you highlight the text + image together), e.g. [] (monobook, see [3]), or PMC1 [] (vector, see [4]). Headbomb {t · c · p · b}13:39, 9 June 2018 (UTC)
Perhaps the defining vertical height and position should be the PDF icon. On my browser (latest Chrome, win 7), this looked the same in vector and monobook:
{{cite web
|url=http://jfklibrary.org/
|title=Home - John F. Kennedy Presidential Library & Museum
|accessdate=20 October 2009
|deadurl=yes
|archive-url=https://web.archive.org/web/20090429042056/http://jfklibrary.org/
|archive-date=29 April 2009
|df=dmy}}
{{cite web|accessdate=20 October 2009|archive-date=29 April 2009|archive-url=https://web.archive.org/web/20090429042056/http://jfklibrary.org/|df=dmy|title=Home - John F. Kennedy Presidential Library & Museum|url=http://jfklibrary.org/}}
Part of the internationalization changes applied to the module suite at this last update, included code that translates parameter enumerators from the local language digits, which Lua may not understand, to western digits that Lua does understand. What I didn't see is that the translation changes the implicit positional parameter 'name' from a number type to a string type. So ...|something|... gets translated to ...|1=something|... where the 1 is treated as a parameter name just like title is the parameter name in |title=something.
{{Cite book |title=Title |something |author1=Brown |author2=Red |author3=Orange}}
Brown; Red; Orange. Title. {{cite book}}: Text "something" ignored (help)
Thanks for finding that. This weekend I have edited most pages in unnamed-parameter category for Unknown "|1=" but will be much easier to pinpoint again as: Text "volume34" ignored. I hadn't realized how seeing the ignored Text is much, much easier when fixing long cites. -Wikid77 (talk) 17:56, 10 June 2018 (UTC)
Speech
The documentation for {{cite speech}} provides the following for the type parameter: "Provides additional information about the media type of the source; format in sentence case. Displays in parentheses following the title. Defaults to Speech." This doesn't appear to be the case, however:
Halliday, Fred (2008). International Relations in a Post-Hegemonic Age(PDF) (lecture). Valedictory Lecture as Montague Burton Professor of International Relations. London: London School of Economics and Political Science. Retrieved 10 June 2018.
CS1 error categories show as having subcategories, but I don't see them
I am seeing five of the CS1 error categories as having subcategories in their short listings on the Category:CS1 errors page, but when I click the triangle to fold down the category list, I see "nothing found". When I open the category page, I do not see any subcategories. This has been happening for at least a few weeks now; I was hoping it would resolve itself. I have tried purging both pages, to no avail.
I don't think that this problem can be laid at the feet of cs1|2. The only categories that have 'official' subcategories are those that belong to Category:CS1 maint: Extra text (each of the subcategories declare themselves to be a member of CS1 maint: Extra text). I recall seeing categories listed as you describe (don't remember if their triangle was active or not) but regardless the included category was properly listed and, on the category page, sure enough, there was a cs1|2 citation with an error. Perhaps raise the issue at WP:VPT?
As the title suggests, I want to know what would the SFN style be for Cite AV media? Is there even an SFN option for that temptlate? Armegon (talk) 05:59, 13 June 2018 (UTC)
THANK YOU SO MUCH!!! IT WORKS!! But I tried that before and it didn't work but now it's working? Any idea what I was doing wrong? Armegon (talk) 20:37, 13 June 2018 (UTC)
@DISEman: Right now, the articles identified in that search link are emitting a trivial error to correct. The error is that they have extraneous text in the editor field, which is because the templates are using |last= to represent an editor rather than |editor-last=. The correction you would need to make is this one across 2000 articles or so. Are you familiar with how AWB works (do you have permission to use the tool--you can probably get it trivially)? With regular expressions? --Izno (talk) 13:41, 14 June 2018 (UTC)
Wouldn't it be fairly easy to check that urls start with appropriate protocols? http(s)://, ftp://, etc... ? Headbomb {t · c · p · b}13:43, 14 June 2018 (UTC)
Module:Citation/CS1 function is_scheme() returns true for |url=ttp://www.racialjusticeproject.com/wp-content/uploads/sites/30/2012/06/NYLS-Food-Deserts-Report.pdf because ttp complies with Uniform Resource Identifier (URI): Generic Syntax (std66) §3.1, which defines the sequence of characters that form a scheme name. I chose to do it this way because standards are less likely to change than the list of registered schemes at IANA so maintenance would be easier. Were there thousands of these kinds of errors, it might be worth changing the code to use the list of schemes from IANA but, I've just fixed 25 of the 27 found by this search (the two that I didn't fix are on the spam blacklist)
I thought this was the rationale. It's reasonable that it was implemented like so to begin with. I wouldn't be against at least adding the permanent registered schemes and subsequently providing a suggested (like our "saw autor; suggest author" suggestions) change when the scheme looks like but is not one of those on list. Or we can just do all of them. Or leave it as is. I have no strong feeling on the matter--just seems like it might be a reasonable check for validity. --Izno (talk) 19:09, 14 June 2018 (UTC)
For the record, I was not suggesting that we create and maintain a list of acceptable prefixes; I was merely suggesting a sort of layperson's specification that would guide changes to the module. Given that there were only 27 such errors (I find only 53 in all namespaces combined), this might be a better job for something like Wikipedia:WikiProject Check Wikipedia. – Jonesey95 (talk) 01:59, 15 June 2018 (UTC)
WP:CHECKWIKI is slow to update. Tracking categories + error messages lets errors be fixed when they arise, so I prefer that option. (Not that a new CHECKWIKI thing couldn't be created, parallel efforts are good.) Headbomb {t · c · p · b}01:23, 18 June 2018 (UTC)
Date when the original URL was archived; do not wikilink
”
This sentence sounds to me like referring to: (a) the date on which a webpage was cached on way-back-machine, etc; or (b) the date on which the archive-url was added (i.e. date of the User's edit). I feel it is (a) meaning, but I think it necessary to clarify. Let me know what; thank you! -- SzMithrandir ❈ Ered Luin ❈05:02, 14 June 2018 (UTC)
OK then; maybe revise the verse? "Date when the original URL was archived (as recorded by the archiving website); do not wikilink" ? -- SzMithrandir ❈ Ered Luin ❈18:52, 14 June 2018 (UTC)
Ered Luin - The sentence your quoting above is from the TemplateData section, and it is indeed ambiguous. This came up recently, and the main documentation was changed to read "Archive-service snapshot-date" to clarify it's the service snapshot-date not the user-entry date. The TemplateData documentation should be changed to say archive-service snapshot-date. -- GreenC04:40, 18 June 2018 (UTC)
The template docs say that it's possible to use a combination of month= and year=, but I tried this and it said that the month is an unknown parameter. Example:
{{cite report|url=https://www.gov.il/BlobFolder/news/bus_competition_program/he/Competition%20program%20buses.pdf|title=תכנית תחרות ענף התחבורה הציבורית באוטובוסים 2030-2018 שנים|trans-title=Competition Plan for Bus Public Transportation for Years 2018–2030|publisher=[[Israel Ministry of Transport]]|year=2018|month=June|accessdate=June 21, 2018|language=he}}
But the purpose of a citation is to help readers find the resource being cited. So I think it's only appropriate to credit the illustrator in the citation if the illustrations are relevant to the citation. —David Eppstein (talk) 18:11, 23 June 2018 (UTC)
Yes, when listing an author's books on an article about the author, credits for the illustrator seem appropriate, because in that case it's someone the author worked with to produce the book (rather than an irrelevant detail about a source for a claim in an unrelated article). —David Eppstein (talk) 19:21, 23 June 2018 (UTC)
This is an undocumented parameter. Doesn't seem to be doing much either. Somehow related to date format? Headbomb {t · c · p · b}13:15, 29 June 2018 (UTC)
What do you mean undocumented? See, for example, here. And it does work:
{{cite book |title=Title |date=2018-06-29 |df=dmy}} → Title. 29 June 2018.
Well it's not documented on Help:CS1. And I suppose I mostly saw that usage on date formats that already matched the |df= output. Headbomb {t · c · p · b}16:06, 1 July 2018 (UTC)
Of course not, and it shouldn't be. If you want template parameter documentation, see the template documentation. H:CS1 should hold documentation about the style and supplementary explanatory text; it should not contain exact copies of the template documentation.
Yeah, I've seen a lot of cs1|2 templates where all dates in the template source match the |df= setting. When that's the case, I remove |df=.
H:CS1 should hold documentation about the style and supplementary explanatory text; it should not contain exact copies of the template documentation. Huh? I've always used this page for exactly that, especially since this templates were consolidated to the module... --Izno (talk) 17:24, 1 July 2018 (UTC)
Then, I would guess that you haven't needed H:CS1 for much template parameter documentation. There are, I think, three transclusions of parameter documentation from {{Citation Style documentation}} (csdoc) into H:CS1:
If you look at csdoc, which is the master documentation template for all of the cs1|2 parameters, you will see that it holds a lot more information than the three transclusions in H:CS1. Because there are quite a few differences in parameter operation that are dependent on the template of interest, the best place for template parameter documentation is the template's own documentation.
I examined a report at Wikipedia:Help desk#DOI's not connecting? For example, {{cite encyclopedia|title=Calcium–Ammonia|author=Edwin M. Kaiser|encyclopedia=Encyclopedia of Reagents for Organic Synthesis|year=2001|doi=10.1002/047084289X.rc003}} produces:
I don't think anything has changed on the CS1 template end, but I could be wrong. {{doi}} appears to be broken as well. I sent an e-mail to the doi.org people. – Jonesey95 (talk) 04:27, 3 July 2018 (UTC)
This is reader impacting, so yes should be done rapidly then monitored. The hour wait for comments should be fine. — xaosfluxTalk13:06, 3 July 2018 (UTC)
Implemented. Remember that articles are cached so any dois that appear 'broken' may not actually be broken; null edits should fix those dois.
It appears to have been a temporary issue at doi.org. The links with %2F are now working again, e.g. https://doi.org/10.1002%2F047084289X.rc003 from my first post which was broken at the time. The modules are used in four million pages and the current versions seem to work so maybe we should just leave them as they are in case doi.org stops supporting %2F again. PrimeHunter (talk) 16:31, 3 July 2018 (UTC)
I have removed the special case code from the sandbox because special case code is a bad thing, but will leave the live version alone unless there is an indication that it is causing problems. At the next update, the special case code will be removed from the live module.
Specifying a title via script-title results in the link being placed as a [1] in front of the title. Is this the desired behaviour? I'm not sure if it's just my memory, but I don't recall seeing this before. --Paul_012 (talk) 09:38, 22 May 2018 (UTC)
If you put a romanized title in |title= (which corresponds to the recommendation of style guides), then the link will be attached to that. Kanguole10:25, 22 May 2018 (UTC)
...in adding a "last-author-and" option, modeled on the "last-author-amp" option, for those who think that the use of an ampersand instead of "and" is too informal for an encyclopedia? Beyond My Ken (talk) 06:58, 5 July 2018 (UTC)
Sure, in that I don't like the lazy "&" either. But I think it would be preferable just to eliminate |last-author-amp=, and have a consistent format. — SMcCandlish☏¢ 😼 07:42, 5 July 2018 (UTC)
Add parameter archive-chapter-url or suitable synonym
In cases where we have values for both |url= and |chapter-url= but we need to use an archived copy—particularly of the latter—there is no current way to indicate that the archive link relates to the Chapter not the Book as a whole.
I have just seen a case where the Book url is still active but the Chapter url is not, which might complicate things somewhat, I don't know.
What should be my recourse in such a situation and would it help to have this extra parameter?
TIA HAND —Phil | Talk15:23, 9 July 2018 (UTC)
When it is appropriate for Module:Citation/CS1 to apply the url held by |archive-url= to a title, it is applied to the most specific title in the cs1|2 template. So, for your example when the template has both |url= with |title= and |chapter-url= with |chapter= (or any of the several aliases of these), Module:Citation/CS1 applies |archive-url= to the title held by |chapter= (or alias). I think that this is a relatively rare case (someone might do some research and prove me wrong). We might, if there is sufficient call to do so, reword the archive static text so that it names the chapter-alias parameter when both |url= and |chapter-url= (or alias) is 'dead'.
Change the word "forth" to "fourth" in the 3 instances where "forth" is used instead of "fourth". These three instances are found in the "last name 4", "first name 4", and "author link 4" sections in the template parameters chart under the TemplateData header Mc mccullough (talk) 18:28, 10 July 2018 (UTC)
The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review. No further edits should be made to this section.
The result of the move request was: no consensus to move the modules to the proposed titles at this time, per the discussion below. Dekimasuよ!17:48, 12 July 2018 (UTC)
This seems like a good idea in theory, but this move may have unintended consequences. Let's make sure to think it through. Is there a reason that you have not proposed moving the associated sandbox pages, which are an integral part of these modules? – Jonesey95 (talk) 04:10, 29 June 2018 (UTC)
No, I just didn't feel like listing every single page. Of course the /sandbox, /doc, and talk pages will be moved -- that's usually assumed. The only reason I listed the subpages at all was to work around a bug in the RM template infastructure. {{3x|p}}ery (talk) 13:36, 29 June 2018 (UTC)
Oppose. The suffix "/CS1" is short, not verbose as compared to "/CiteStyle1" or such. I chose the naming as "Citation/CS1" to allow separation of cite styles, as "wp:Citation Style 1" separate from other potential styles, specifically at that time CS2, but now could allow a future "CS3" etc. For example, I have pondered automatic parsing for simple cites, where a user enters {cite_text} "John Doe, May 3, 2015, My Book, Chapter 7: Later Events, page 132, link http..." and a Lua "module:Citation/CS3" could parse that into a cite similar to CS1 {cite_book} to allow free-form cites for simple citations, such as new users or young children learning to use source citations. As a separate module /CS3, it could be expanded every few days to better parse free-form cites, without triggering the reformat of 3 million pages using /CS1. -Wikid77 (talk) 13:08, 1 July 2018 (UTC)
Wikid77 please do get consensus for the free-form as I believe it would be a recipe for disaster. Working daily with citations with my bot, the amount of garbage created even with strict key=value pairs is amazing. A free-form system would likely create even more garbage and be impossible to fix via bot in many cases, creating an ever growing backlog that exceed manual efforts ie. degrade the project over time. -- GreenC13:43, 1 July 2018 (UTC)
Oppose. I agree with Wikid77 that editors are free to introduce a different system of citation templates in the future, and retaining the "/CS1" makes that a bit easier from a practical point of view, and also serves as a symbol, reminding everyone that CS1 has never been anointed as the one true Wikipedia citation style (see WP:CITEVAR).
In the same vein I take exception to Wikid77's post, which seems to imply that those who don't use citation templates of any sort are "new users or young children learning to use source citations". I would also caution that applying any sort of template to articles that currently have consistent citations that don't use templates, without seeking consensus on the article talk page, is contrary to WP:CITEVAR. Jc3s5h (talk) 13:27, 1 July 2018 (UTC)
Weak Oppose I also think it's fine where it is. If anyone ever gets around to making a "CS2" we won't need to rename anything to accommodate it. Also, there may be other things besides the cite template family calling this module that may break. I'm not really against the move, just not convinced of the utility of it. — AfroThundr (u · t · c)13:45, 6 July 2018 (UTC)
CS2 already exists in the form of {{citation}}--we just don't cover it on a separate page because it is almost exactly the same as CS1 (and in fact uses this module for formatting). --Izno (talk) 14:25, 6 July 2018 (UTC)
There is a third style of citations using templates: {{Harvard citation}} in conjunction with CS1 or CS2 templates. There is no cute three character symbol for this style yet, but maybe someday there will be. Jc3s5h (talk) 14:52, 6 July 2018 (UTC)
The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page or in a move review. No further edits should be made to this section.
Ordering of "publisher" parameter by 'cite news' template
@Doug butler:
For some time, along with other Australian users, I've been using the {{cite news }} template for citing articles in the National Library of Australia's Trove collection of 100 million historic newspaper articles, e.g. for the article Blessing of the Fleet:
{{cite news |url=http://nla.gov.au/nla.news-article69884640 |title=Blessing the Fleet |newspaper=[[The Advocate (Tasmania)|The Advocate]] |location=Burnie, Tas. |date=2 February 1954 |accessdate=20 November 2012 |page=2 |publisher=National Library of Australia}}
At the time it worked fine. It used to give:
"Blessing the Fleet" The Advocate. Burnie, Tas. 2 February 1954. p. 2. National Library of Australia. Retrieved 20 November 2012.
Now I suddenly find that the order of the parameters in the output has changed, giving:
"Blessing the Fleet" The Advocate. Burnie, Tas.: National Library of Australia. 2 February 1954. p. 2. Retrieved 20 November 2012.
The "publisher" parameter now appears immediately after the newspaper title, instead of after the details of the original publication date and page number, and before the retrieval date. How can this be fixed? Cheers, Bahudhara (talk) 02:14, 16 July 2018 (UTC)
Unless the National Library of Australia is the organization that originally published that newspaper, it should not be listed as publisher. Use |via= instead:
{{cite news |url=http://nla.gov.au/nla.news-article69884640 |title=Blessing the Fleet |newspaper=[[The Advocate (Tasmania)|The Advocate]] |location=Burnie, Tas. |date=2 February 1954 |accessdate=20 November 2012 |page=2 |via=National Library of Australia}}
"Blessing the Fleet". The Advocate. Burnie, Tas. 2 February 1954. p. 2. Retrieved 20 November 2012 – via National Library of Australia.
Are you sure? I am highly skeptical that publication |date= would ever have been placed between |location= and |publisher= (as illustrated by your first example) because these latter two are intended to be paired (the colon separator is unique to these two parameters). To see what the historic renderings actually looked like, I went to archive.org and looked at a handful of archives of Blessing of the Fleet. I have copied here the raw text of your example citation from those archived pages at these dates:
2014-07-11:
Stanley, Tasmania 1950's "BLESSING THE FLEET.". Advocate (Burnie, Tas. : 1890 - 1954) (Burnie, Tas.: National Library of Australia). 2 February 1954. p. 2. Retrieved 20 November 2012.
2015-03-20:
Stanley, Tasmania 1950's "BLESSING THE FLEET.". The Advocate (Burnie, Tas.: National Library of Australia). 2 February 1954. p. 2. Retrieved 20 November 2012.
2016-09-11:
Stanley, Tasmania 1950's "BLESSING THE FLEET.". The Advocate. Burnie, Tas.: National Library of Australia. 2 February 1954. p. 2. Retrieved 20 November 2012.
2017-05-12:
Stanley, Tasmania 1950's "BLESSING THE FLEET.". The Advocate. Burnie, Tas.: National Library of Australia. 2 February 1954. p. 2. Retrieved 20 November 2012.
current article (at the time of this writing):
Stanley, Tasmania, 1950s "Blessing the Fleet". The Advocate. Burnie, Tas.: National Library of Australia. 2 February 1954. p. 2. Retrieved 20 November 2012.
For this citation, it looks to me like the date has always followed publisher. As it should.
I've seen (extensively) at The Hunger Games (film) and (rarely) at other articles some markup lile this: |title={{-'}}The Hunger Games' Review. Is this okay or not okay for the resultant COinS metadata? It seems like a lame idea anyway; it should just be converted to italics per MOS:CONFORM: |title=''The Hunger Games'' Review. (The purpose of the {{-'}} template is to kern the single quote away from the surrounding double quote for legibility.) — SMcCandlish☏¢ 😼 06:27, 16 July 2018 (UTC)
cs1|2 does kerning internally without the need for those templates:
Can you fix the date formatting please? It's been this way for years:
If Source Date is "2017", it's fine.
If Source Date is "2017-09-15", it's fine
If Source Date is "September 2017", it's fine
If Source Date is "2017-09" (which is generated automatically by the citation tool!) then it complains "Check date values...".
This is broken; it should accept any ISO 8601 date (especially if it's generating them itself from the DOI!) — Omegatron (talk) 13:14, 14 July 2018 (UTC)
See MOS:BADDATE, where "2001-07" is listed as one of the unacceptable date formats because it is ambiguous. It could mean "July 2001", or it could mean "2001–2007", so you need to use a different format.
cs1|2 accepts the date formats that are permitted by MOS:DATE. When MOS:DATE changes, so shall cs1|2; arguing the point here will do you no good. If you believe that MOS is in the wrong, I would recommend that you raise the issue at WT:DATE. But, this is not a new topic so a perusal of that talk page's archives would not go amiss.
I don't object to the task, but CitationCleanerBot has been making a lot of some mistakes. I recommend a new BRFA and a release of the source code so that the community can help you find and fix these bugs. – Jonesey95 (talk) 15:07, 18 July 2018 (UTC)
Code is too variable to be useful for review, I tweak it on a per-run basis. Most (if not all) of the errors happen when encountering entirely new scenarios, or leaving on a setting that was meant to be disabled by accident, or T159958. But it's pretty easy to file a BRFA for this one though, since it's a bit different than simply cleaning up what is already there. Headbomb {t · c · p · b}15:17, 18 July 2018 (UTC)
{{Cite magazine}} does not include rft.volume or rft.issue as promised in its doumentation. I ran into this issue at Moonrise, Hernandez, New Mexico with refs 17 and 15. Simplified, they are
di Cicco, Dennis (November 1991). "Dating Ansel Adams' Moonrise". Sky & Telescope. Vol. 82, no. 5. pp. 529–33. ISSN0037-6604.
Callahan, Sean (January 1981). "Short Takes: Countdown to Moonrise". American Photographer. Vol. 6. pp. 30–31. ISSN0161-6854.
Both are mtx%3abook rather than mtx%3ajournal (rft.btitle versus rft.jtitle). The first has wikimarkup in |magazine=, so maybe it could mess up, but the second example does not (it did have a |url= parameter that I removed).
Glrx (talk) 21:22, 25 July 2018 (UTC)
Incidentally, are there any user scripts or tools that parses and displays COinS here? It would be useful as a visual/manual sanity check when editing, and it might make user scripts that flag citation problems able to flag more issues intelligently. --Xover (talk) 08:13, 26 July 2018 (UTC)
CSS class for ref=none
The above foray into TemplateStyles and CSS reminded me of something I've been meaning to bring up here.
I have user script (User:Xover/HarvErrors.js, forked from User:Ucucha/HarvErrors.js; feel free to use it, but it reflects my personal ideosyncrasies so you may prefer the original even though it's unmaintained), to do some sanity checks on an article's citations: primarily by flagging short cites that point at a non-existant reference, and flagging full references that are not actually cited in the article. Like Ucucha's original it does this by looking at what ID's short cites link to, and then add a CSS class and an error message to the relevant short or full cite. Mostly works well, but falls down whenever the cite templates are used for non-ref purposes: typically in a list of works or Further reading section.
Would it be possible to make the CS1 templates output a unique CSS class for invokations with |ref=none? That would let me distinguish cites that are explicitly set to not have an ID from cites that merely omit |ref= and not flag these as errors. The class could of course be anything: cs1-ref-none for example.
Signalling various internal states and flags from the templates using CSS classes is also a good way to make them available to user scripts in general: every unique error or warning emitted today could beneficially be tagged with something like cs1-error-nnn. I'm sure there are other use cases, all boiling down to making it easy for user scripts (or Gadgets) to grab structured information about citation templates in an article).
While on the topic, why does only {{citation}} have |ref=harv built in them by default? This should be standard across all templates. Headbomb {t · c · p · b}12:54, 21 July 2018 (UTC)
No interest in this then? Not even anyone opposed to the idea? What if I tried to mock up an implementation in the sandbox? --Xover (talk) 08:01, 26 July 2018 (UTC)
According to this search, |ref=none isn't much used. This might explain the lack of interest in a change that would benefit one or only a handful of editors.
Oh certainly. Why would anyone use |ref=none now? It's just extra wikicode to no apparent effect. It's a chicken and egg thing. But I was kinda hoping that the editors who hang out here might see the value of being able to distinguish the absence of |ref= from an explicit |ref=none, in a way that lets user scripts like User:Ucucha/HarvErrors.js (or my fork of it at User:Xover/HarvErrors.js, or the ref checker someone over at FAC is working on, name escapes me at the moment and I'm too lazy to check) detect it. --Xover (talk) 15:48, 26 July 2018 (UTC)