Help talk:Citation Style 1/Archive 48
Permit |
version-of-record | not version-of-record | other |
---|---|---|
DOI, HDL, ISBN, ISMN, JSTOR, PMC, RFC, |
ARXIV, BIORXIV, CITESEERX, JFM, MR, OSTI, SSRN, ZBL | ASIN, BIBCODE, EISSN, ISSN, LCCN, OCLC, OL, PMID |
- USENETID included here for completeness though it is only properly supported by
{{cite newsgroup}}
- USENETID included here for completeness though it is only properly supported by
- Is this a correct categorization of these identifiers?
- —Trappist the monk (talk) 13:21, 22 August 2018 (UTC)
Version of Record[1] | Preprints[2] | Other[3] |
---|---|---|
DOI, ISBN, ISMN, JSTOR, LCCN, PMC, PMID, USENETID,[4] RFC | ARXIV, BIORXIV, CITESEERX, SSRN | ASIN, BIBCODE, EISSN, HDL, ISSN, OCLC, OL, JFM, MR, OSTI, ZBL |
|
- @Trappist the monk: Updated the table. Headbomb {t · c · p · b} 13:55, 22 August 2018 (UTC)
- Restored my original table as a point of comparison for when I can return to this topic later.
- —Trappist the monk (talk) 14:30, 22 August 2018 (UTC)
- @Trappist the monk: Updated the table. Headbomb {t · c · p · b} 13:55, 22 August 2018 (UTC)
- I have hacked Module:Citation/CS1/sandbox so that it emits an error message for the last three of the conditions I identified above:
{{citation/new |arxiv=1705.01263 |class=hep-ph |title=Title}}
– no error message;{{citation}}
used as a pseudo-cs2 version of{{cite arxiv}}
(has malformed title)- Title, arXiv:1705.01263 [hep-ph]
{{citation}}
: Unknown parameter|class=
ignored (help)
- Title, arXiv:1705.01263 [hep-ph]
{{citation/new |arxiv=1705.01263 |class=hep-ph |title=Title |journal=Journal}}
- "Title", Journal, arXiv:1705.01263 [hep-ph]
{{citation}}
: Unknown parameter|class=
ignored (help)
- "Title", Journal, arXiv:1705.01263 [hep-ph]
{{citation/new |arxiv=1705.01263 |class=hep-ph |title=Title |encyclopedia=Encyclopedia}}
- "Title", Encyclopedia, arXiv:1705.01263 [hep-ph]
{{citation}}
: Unknown parameter|class=
ignored (help)
- "Title", Encyclopedia, arXiv:1705.01263 [hep-ph]
{{citation/new |arxiv=1705.01263 |class=hep-ph |title=Title |chapter=Chapter}}
- "Chapter", Title, arXiv:1705.01263 [hep-ph]
{{citation}}
: Unknown parameter|class=
ignored (help)
- "Chapter", Title, arXiv:1705.01263 [hep-ph]
{{cite web/new |arxiv=1705.01263 |class=hep-ph |title=Title |url=//example.com}}
{{cite arxiv/new |author=Author |arxiv=1705.01263 |class=hep-ph |title=Title}}
– no error message because{{cite arxiv}}
and|class=
used properly- Author. "Title". arXiv:1705.01263 [hep-ph].
{{cite arXiv}}
:|author=
has generic name (help)
- Author. "Title". arXiv:1705.01263 [hep-ph].
- There is, I think a better way than the special exception code that I wrote for this (and special exception code is generally bad and should be avoided when possible).
|class=
is a member of thebasic_arguments
whitelist which makes it available to all cs1|2 templates. Because|class=
applies only to preprint sources, and only when|arxiv=
or|eprint=
is set, and because{{citation}}
does not render|title=
in the correct format without it also has a|work=
alias or a|chapter=
alias (both indicative of publication), I believe that there is no reason for{{citation}}
to act as a pseudo-cs2 version of{{cite arxiv}}
. Deleting|class=
from thebasic_arguments
whitelist will give the Unknown parameter ... error without the need for special exception code.
-
- While not discussed, and presumably not contemplated, there is a similar issue with
|biorxiv=
and|citeseerx=
where{{citation}}
will not correctly render preprints with these identifiers when|work=
or|chapter=
aliases are not set. Again,{{citation}}
should not be used as a pseudo-cs2 versions of the{{cite biorxiv}}
and{{cite citeseerx}}
templates. We have|mode=cs2
for that. - —Trappist the monk (talk) 14:52, 24 August 2018 (UTC)
- While not discussed, and presumably not contemplated, there is a similar issue with
there having been no further discussion, |class=
as a parameter accepted by all cs1|2 templates is deprecated. The special exception code in Module:Citation/CS1/sandbox is deleted.
—Trappist the monk (talk) 10:45, 15 September 2018 (UTC)
- I just recently noticed this change due to the deprecation error note showing up while editing the upcoming "Recent research" feature for The Signpost, Trappist the monk and Headbomb. I usually include the
|class=
parameter whenever also using|arxiv=
in {{cite journal}} or {{cite conference}}. With the deprecation now implemented, the error shows up in prior issues of "Recent research" where it is triggered. I can probably clean that up without much trouble, since I am the only one who added them as far as I am aware. I am posting here, however, because I noticed something that might be relevant and worthwhile to consider. Your input is appreciated.Specifically, I often come across arXiv citations being formatted using {{cite journal}}, likely because {{cite arXiv}} is a far more obscure template among the CS1 templates and because it is far more restricted in its parameters. Many editors may also not understand why it matters to use the correct citation template, or otherwise think {{cite journal}} is just the catch-all template one uses for scientific articles. I know the differences, but that is because I regularly cite in CS1, have spent many hours reading the documentation, and have experimented with the templates enough to understand them better than the documentation sometimes documents. That is likely not the case for some editors, especially those with only a basic grasp on MediaWiki markup.It is my understanding that|class=
has been deprecated in non-{{cite arXiv}} CS1 templates because the purpose of that parameter is to provide some indication of "the moderation involved with
" the preprint when citing "the preprint as a preprint
". Given that preprints are frequently cited as preprints using {{cite journal}} or some other non-{{cite arXiv}} CS1 template, does the current deprecation of|class=
conflict with the whole purpose of using the parameter?Lastly, I apologize for having not brought this up earlier. As I said above, I only recently discovered this occurred due to the deprecation error message and I do not usually check this page (but probably should do so more often). —Nøkkenbuer (talk • contribs) 20:11, 30 September 2018 (UTC)- This, I think is the only question that you asked:
Given that preprints are frequently cited as preprints using {{cite journal}} or some other non-{{cite arXiv}} CS1 template, does the current deprecation of
No. The cs1|2 templates are confusing; there are lots of them and there are even more parameters. The use of error messaging is one way to educate those who use these templates (because you know, even when it's good, no one reads the documentation – except perhaps you – and the cs1|2 documentation is only just marginally adequate). The purpose of|class=
conflict with the whole purpose of using the parameter?|class=
is not to support improper use of the cs1|2 templates but rather, to lend credence to cited preprints using the only template that we have for that purpose. For a long time I have believed that|journal=
should be a required parameter for{{cite journal}}
. That, to me just seems like a no-brainer. I did not get any traction with that idea when I last raised it. Imposing that requirement might addressarXiv citations being formatted using {{cite journal}}
.
- This, I think is the only question that you asked:
- —Trappist the monk (talk) 22:04, 30 September 2018 (UTC)
- Thank you for your input, Trappist the monk. It's entirely reasonable and I think justifies the deprecation; this change does not seem as such a loss to me now. —Nøkkenbuer (talk • contribs) 05:46, 1 October 2018 (UTC)
Work parameter and format of other parameters
The documentation says
When set,work changes the formatting of other parameters: [...] location and publisher are enclosed in parentheses.
Recently, making this edit, I observed that this does not seem to be the case. My citation was:
{{cite paper|url=https://fas.org/sgp/crs/natsec/R44137.pdf|title=Naval Station Guantanamo Bay: History and Legal Issues Regarding Its Lease Agreements|date=November 17, 2016|work=[[Congressional Research Service]]|publisher=[[Federation of American Scientists]]}}
Producing:
"Naval Station Guantanamo Bay: History and Legal Issues Regarding Its Lease Agreements" (PDF). Congressional Research Service. Federation of American Scientists. November 17, 2016.
Wtmitchell (talk) (earlier Boracay Bill) 08:57, 1 October 2018 (UTC)
- This rfc removed parentheses from the publisher rendering. I've tweaked the documentation.
- —Trappist the monk (talk) 09:46, 1 October 2018 (UTC)
Repeat linking of works/publications
Hello all, this is something I've wondered for awhile and have not been able to find a consensus/answers to, but I was curious as to whether or not a publication should be recurrently linked within the reference section of an article. In other words, for example, if ref. 1 of an article is Entertainment Weekly, is it necessary to re-link the publication in subsequent references from the same work? I've personally avoided this as I find it to be obtrusive when looking at the reference section as a whole (far too many Wiki links to the same publication), but this could be a biased perspective given that I am a frequent editor—it may prove useful for casual readers to have immediate linked access to the publication when hovering over individual footnotes as they read. I am unsure about how to handle this. Thank you. --Drown Soda (talk) 20:29, 29 September 2018 (UTC)
- Standard (i.e., not just Wikipedia) citation practice is that every source used ("cited", "referenced", etc.; the terminology here is quite confused) in an article should have exactly one "full citation", with all of the bibilogrpahic details as my be useful in finding and identifying the source. On Wikipedia these full citations are most often created using a {{cite xxx}} or {{citation}} template. The most common practice on WP is to drop them into a note (footnote) created using
<ref>...</ref>
tags in the text. But you may note that many articles will collect all these full citations into their own section.
- Your "
repeat linking
" question is commonly seen in the form of "how to 're-use' citations". There are two ways to do this. Most commonly seen at WP is the use of "named-refs", where a note – typically containing a full citation – is made to appear in more than one place. This implies having each full citation in its own note, and is what leads to those irksome strings of note links (e.g.: [1][7][27][15]...).
- In the rest of world there are many ways of citing a source more than once. The most common way is to use the last name of the author (or authors) and year of publication, to link to the full citation. The easiest way to do this on WP is with the {{harv}} family of templates. And that is all I have time for now. ♦ J. Johnson (JJ) (talk) 00:23, 30 September 2018 (UTC)
- @J. Johnson: your comments don't answer the OP's question as I read it at all. @Drown Soda: if multiple citations all come from the same publication, Entertainment Weekly is the name of the magazine/website being cited in footnote 1 and then cited in footnotes 3, 9 and 12, then I'd personally only wikilink to the article on the magazine in the first note and leave it unlinked in the others. Imzadi 1979 → 01:14, 30 September 2018 (UTC)
- Well, I read the question slightly differently, there being some ambiguity in the meaning of "works/publications". Yet another example of why I am often askng for more precision in what people mean. ♦ J. Johnson (JJ) (talk) 00:10, 2 October 2018 (UTC)
- @J. Johnson: I meant just that, as publisher/work are different fields in citation templates. The repeated wiki-linking of these was mainly what I was referring to. --Drown Soda (talk) 04:28, 2 October 2018 (UTC)
- The term "references" is best avoided as having too many possible meanings, which are rarely (ever?) specified. E.g., where you said "
subsequent references from the same work
", "same work" implies a single source, and "subsequent references" thus suggests repetition of a single full citation. Which, as I explained at the outset, is wrong. Okay, so what you really meant (I gather) is wikilinking of data, such as the name of a publication, name of the publisher, place of publisher or publication, name of a work ("Encyclopedia Brittanica"), author's name, etc., that shows up more than once in a set of full citations to different sources. Well, that is good question; see below. ♦ J. Johnson (JJ) (talk) 21:49, 2 October 2018 (UTC)
- The term "references" is best avoided as having too many possible meanings, which are rarely (ever?) specified. E.g., where you said "
- @J. Johnson: I meant just that, as publisher/work are different fields in citation templates. The repeated wiki-linking of these was mainly what I was referring to. --Drown Soda (talk) 04:28, 2 October 2018 (UTC)
- Well, I read the question slightly differently, there being some ambiguity in the meaning of "works/publications". Yet another example of why I am often askng for more precision in what people mean. ♦ J. Johnson (JJ) (talk) 00:10, 2 October 2018 (UTC)
- @J. Johnson: your comments don't answer the OP's question as I read it at all. @Drown Soda: if multiple citations all come from the same publication, Entertainment Weekly is the name of the magazine/website being cited in footnote 1 and then cited in footnotes 3, 9 and 12, then I'd personally only wikilink to the article on the magazine in the first note and leave it unlinked in the others. Imzadi 1979 → 01:14, 30 September 2018 (UTC)
- @Imzadi1979: Thanks--this was what I felt made most sense. It seems my question was misunderstood by several other commenters here. I've been on Wikipedia for years and know how to use citation templates, name them in the reference brackets, etc. My question had to do with wikilinking publications in citations more than one time (i.e. suppose an article references three different articles from The New York Times—do I wikilink The New York Times in each citation, or only the one that first appears?). Linking the publication in every single citation overwhelms the reference section in my opinion and results in excessive links, but as I said, I am not sure there has been a consensus on this among editors. --Drown Soda (talk) 01:40, 30 September 2018 (UTC)
- There was some discussion of this earlier this year at a venue marginally more appropriate than this one. --Izno (talk) 06:34, 30 September 2018 (UTC)
- The rough consensus I'm seeing out of these discussions is actually (surprisingly to me) to link everything, always and then modify that with common sense: publication location should normally not be linked by the same rationale that place names should generally not be linked in prose; dates and years should not be linked as with in prose; author names, publishers, and works should not be redlinked unless the relevant datum is fairly clearly notable; and so forth. I've been practicing that for a long time but with the expectation that someone would eventually jump down my throat for it; but the discussion linked above, and a previous discussion here, suggests that the rough consensus among the parts of the community participating in those discussions is mainly in favour of linking. There will be disagreements on details, certainly, and local consensus still decides for any given article; but I think the general guidance now is to link all the most important parameters (title, author, publisher, publication) that have Wikipedia articles, and to not redlink any of them unless the target is clearly notable. --Xover (talk) 07:38, 30 September 2018 (UTC)
- @Xover: I was wondering about consensus on it as well; my only hang-up is that it leaves the reference section full of multiple wikilinks to the same page, which is not acceptable in the body of the article. --Drown Soda (talk) 04:28, 2 October 2018 (UTC)
- @Drown Soda: The consensus I'm seeing in these discussions is that the references are not article prose and thus the usual concerns for OVERLINK do not apply. And I agree with that: "sea of blue" doesn't really matter in the references because it's a list of metadata, not prose that needs to be readable primarily. --Xover (talk) 08:17, 2 October 2018 (UTC)
- I generally agree with Xover. First choice would be to restructure the citation scheme so a work only appears once in the reference list. But if that seems too complex to the editors who maintain the article, the second choice would be to link it every time, because when the reader arrives at the reference list, the reader is only focused on the source that supports the claim of interest; the reader probably isn't going to read the entire reference list and so will not be aware the publisher is linked somewhere else. Jc3s5h (talk) 14:08, 2 October 2018 (UTC)
- @Drown Soda: The consensus I'm seeing in these discussions is that the references are not article prose and thus the usual concerns for OVERLINK do not apply. And I agree with that: "sea of blue" doesn't really matter in the references because it's a list of metadata, not prose that needs to be readable primarily. --Xover (talk) 08:17, 2 October 2018 (UTC)
- @Xover: I was wondering about consensus on it as well; my only hang-up is that it leaves the reference section full of multiple wikilinks to the same page, which is not acceptable in the body of the article. --Drown Soda (talk) 04:28, 2 October 2018 (UTC)
- Jc3s5h: it appears you are under the same misunderstanding I was. He wasn't asking about repeat citations of a given work, but duplicate wikilinking (to articles) of data (names of publications, etc.) that is used multiple times. I don't believe there is any "citation scheme" where one could (for instance) "reference" (cite?) the New York Times only once. But check out 2014_Oso_mudslide#References, where the articles from several newspapers are listed under the newspaper, and the name of the paper can be wikilinked independently of any of the included citations.
- I generally agree with Xover, except that I am usually too lazy to wikilink everything. ♦ J. Johnson (JJ) (talk) 21:59, 2 October 2018 (UTC)
- @J. Johnson: I wasn't quite sure what the OP was referring to. The various methods of completely combining citations, or using a mixture of short and full citations, can reduce, but not eliminate, the repetition of certain facts, such as Oxford University Press being a publisher, or that University Science Books is located in Mill Valley, California. Using these techniques for brevity can reduce the number of wikilinks, but not always reduce them to one wikilink per Wikipedia article. I personally do not routinely link publishers or publisher locations, but I might if the Wikipedia article adds information about a publisher or place that isn't common knowledge. (For example, from its name, many readers might not guess that Cooper Union is a college.)
- I generally agree with Xover, except that I am usually too lazy to wikilink everything. ♦ J. Johnson (JJ) (talk) 21:59, 2 October 2018 (UTC)
Archived title
Can somebody please create a CS1 maintenance error message for when the title of a citation template is "Archived copy
"? Since no webpage is named this, but we still have over 100,000 such hits (Special:Search/insource:/title\=Archived copy/). This should be tracked and worked on, to replace with the real webpage title, manually or with a bot. (t) Josve05a (c) 21:44, 23 July 2018 (UTC)
- Based on this edit (a sample size of one), it looks like you might want to file a bug with InternetArchiveBot. – Jonesey95 (talk) 00:22, 24 July 2018 (UTC)
"Archived copy" is standard wording used by multiple tools/bots in the same situation of not being able to determine the title, so it's easy to track with a search. If users will tackle it manually or with AWB by all means create a tracking category. Ideally it would be done by a specialized title bot since there are likely endless edge cases to deal with when extracting title data. -- GreenC 02:02, 24 July 2018 (UTC)
- I have added case-insensitive detection of this title to Module:Citation/CS1/sandbox and added a new maintenance category to Module:Citation/CS1/Configuration/sandbox:
{{cite web/new |url=http://www.numa.net/expeditions/u-21_1.html |title=Archived copy |access-date=2 November 2008 |archive-url=https://web.archive.org/web/20081227004917/http://www.numa.net/expeditions/u-21_1.html |archive-date=27 December 2008}}
- "Archived copy". Archived from the original on 27 December 2008. Retrieved 2 November 2008.
{{cite web}}
: CS1 maint: archived copy as title (link)
- "Archived copy". Archived from the original on 27 December 2008. Retrieved 2 November 2008.
- 'Archived copy' is not recognized as an 'invalid' title when
|archive-url=
is not set:{{cite web/new |url=http://www.numa.net/expeditions/u-21_1.html |title=Archived copy |access-date=2 November 2008}}
- "Archived copy". Retrieved 2 November 2008.
- —Trappist the monk (talk) 12:17, 30 July 2018 (UTC)
- @Trappist the monk: Looks good! Anyway to implement this live? (t) Josve05a (c) 18:10, 20 August 2018 (UTC)
@Trappist the monk: - it appears "Archive copy" is also being used. -- GreenC 12:31, 23 September 2018 (UTC)
- tweaked:
- "Archive copy". Archived from the original on 27 December 2008. Retrieved 2 November 2008.
{{cite web}}
: CS1 maint: archived copy as title (link)
- "Archive copy". Archived from the original on 27 December 2008. Retrieved 2 November 2008.
- —Trappist the monk (talk) 12:46, 23 September 2018 (UTC)
- ??? This is a web page citation. The particular web page has a title, all one has to do is look at the source:
<title>Story of the U-21 </title>
. Conveniently, this is also the cited web page's rendered heading. The documentation for {{cite web}} is clear on this (Template:Cite Web#Title). The fact that the encapsulating archive page has its own (html) title is irrelevant. The underlying archive is what is cited. The technical detail that this is an archived copy is handled elsewhere in the citation. The citation in question is not edited correctly, and "Archived copy" should not be used when the title is available. 108.182.15.109 (talk) 14:07, 5 October 2018 (UTC)- "All one has to do.." makes the assumption title data is clean, accurate and ready to be cut and pasted into a Wikipedia citation. There are all sorts of crazy things in the
<title></title>
. There was a title bot (forget name) that did this and left an inline comment the title was created by bot, and more often than not those titles need manual cleanup. For some reason the bot owner is no longer operating it. Point is, title bots are not trivial and require a fair amount of effort to watch over. It's beyond the scope of other bots and tools to individually create their own title bot routines, not even considering the network I/O overhead of polling each link when they might not otherwise need to. If you want to help by creating a title bot that would be awesome but not if it's pasting in title data blindly, it should be looking for edge cases and building up a system to detect and fix repeatable problems. -- GreenC 14:36, 5 October 2018 (UTC)- I think you misunderstood the point I was making. The cited citation is malformed. This has nothing to do with bots. Editors should be given the correct guidance: when the title of a webpage is not obvious, they should look at the source, and specifically search for the <title> element. Internet Explorer (the browser I am using right now) has a "Page" dropdown menu in the Command toolbar, that includes a "Properties" option. When you click this, the title of this page as I edit it ("Editing Help talk:Citation Style 1 (section) - Wikipedia") is right at the top. I'm not saying that IE should be used. But a diligent editor is supposed to look at this, just as they are supposed to look at a book's or journal's front and back matter for edition/copyright info, etc. etc. A citation with "Archived copy" as title should not be "fixed" to conform with cs1 presentation. It should be flagged so that editors are alerted that something is amiss. Because I think that an automated routine to fix this is more likely to mess things up. Another option is to substitute the (visible) top heading for the webpage's title, even if this is technically incorrect. Although this may not be the way pages are indexed (and therefore retrieved) by software looking for the webpage's metadata, it would be sufficient for humans looking for the page's data. 72.43.99.138 (talk) 14:57, 6 October 2018 (UTC)
- It's true that "Archived copy" doesn't flag or notify users to fix the missing title. Would you suggest a different wording, or red warning message, or populate a tracking category? -- GreenC 15:13, 6 October 2018 (UTC)
- I think you misunderstood the point I was making. The cited citation is malformed. This has nothing to do with bots. Editors should be given the correct guidance: when the title of a webpage is not obvious, they should look at the source, and specifically search for the <title> element. Internet Explorer (the browser I am using right now) has a "Page" dropdown menu in the Command toolbar, that includes a "Properties" option. When you click this, the title of this page as I edit it ("Editing Help talk:Citation Style 1 (section) - Wikipedia") is right at the top. I'm not saying that IE should be used. But a diligent editor is supposed to look at this, just as they are supposed to look at a book's or journal's front and back matter for edition/copyright info, etc. etc. A citation with "Archived copy" as title should not be "fixed" to conform with cs1 presentation. It should be flagged so that editors are alerted that something is amiss. Because I think that an automated routine to fix this is more likely to mess things up. Another option is to substitute the (visible) top heading for the webpage's title, even if this is technically incorrect. Although this may not be the way pages are indexed (and therefore retrieved) by software looking for the webpage's metadata, it would be sufficient for humans looking for the page's data. 72.43.99.138 (talk) 14:57, 6 October 2018 (UTC)
- "All one has to do.." makes the assumption title data is clean, accurate and ready to be cut and pasted into a Wikipedia citation. There are all sorts of crazy things in the
- ??? This is a web page citation. The particular web page has a title, all one has to do is look at the source:
Separators in |language=
parameter
When |language=
contains two values, in the output they are separated with " and "
.
{{cite book|title=Title |language=fr,de}}
- Title (in French and German).
When it contains three or more values the final two are separated with ", and "
.
{{cite book|title=Title |language=fr,de,it}}
- Title (in French, German, and Italian).
There is not an option to modify or translate the separators in Module:Citation/CS1/Configuration. However, it contains two local messages ['parameter-final-separator'] =
and ['parameter-pair-separator'] =
which would be useful in this case. Is it possible to enable these local messages in |language=
? I regularly update CS1 modules in el.wikipedia.
Αντιγόνη (talk) 19:06, 7 October 2018 (UTC)
- Thanks for pointing out that omission. Fixed in the sandbox using
cfg.messages['parameter-pair-separator']
:{{cite book/new |title=Title |language=fr,de}}
- Title (in French and German).
{{cite book/new |title=Title |language=fr,de,it}}
- Title (in French, German, and Italian).
- —Trappist the monk (talk) 19:38, 7 October 2018 (UTC)
- Thank you for your fast response, I would like to insist in using
['parameter-final-separator']
or equivalent syntax though. I omitted to mention earlier that in greek (el), perhaps in other languages too, comma is not placed before "and", not only in pairs but also in longer lists. Therefore, the correct output in greek would be:
- Thank you for your fast response, I would like to insist in using
{{cite book|title=Title |language=fr,de,it}}
- Title (in French, German and Italian).
- I think that
['parameter-final-separator']
or equivalent message would allow greater flexibility to satisfy both cases, with or without comma before "and", by modifing it accordingly.
Αντιγόνη (talk) 21:28, 7 October 2018 (UTC)- ok. done.
- —Trappist the monk (talk) 22:29, 7 October 2018 (UTC)
- I think that
"Dashes in the ISBN are optional"
They are hyphens, not dashes. Pleas correct. — Mikhail Ryazanov (talk) 09:41, 9 October 2018 (UTC)
- Can you show a live example of what you mean?
- —Trappist the monk (talk) 10:03, 9 October 2018 (UTC)
- The complaint was about the documentation (now fixed). Kanguole 11:07, 9 October 2018 (UTC)
Regressions: advice request
In Russian Wikipedia, {{cite journal}} is used mainly in translated articles. Its current ruwiki version is a slightly edited many-years-old version of the enwiki template. I was going to replace it with the current enwiki version based on the CS1 family of modules, but it turned out that along with many improvements it would cause some regressions. Here is a random sample of cite_journal transclusions in ruwiki; left — current ruwiki version, right — current enwiki version. As can be seen, there are 4 main issues:
- error regarding unrecognized language and tracking categories for sources in particular languages with mixed English-Russian names;
- "month" is ignored and emits an error;
- "access-date" requires "url" and emits an error;
- "coauthors" is ignored and emits an error.
The last point is particularly painful because the main problem with the current ruwiki version of this template is that it ignores parameters like first1, last1, etc. So we end up with not showing author lists when using either of the two versions (but in different cases).
Of course, it is the responsibility of the ruwiki community to deal with this issue. All I wanted to ask is an advice about the best way to deal with these regressions. Some bot run? Some config edits? Something else?
--colt_browning (talk) 12:30, 9 October 2018 (UTC)
- None of your primary issues are 'regressions', as in, unintended changes. All of them were deliberate. (I see some other deltas, such as quotation marks, that look like they are because you have not set up your configuration/styles modules all the way.)
- Templates with
|month=
and|year=
(if not also|day=
) can be botted to|date=
(as in,|date=(day) month year
). Others should probably be case-by-case fixes. - Many times this is due to a non-web resource, or a web-resource with a permanent ID of some sort (e.g.
|doi=
), having been accessed on that date, which is not the purpose of that parameter. Those cases can be botted. The others should be case-by-case cleaning. |coauthors=
is preferably split to|authorn=
or first/lastn. If that's a pain point (say your coauthors are separated inconsistently),|authors=
is also available.
- Templates with
- You ECd with me so my bullets refer only to the later 3. --Izno (talk) 14:05, 9 October 2018 (UTC)
- Thanks. I didn't mean to criticize; I didn't mean that these changes were regressions when they were introduced here; I meant that they would become regressions in ruwiki if we just replace the old version with the new one. --colt_browning (talk) 14:20, 9 October 2018 (UTC)
- No worries--it was clear from context you didn't meant to criticize :). --Izno (talk) 14:46, 9 October 2018 (UTC)
- Thanks. I didn't mean to criticize; I didn't mean that these changes were regressions when they were introduced here; I meant that they would become regressions in ruwiki if we just replace the old version with the new one. --colt_browning (talk) 14:20, 9 October 2018 (UTC)
- I don't see an error regarding languages. Do you have an example of that? --Izno (talk) 14:10, 9 October 2018 (UTC)
- Category: CS1 maint: Unrecognized language. It is caused by samples No. 4, 18, 70, where the name of the language is given instead of its code. --colt_browning (talk) 14:20, 9 October 2018 (UTC)
- You might be able to look through the history of this talk page and the history of edits to the module pages in order to pick out an intermediate version of the template that is more forgiving.
|coauthors=
, for example, was deprecated but still supported for a while, and then after a long while, support was removed entirely. I think that|month=
went through the same transition, but it's been a while. You'll have to look back in the edit history, where changes to the module pages and sandbox pages are listed in comments. – Jonesey95 (talk) 14:23, 9 October 2018 (UTC) - (edit conflict)
- Yikes! that is old.
- I guess that step one is for the ru.wiki community to decide that they want to upgrade to the cs1|2 module suite and that they want to do it for all of the cs1|2 templates. Seems silly to me to retain the old old old wikitext versions of some templates but use new for others.
- The unrecognized language issue occurs because at ru.wiki, the code expects the value assigned to
|language=
to be Russian orthography or ISO 639-1 code (Latn script); instead of|language=French
, write:|language=французский
or|language=fr
. One of the things that I have thought to do is to tweak the language parameter code so that it first tests the language value against the local language list. If that fails ('French' not found in the ru.wiki language list), try again with the English language list. If you go ahead with this project, it will be a useful test-bed for this idea. - We elected to deprecate and remove
|month=
and|day=
because too many date parameters are too many date parameters; because Lua is much more capable than parser functions and wikitext; because we had no need for such data granularity (and if we develop such a need, the component parts of a date can easily be extracted from a whole date). Editors here wrote AWB scripts that trolled through one or more of the error categories and rewrote|day=
,|month=
,|year=
into|date=
. Were it me, I would do the same at ru.wiki. - Our documentation here has always associated
|access-date=
with|url=
as a date that the citing editor confirmed that the source linked by|url=
supported the text our article. Identifier sources, doi, pmc, etc are 'permanent' so will not be changing unlike many web-based sources. - We elected to deprecate and remove
|coauthor=
and|coauthors=
because cs1|2 produces COinS metadata; because too many author parameters are too many author parameters; editors here ignored the plural / singular distinction. COinS does not have support for multiple names in a single key/value pair – COinS expects the name of one author for each instance of&rft.au
so none of the authors listed in either of|coauthor=
and|coauthors=
was included in the metadata. For this same reason, the value assigned to the plural|authors=
is also not included in the metadata. Converting|coauthor=
and|coauthors=
to|authorn=
(not to|authors=
) required several AWB scripts (to find and fix the low-hanging fruit) and a lot of manual fixes. This is the most difficult of the tasks ahead of you because human names are endlessly variable as are the ways that editors choose to represent those names in cs1|2 templates. - If after reading all of that you still wish to proceed, I would strongly recommend that you do a careful and complete translation of Help:CS1 errors. I don't know if it is possible but if it is, import the entire Category:CS1 category because all of those sub-categories are intimately tied to the cs1|2 templates and to Help:CS1 errors. Import rather than copy because there are a lot of category pages so if it can be done all in one go, do that. In ru:Module:Citation/CS1/Configuration at a minimum, translate the error messages and the
['help page label']
value so that general editors in the ru.wiki community who don't have English can understand what all of that red text means. - When you 'flip-the-switch', regardless of how much advance warning you have given, there will be angry editors. There is no getting away from that.
- If you need help with technical issues or you see places where the cs1|2 internationalization support can be improved, give a shout. Good luck.
- —Trappist the monk (talk) 14:24, 9 October 2018 (UTC)
- Thank you very much! --colt_browning (talk) 14:43, 9 October 2018 (UTC)
New stripmarker error in Template:Ford1922
There is a new stripmarker error in Template:Ford1922, a template that has not been edited for almost a year. Should this be fixed in the template or in the CS1 modules? Thanks. – Jonesey95 (talk) 04:41, 10 October 2018 (UTC)
- Misuse of
|postscript=
is the problem in each of these. I would guess these are also causing lint errors on their respective pages. --Izno (talk) 05:15, 10 October 2018 (UTC)- That fix works for me. Thanks. – Jonesey95 (talk) 08:18, 10 October 2018 (UTC)
Url-access parameter for Cite encyclopedia – Reason missing from full parameter list?
Anyone know? May I add it? I would not have even known it was an option except saw the icon used and was digging around in the code. Are there other parameters that are excluded? Reason for those? Thanks, Peacedance (talk) 21:33, 10 October 2018 (UTC)
- Probably because I / we suck at documentation. Any help that can be had making the cs1|2 documentation better is gratefully accepted.
- —Trappist the monk (talk) 22:15, 10 October 2018 (UTC)
Urgent: Dash errors
- <pre>{{cite journal |last=Smith |first=J. |year=1948–1950 |title=Foobar |journal=Whatever |pages=1654–1055}}</pre>
Renders as
- Smith, J. (1948–1950). "Foobar". Whatever: 1654–1055.
{{cite journal}}
: Check date values in:|year=
(help)CS1 maint: year (link)
Rather than
- Smith, J. (1948–1950). "Foobar". Whatever: 1654–1055.
@Trappist the monk:.Headbomb {t · c · p · b} 21:24, 11 October 2018 (UTC)
- Help talk:Citation Style 1#ndash entity in pages parameter
- —Trappist the monk (talk) 21:38, 11 October 2018 (UTC)
Removed support for 'interviewers'
I have removed support from the sandbox module for |interviewers=
as Category:CS1 maint: Uses interviewers parameter has been empty for some time (and spurred by a comment Ttm made when he added support for enumerated interviewers).
- Current: "Title" (Interview).
{{cite interview}}
: Unknown parameter|interviewers=
ignored (help) - Sandbox: "Title" (Interview).
{{cite interview}}
: Unknown parameter|interviewers=
ignored (help)
The category can be deleted when the sandbox is next deployed. --Izno (talk) 04:54, 15 October 2018 (UTC)
- That would be this comment?
- —Trappist the monk (talk) 12:07, 15 October 2018 (UTC)
- Indeed. --Izno (talk) 12:54, 15 October 2018 (UTC)
Template: Cite journal - Mistaken use of attribute "Volume"
I encountered a very far-spread problem with the use of the "volume" parameter of this template. According to the docs, the parameter expects an entry like "Volume four", "Vol. 4", "Band VII", etc. If anything shorter than 4 characters is entered, this is printed in bold text in the citation, to mark the mistake.
Nearly all uses of the template seem to ignore this. The result is a host of Volume descriptors, that are nothing but bold printed numbers. This could lead to misunderstandings and confusion among users trying to find the cited journal article. For an impression of the extent of the mistaken use, look at Candide#Sources, for example. Or really any article citing lots of journals.
On IRC, Huon proposed to change the code so that a regular error message is produced instead of just bolding the too short entry. This would prevent future mistaken use. If considered important enough, perhaps the existing countless issues of mistaken use should also be fixed. 2.247.243.131 (talk) 16:17, 17 October 2018 (UTC)
- I think that you are mistaken. The bolding that you describe is not to be understood as an indication of error; it is simply the style that is applied to
|volume=
values that are shorter than five characters. - —Trappist the monk (talk) 16:24, 17 October 2018 (UTC)
- Ok, my mistake then. Are you sure that this is according to an existing convention that most users can understand? 2.247.243.131 (talk) 16:26, 17 October 2018 (UTC)
- It is the convention that cs1|2 has used for journal cites for a very long time, in fact, the bolding was present in the very first version of
{{cite journal}}
. - —Trappist the monk (talk) 16:30, 17 October 2018 (UTC)
- For more context, some outside style manuals call for the volume number of a journal to bolded. Volume numbers usually start at 1 the year the journal is founded, and go up by 1 each year. If the volume parameter is short, it's assumed to follow this convention, and gets bolded. If it's long, the template assumes the convention is something the template doesn't understand, and the value is not bolded. Jc3s5h (talk) 16:44, 17 October 2018 (UTC)
- It is the convention that cs1|2 has used for journal cites for a very long time, in fact, the bolding was present in the very first version of
- Ok, my mistake then. Are you sure that this is according to an existing convention that most users can understand? 2.247.243.131 (talk) 16:26, 17 October 2018 (UTC)
Hacking around templatestyles and T205803
FYI, I changed Template:Philippine census reference to (1) call "Template:Philippine census reference/strip" to strip the templatestyles from the citation template output, and (2) add the templatestyles back outside of the reference tag. this is a total hack workaround for T205803 which was triggered when templatestyles were added to Module:Citation/CS1. clearly this is a fragile hack fix since it relies on the format and position of the ocins
(specified in Module:Citation/CS1/Configuration) and the fact that the templatestyles is at the end. so, please let me know if you have a better solution or if T205803 is fixed so I can undo my changes. Frietjes (talk) 16:18, 13 October 2018 (UTC)
- Update, since this is a broader problem, I have implemented something in Module:Citation/CS1/templatestyles, which appears to work as well, but seems to be less fragile. Frietjes (talk) 14:15, 14 October 2018 (UTC)
- So a patch was uploaded but not merged which I expect will come on the WP:THURSDAY software deployment. --Izno (talk) 16:47, 14 October 2018 (UTC)
- excellent, once that is merged, I will orphan the module and have it deleted. until that happens, Category:Pages with duplicate reference_names is becoming more useful (down from over 5K entries yesterday). Frietjes (talk) 17:34, 14 October 2018 (UTC)
A similar issue with {{Certification Table Entry}} has resolved itself, so the patch may already be live. --Muhandes (talk) 15:24, 17 October 2018 (UTC)- looks like the patch has been merged, so I have removed the hack from the ca. 9 templates that were using it. it could be useful to keep the hack module around in case, or we could probably just delete it. Frietjes (talk) 23:46, 18 October 2018 (UTC)
- Since you're the one who made significant contributions, you can submit it for author-only CSD. I'd support that. --Izno (talk) 00:50, 19 October 2018 (UTC)
- looks like the patch has been merged, so I have removed the hack from the ca. 9 templates that were using it. it could be useful to keep the hack module around in case, or we could probably just delete it. Frietjes (talk) 23:46, 18 October 2018 (UTC)
- excellent, once that is merged, I will orphan the module and have it deleted. until that happens, Category:Pages with duplicate reference_names is becoming more useful (down from over 5K entries yesterday). Frietjes (talk) 17:34, 14 October 2018 (UTC)
- So a patch was uploaded but not merged which I expect will come on the WP:THURSDAY software deployment. --Izno (talk) 16:47, 14 October 2018 (UTC)
Broken templates
{{Inflation/fn}} was apparently broken by a change to Module:Citation/CS1 on 29 September. Can we revert it until we have a fix? Hawkeye7 (discuss) 22:54, 13 October 2018 (UTC)
- At least a few other templates were affected, too. -- Mikeblas (talk) 01:55, 14 October 2018 (UTC)
{{Inflation/fn}}
was not broken by the 29 September update to the cs1|2 module suite. Rather, the problem lies with the MediaWiki software. I said as much at Template_talk:Inflation/fn#duplicate_reference_definitions, a discussion to which you both have contributed. This is not the place to fix a problem in the MediaWiki code. Reverting the last module suite update will not repair the underlying problem, only mask it.
—Trappist the monk (talk) 10:39, 14 October 2018 (UTC)
- You're saying that there was a change to the MediaWiki software on that date which should be reverted? Hawkeye7 (discuss) 19:44, 14 October 2018 (UTC)
- No. MediaWiki was flawed before the 29 September 2018 module update but no one knew it. The module update revealed the flaw. I am saying that the proper solution is to fix MediaWiki, which apparently has been done and is just waiting for review and implementation; see §Hacking around templatestyles and T205803.
- —Trappist the monk (talk) 20:06, 14 October 2018 (UTC)
- I have a bug fix request in Phabricator that is over six months old now. Changes to MediaWiki code are potentially highly disruptive. We should neither expect nor rely on MediaWiki changes, especially if we can handle it here. Hawkeye7 (discuss) 20:36, 14 October 2018 (UTC)
- Aye, sometimes phabricator is just like that black hole at the back of the laundry where single socks go; I have one there from June 2016. But so what? That doesn't change the fact that the correct place to fix this problem is at MediaWiki.
- —Trappist the monk (talk) 22:56, 14 October 2018 (UTC)
- I have a bug fix request in Phabricator that is over six months old now. Changes to MediaWiki code are potentially highly disruptive. We should neither expect nor rely on MediaWiki changes, especially if we can handle it here. Hawkeye7 (discuss) 20:36, 14 October 2018 (UTC)
- It seems like the course of action followed was to make a change that identified an issue in MediaWiki, then leave the broken code in place, blaming MediaWiki. That leaves the site broken. Do I have it right? If no, what am I missing? If so, how is that really what's best for the site and its users? -- Mikeblas (talk) 09:51, 15 October 2018 (UTC)
- MediaWiki enabled TemplateStyles at en.wiki 19 July 2018. On that same day I created what would become Module:Citation/CS1/styles.css and started this discussion. Between then and the 29 September update we modified the cs1|2 modules and styles.css to move inline style from the modules into styles.css (where it belongs). More than two months after TemplateStyles was enabled, we implemented it. On that day you noticed that
{{Inflation/fn}}
produced duplicate reference definition errors. I learned of the problem on 30 September and on that day diagnosed the problem which caused you to open phab:T205803. Also that day and on 1 October, developers at MediaWiki confirmed the problem. One of them created a fix that was uploaded for review on 14 October which some here believe will deployed 18 October.
- MediaWiki enabled TemplateStyles at en.wiki 19 July 2018. On that same day I created what would become Module:Citation/CS1/styles.css and started this discussion. Between then and the 29 September update we modified the cs1|2 modules and styles.css to move inline style from the modules into styles.css (where it belongs). More than two months after TemplateStyles was enabled, we implemented it. On that day you noticed that
-
- The broken code is not in TemplateStyles and is not in cs1|2 but is in MediaWiki's mw:Extension:Cite/Cite.php (the prospective fix).
-
- You can use the word blame if you'd like. I prefer to think that we diagnosed a problem and notified the cognizant people who have done whatever it is that they do to confirm the diagnosis and create a remedy. Yes this problem manifests itself in a way that causes grief for certain templates. Editor Frietjes has applied a clever hack to
{{Inflation/fn}}
and to a handful of other templates. Still, the cs1|2 modules are used on about 3.8 million pages. For the vast majority of those pages, this problem is not a problem. - —Trappist the monk (talk) 11:26, 15 October 2018 (UTC)
- You can use the word blame if you'd like. I prefer to think that we diagnosed a problem and notified the cognizant people who have done whatever it is that they do to confirm the diagnosis and create a remedy. Yes this problem manifests itself in a way that causes grief for certain templates. Editor Frietjes has applied a clever hack to