Help talk:Citation Style 1/Archive 8
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. |
Archive 5 | Archive 6 | Archive 7 | Archive 8 | Archive 9 | Archive 10 | → | Archive 15 |
Documentation / Lua
We currently have three templates not using the Lua module: {{cite episode}}, {{cite serial}} and {{cite map}} (which is in progress). Currently we have a documentation switch |lua=yes
in {{Citation Style documentation}} to display documentation sections for the Lua templates. I think it is time to remove that and show the Lua documentation on all with notes on the non-Lua templates. -- Gadget850 talk 18:16, 28 February 2015 (UTC)
- Concur.
- Support, especially if we proceed with migration of {{cite episode}} and {{cite serial}}. I will help in any way that I can. It will be exciting to be done with this multi-year migration project. – Jonesey95 (talk) 23:29, 1 March 2015 (UTC)
What is needed to proceed with this change? Do we change to |lua=no
for the non-Lua templates? Do we just put a big note at the top of the documentation for each of them saying that they don't work quite as described? Do we gather the non-Lua content from the subtemplates into a single subtemplate to display on the non-Lua pages?
As an aside, I noticed that {{Cite arXiv}} is listed in some of the official lists of CS1 templates (e.g. at {{Citation Style documentation/cs1}}) but not in others (e.g. Help:CS1 errors and Help:Citation Style 1#General use). It does not yet use Lua. – Jonesey95 (talk) 20:30, 21 March 2015 (UTC)
- Done. Now that all of the templates have been converted to Lua, this project was straightforward. I believe that I have stripped all of the "lua=yes" and "if lua" statements from our CS1 documentation. If I missed or broke anything, let me know (or be bold and fix it). – Jonesey95 (talk) 15:38, 19 April 2015 (UTC)
Vancouver style error
The recent module update that included the changes discussed in name-list-format is now generating a enormous number of "Vancouver style errors" which I think are unintended. Roman ≠ ASCII. ASCII is a subset of Roman characters. Roman characters include characters with diacritical marks. I am no expert on character sets, but allowed Roman characters would seem to include Unicode characters in the range of 0000 to 036F (Latin character set) and exclude Unicode 0370 and higher (Greek, Cyrillic, Arabic, etc.). PubMed which uses Vancouver style authors and is the source of the citation data that is used in many Wiki articles, clearly allows for extended Roman characters in author names (see for example, PMID 15196329). Boghog (talk) 13:11, 21 March 2015 (UTC)
- I'm not sure that characters with diacritical marks are included in the Roman characters. I've been watching for the introduction of a new law about vital records in my state, and the last time they tried, they wanted to restrict names on birth certificates to Roman letters, which was interpreted to exclude diacritical marks. Since our so-called Vancouver style is only quasi-Vancouver, I would think we would want to allow diacritical marks, regardless of whether the official Vancouver style guide (if such a thing exists) allows them or not. Jc3s5h (talk) 13:24, 21 March 2015 (UTC)
- The Romanization requirement is in what appears to be the Vancouver style guide.
- OK, I now see that the The NLM Style Guide for Authors, Editors, and Publishers states Ignore diacritics, accents, and special characters in names. (e.g., Å treated as A). However PubMed does not follow this recommendation and NLM/PubMed is the de facto Vancouver System standard (see Vancouver_system#History) and is also the source of much of Wikipedia's citation data. I think we should follow PubMed practice and allow extended Roman characters. The alternative is to replace these characters but this would cause an enormous amount of work with no real benefit to our readers. Boghog (talk) 13:41, 21 March 2015 (UTC)
- I agree with Jc3s5h, we should allow diacritical marks regardless. Boghog (talk) 13:41, 21 March 2015 (UTC)
- If PubMed uses diacritical marks, we should consider hiding this red error message until we come to a consensus on whether to permit or eliminate (and how to eliminate, if we so choose) the marks from existing articles that use the Vancouver style. (I am amending this comment to say that there are currently 16 articles in Category:CS1 errors: Vancouver style, a number that will surely grow, but which I would not classify as "enormous".) – Jonesey95 (talk) 15:05, 21 March 2015 (UTC)
- The module was just updated. Existing articles must be edited for purged before the error message occurs. Also there is a lag between when an error displayed in an article and when it shows up in the CS1 error category. I guarantee you that within a few days, this number will be huge. Boghog (talk) 15:20, 21 March 2015 (UTC)
- The use of extended Latin characters in citation authors in Wikipedia is wide spread and has been so for a very long time. Tools and bots that generate citations that support extended Latin characters include WP:REFTOOLS, User:Diberri/Template filler, and User:Citation bot. Clearly the current consensus is that extended Latin characters are allowed. A new consensus would need to be established to classify extended Latin characters as citation errors, even if these errors are only generated when
|name-list-author=vanc
is invoked. Even PubMed doesn't follow this particular author style recommendation. Why should we? Boghog (talk) 15:54, 21 March 2015 (UTC)
- If PubMed uses diacritical marks, we should consider hiding this red error message until we come to a consensus on whether to permit or eliminate (and how to eliminate, if we so choose) the marks from existing articles that use the Vancouver style. (I am amending this comment to say that there are currently 16 articles in Category:CS1 errors: Vancouver style, a number that will surely grow, but which I would not classify as "enormous".) – Jonesey95 (talk) 15:05, 21 March 2015 (UTC)
- I agree with Jc3s5h, we should allow diacritical marks regardless. Boghog (talk) 13:41, 21 March 2015 (UTC)
- OK, I now see that the The NLM Style Guide for Authors, Editors, and Publishers states Ignore diacritics, accents, and special characters in names. (e.g., Å treated as A). However PubMed does not follow this recommendation and NLM/PubMed is the de facto Vancouver System standard (see Vancouver_system#History) and is also the source of much of Wikipedia's citation data. I think we should follow PubMed practice and allow extended Roman characters. The alternative is to replace these characters but this would cause an enormous amount of work with no real benefit to our readers. Boghog (talk) 13:41, 21 March 2015 (UTC)
- Use of foreign letters in an English context still presents problems of classification and sortng, but it's not like the "old" days when many publications could not even produce diacritical and other foreign letters. But modern typography is more capable, and even on the English Wikipedia there is a trend to a more global orthography. {{Citation}} already accomodates diacrticals, Vancouver style should not be an exception. ~ J. Johnson (JJ) (talk) 20:34, 21 March 2015 (UTC)
- Agreed. The NLM Style Guide states, "Ignore diacritics, accents, and special characters in names ... to simplify rules for English-language publications." However displaying diacritical marks is no longer a technical problem using modern publication methods. Hence this particular NLM guideline is antiquated and is no longer followed even by PubMed. While non-Latin characters must be romanized in Wikipedia (see MOS:ROMANIZATION), Latin diacritical marks are allowed (MOS:DIACRITICS). In addition, by using metadata, someone might want to transfer Vancouver style references to another article that uses the default CS1 style that allows diacritical marks. Stripping out the diacritical marks from the Vancouver style references represents an unnecessary loss of information that will adversely impact the transferability of these citations into different citation formats. Boghog (talk) 14:11, 22 March 2015 (UTC)
- Use of foreign letters in an English context still presents problems of classification and sortng, but it's not like the "old" days when many publications could not even produce diacritical and other foreign letters. But modern typography is more capable, and even on the English Wikipedia there is a trend to a more global orthography. {{Citation}} already accomodates diacrticals, Vancouver style should not be an exception. ~ J. Johnson (JJ) (talk) 20:34, 21 March 2015 (UTC)
- Yes. If there is any real need to dediacriticise (!) perhaps that could be done with a template, thus preserving the fuller form. ~ J. Johnson (JJ) (talk) 20:15, 22 March 2015 (UTC)
- Unicode 0x0000–0x036F consists of seven defined groups:
- 0000–007F C0 Controls and Basic Latin (C0 Controls: 0000–0020)
- 0080–00FF C1 Controls and Latin-1 Supplement (C1 Controls: 0080–00A0 & 00AD)
- 0100–017F Latin Extended-A
- 0180–024F Latin Extended-B
- 0250–02AF IPA Extensions
- 02B0–02FF Spacing Modifier Letters
- 0300–036F Combining Diacritical Marks
- It would seem that if we choose to disregard the NLM Style Guide then the range of characters that we allow should be 0021–007F, 00A1–00AC, 00AE–024F.
- Yes, those ranges make sense. Per MOS:ROMANIZATION, shouldn't this restriction not only apply to
|author-name-list=vanc
but also to the default author format? Although before expanding the scope of the check, I think we would need wider consensus. Just for curiosities sake, implementing this type of check in standard Lua appears non-trivial. Can this be done with something like utf8.find? Boghog (talk) 14:37, 23 March 2015 (UTC)
- Yes, those ranges make sense. Per MOS:ROMANIZATION, shouldn't this restriction not only apply to
- This whole test was added because it was pointed out that the NLM Style Guide (Vancouver) requires Romanization. It would seem, if we are to apply MOS:ROMANIZATION to non-Vancouver-style author/editor names, then MOS:ROMANIZATION should also apply to everything else in a CS1/2 citation. If that is the case then there can be no titles in Cyrillic, Japanese, Hebrew, Thai, etc and there are a lot of those.
-
- Though kind of ugly, this might work:
for codepoint in mw.ustring.gcodepoint( s ) do
if 33 > codepoint -- C0 controls
or 128 >= codepoint and 160 <= codepoint -- most C1 controls
or 173 == codepoint -- odd-man-out C1 control
or 591 < codepoint then -- codepoints beyond Latin Extended-B
-- error message stuff
end
end
- We might simplify and just accept everything below codepoint 592 (0x0250) on the theory that C0 and C1 controls would be an unlikely part of a name.
- Ah, thanks. With the mw.ustring library, it is still somewhat messy, but not as difficult as I first thought. Boghog (talk) 17:07, 23 March 2015 (UTC)
- Some editors are starting to Romanize author names to eliminate these errors and there appears to be a developing consensus that this is unnecessary. Is there any way the current error message can be suppressed until a solution that has consensus has been implemented? The only argument that has been advanced in favor of the error message is the NLM Romanization guideline and there appears consensus above that we should ignore this particular guideline. Furthermore no one has raised any objections to following PubMed practice of using extended Latin characters. Boghog (talk) 17:06, 24 March 2015 (UTC)
- I concur. There is no urgency regarding this "error", and prompting editors to make changes where matters are yet unsettled leads to instability and confusion. ~ J. Johnson (JJ) (talk) 22:47, 24 March 2015 (UTC)
- Some editors are starting to Romanize author names to eliminate these errors and there appears to be a developing consensus that this is unnecessary. Is there any way the current error message can be suppressed until a solution that has consensus has been implemented? The only argument that has been advanced in favor of the error message is the NLM Romanization guideline and there appears consensus above that we should ignore this particular guideline. Furthermore no one has raised any objections to following PubMed practice of using extended Latin characters. Boghog (talk) 17:06, 24 March 2015 (UTC)
@Trappist the monk: Please suppress this error message. In the mean time, I have boldly warned editors to ignore this message. Boghog (talk) 20:21, 26 March 2015 (UTC)
- With your bold warning, is it really necessary to dump a couple of million pages onto the job queue for simply changing
hidden = false
tohidden = true
?- OK, thanks for your reply. I thought there might be a way of suppressing the message that didn't require modifying the template code. I will be patient. Boghog (talk) 19:01, 27 March 2015 (UTC)
- It occurred to me this afternoon while I was doing something completely unrelated that we can still use the lua patterns to solve this problem. The above code snippet is really pretty ugly and in fact would have gotten uglier. This pattern that I concocted in the debug window is, I think, better:
=mw.ustring.find("a Ëb-c ɏÝ'a", "^[A-Za-zÀ-ÖØ-öø-ƿDŽ-ɏ%-%s%']*$")
- The pattern includes, I think, all the letters in the Latin range of 0000–024F, jumping over things like × (00D7) and ÷ (00F7) etc.
- I am ignorant on the specifics of Lua, but I believe that in many programming languages the mappinng/ordering of characters is dependent on a locale setting. Is that a factor here? ~ J. Johnson (JJ) (talk) 04:23, 27 March 2015 (UTC)
- I don't think so.
- I am ignorant on the specifics of Lua, but I believe that in many programming languages the mappinng/ordering of characters is dependent on a locale setting. Is that a factor here? ~ J. Johnson (JJ) (talk) 04:23, 27 March 2015 (UTC)
- I have managed to try the pattern I identified above, not without some struggle. It seems that the code editor gets confused regarding character and cursor position – I could put the cursor at a place, and the next character I typed ended up in some other position. Writing the line here and then copy/pasting it there worked.
Wikitext | {{cite book
|
---|---|
Live | Waśniowska, J. Paul; Gómez-Coronado, Suárez; Kühme, T; DŽǻlĕç, d. Title. {{cite book}} : Unknown parameter |name-list-format= ignored (|name-list-style= suggested) (help)
|
Sandbox | Waśniowska, J. Paul; Gómez-Coronado, Suárez; Kühme, T; DŽǻlĕç, d. Title. {{cite book}} : Unknown parameter |name-list-format= ignored (|name-list-style= suggested) (help)
|
- This appears to work. The first three names are taken from article space, the last one is concocted from various letters in the four Latin code sets.
- —Trappist the monk (talk) 13:46, 27 March 2015 (UTC)
- Your solution looks brilliant! Thanks :-) Boghog (talk) 19:04, 27 March 2015 (UTC)
- —Trappist the monk (talk) 13:46, 27 March 2015 (UTC)
I have discovered and fixed an error in reduce_to_initials()
that produced � for author initials when the first character of the name was not in the set [A-Za-z]:
{{cite news/new|title=title|name-list-style=vanc|last1=González|first1=Ángel}}
- →González Á. "title".
—Trappist the monk (talk) 16:22, 4 April 2015 (UTC)
Add a 'volume-b=' parameter that skips the four-chr test for bolding?
I just learned from a discussion above that bolding of |volume=
is conditioned on having four or fewer characters. I don't know why that limit was picked; presumably it serves some useful purpose. But it does lead to some inconsistent results. Would it be possible to have something like |volume-b=
that would be identical to Volume= in all respects except that it skips the the four-chr test, and thus always does bolding? ~ J. Johnson (JJ) (talk) 21:53, 22 March 2015 (UTC)
- Some history. The suggestion to wrap the volume value in wikimarkup (
|volume='''MCMLXXXIV'''
) corrupts the COinS metadata so that shouldn't be considered as a way to get around this 'constraint'.
- For sure a parameter value should never include wikimarkup. But that is irrelevant to what I am asking. The current code already generates bolded output, and apparently without corrupting COinS. What I am asking should make no difference in how such bolding is done, only in when the existing test is applied. ~ J. Johnson (JJ) (talk) 00:15, 24 March 2015 (UTC)
- Trappist the monk: while this is not an urgent matter, I hope that will not entirely overlooked. It should be simple to implement (just a test condition), and its availability should reduce the "need" and tendency of editors to add wikimarkup to force bolding. ~ J. Johnson (JJ) (talk) 21:23, 4 April 2015 (UTC)
- I've changed my position with regard to wikimarkup in
|volume=
. We allow constructs like this in|title=
:{{cite journal | ref=harv | last=Cody | first=William J. | title=''Adiantum pedatum'' ssp. ''calderi'', a new subspecies in northeastern North America | journal=[[Rhodora (journal)|Rhodora]] | volume=85 | issue=841 |date=January 1983 | pages=93–96 | url=http://www.botanicus.org/item/31753003488258}}
- →Cody, William J. (January 1983). "Adiantum pedatum ssp. calderi, a new subspecies in northeastern North America". Rhodora. 85 (841): 93–96.
{{cite journal}}
: Invalid|ref=harv
(help)
- and there is code in the module that strips the apostrophe markup from the title value before it becomes COinS:
&rft.atitle=Adiantum+pedatum+ssp.+calderi%2C+a+new+subspecies+in+northeastern+North+America
- so, why not use that same code to render the value in
|volume=
COinS-safe as well?
- I've changed my position with regard to wikimarkup in
- —Trappist the monk (talk) 23:58, 4 April 2015 (UTC)
- Why don't we just drop the bold completely, regardless of character count? Imzadi 1979 → 01:24, 5 April 2015 (UTC)
- —Trappist the monk (talk) 23:58, 4 April 2015 (UTC)
- Volume numbers, which are especially significant for serials and journals, are often overlooked on account of being so short, wherefore they are commonly bolded so they are more readily seen in long citations.
- There often is a need to specifically apply italicization, perhaps even bolding, within a title, just as there is often a need for special characters and raised or lowered text. But I am against encouraging use of wikimarkup in the templates generally, as it confuses the display and data functions. (It is a really bad practice in respect of database systems.) I could possibly accept 'volume' as another exception, but it rankles me. ~ J. Johnson (JJ) (talk) 21:18, 5 April 2015 (UTC)
- Editors will use wikimarkup. I don't think that we're going to get them to not use wikimarkup except in places where it is obviously detrimental to the function of the citation. Since we must accept wikimarkup in titles, doing so for
|volume=
isn't too difficult because editors will sometimes use|volume=
as an extension of a title:{{cite book|last=Tolkien|first=J. R. R.|title=The Lord of the Rings (50th Anniversary Edition)|year=2004|publisher=Houghton Mifflin Company|volume=''The Return of the King''|pages=747–748}}
- →Tolkien, J. R. R. (2004). The Lord of the Rings (50th Anniversary Edition). Vol. The Return of the King. Houghton Mifflin Company. pp. 747–748.
- Here it isn't bold, it's italics (of course using
|volume=
for the title of a book in a series is problematic because COinS doesn't support volume for books; it does for journals). That makes me think that sometime down the road someone is going to want|volume-i=
.
- Editors will use wikimarkup. I don't think that we're going to get them to not use wikimarkup except in places where it is obviously detrimental to the function of the citation. Since we must accept wikimarkup in titles, doing so for
- Properly written, and COinS compatible, the citation above could be:
{{cite book|last=Tolkien|first=J. R. R.|series=The Lord of the Rings |edition=50th Anniversary |year=2004 |publisher=Houghton Mifflin Company|title=The Return of the King |pages=747–748}}
- →Tolkien, J. R. R. (2004). The Return of the King. The Lord of the Rings (50th Anniversary ed.). Houghton Mifflin Company. pp. 747–748.
- I know that there has been some debate about styling of series' titles. I don't know what the result of that debate was but I could easily imagine that there are clear cases for styles and unstyled. If that's the case then we should also strip wikimarkup from
|series=
.
- Properly written, and COinS compatible, the citation above could be:
- Perhaps not the best example. When "works" (books) are split into volumes those are usually numbered, with one title for the entire work. When a work consists of volumes separately titled, the work is a series. It is confusing that the generic workhorse
|title=
can be used for chapter, article, volume, book, work, and series, all with differing nuances of display. Perhaps it would help to have more specific title parameters. But (as I was just saying) there is a need to apply special formatting in some titles, so we are stuck with having to allow wikimarkup (or html?) in some cases. So much as I deplore this: perhaps it would be simpler (in terms of use) to generally allow some markup across all parameters. However, there will be greater problems trying to maintain consistency if editors can individually customize their references. ~ J. Johnson (JJ) (talk) 20:15, 6 April 2015 (UTC)
- Perhaps not the best example. When "works" (books) are split into volumes those are usually numbered, with one title for the entire work. When a work consists of volumes separately titled, the work is a series. It is confusing that the generic workhorse
- Wikimarkup is simple to deal with and even titles like this aren't so bad:
|title=Tracing H<sub>2</sub> Via Infrared Dust Extinction
- →Alves, J.; Lada, C.; Lada, E. (2001). Tracing H2 Via Infrared Dust Extinction. Cambridge University Press. p. 217. ISBN 0-521-78224-4.
{{cite book}}
: Unknown parameter|booktitle=
ignored (help)
- but then we get titles like this:
|title=A Parallactic Distance of <math>389^{+24}_{-21}</math> Parsecs to the Orion Nebula Cluster from Very Long Baseline Array Observations
- →Sandstrom, Karin M.; Peek, J. E. G.; Bower, Geoffrey C.; Bolatto, Alberto D.; Plambeck, Richard L. (2007). "A Parallactic Distance of Parsecs to the Orion Nebula Cluster from Very Long Baseline Array Observations". The Astrophysical Journal. 667 (2): 1161. arXiv:0706.2361. Bibcode:2007ApJ...667.1161S. doi:10.1086/520922.
- Fortunately there aren't that many instances of this second type:
insource:/\| *title *=[^\|\}]*\<math/
- Still, these lurk in the back of my mind as something that needs to be addressed.
- Wikimarkup is simple to deal with and even titles like this aren't so bad:
- —Trappist the monk (talk) 22:05, 6 April 2015 (UTC)
- Yes, that's the kind of stuff I was thinking about. The variations in how Sandstrom et al. is cited suggests that COinS might be ineffective is such cases, so perhaps it doesn't matter much how this markup gets flattened. ~ J. Johnson (JJ) (talk) 22:40, 6 April 2015 (UTC)
- —Trappist the monk (talk) 22:05, 6 April 2015 (UTC)
Trappist the monk, Imzadi1979: If use of wikimarkup (specifically, apostrophes) in parameters is acceptable (yuck), then there is no need for 'volume-b'. But to make that determination, should we have an RfC? ~ J. Johnson (JJ) (talk) 22:17, 8 April 2015 (UTC)
- For the moment I guess I have no opinion with regard to an RfC.
- Are the three of us sufficient to decide whether the use of apostrophes in
|volume=
should be acceptable? Do we have sufficiently broad scope of view to not miss some important consideration, or should we request comments from others? I lean some what in that direction, so will consider what question should be formulated. ~ J. Johnson (JJ) (talk) 20:34, 10 April 2015 (UTC)
- Are the three of us sufficient to decide whether the use of apostrophes in
- I still have no opinion on the matter. If you want an RfC, do so. I have done nothing with the code that handles
|volume=
and likely won't before I freeze the current changes in advance of the next update.
- I still have no opinion on the matter. If you want an RfC, do so. I have done nothing with the code that handles
- Nah, let's just fake it. So in regard of getting the value of
|volume=
bolded when it has more than four characters: we have a consensus (of sorts) that using apostrophes (wikimarkup) is an acceptable work-around. In view of that, and the backlog of other work, we can close this discussion. ~ 21:06, 11 April 2015 (UTC)
- Nah, let's just fake it. So in regard of getting the value of
How to use "et al"?
Looking over the template dox, I see examples of the use of "et al" in long lists of names. It appears this is automated though, is there some way to do this manually? I have a conference paper with about 40 names in it, I only want the first one to appear, along with et al. Maury Markowitz (talk) 20:32, 1 April 2015 (UTC)
{{cite conference |title=Title |last=Last1 |first=First1 |last2=Last2 |first2=First2 |last3=Last3 |first3=First3 <!-- and as many more author names as you'd like to include --> |display-authors=1}}
- →Last1, First1; et al. Title.
{{cite conference}}
: CS1 maint: numeric names: authors list (link)
- →Last1, First1; et al. Title.
- —Trappist the monk (talk) 20:54, 1 April 2015 (UTC)
- Ah ha! Ok, so if I put in only one author, and say |display-authors=1, do I get the et al? I'd test this myself, but the article is being edited offline in my text editor... Maury Markowitz (talk) 20:59, 1 April 2015 (UTC)
- You could test it here, click show preview, and see. But, since I'm here I'll show you that no, that doesn't work, pretty much as you'd expect.
{{cite conference |title=Title |last=Last1 |first=First1 |display-authors=1}}
- →Last1, First1. Title.
{{cite conference}}
: Invalid|display-authors=1
(help)CS1 maint: numeric names: authors list (link)
- →Last1, First1. Title.
- Bummer. Suggestions on what such a beast would look like? |display=0 seems more confusing than useful. Maury Markowitz (talk) 21:35, 1 April 2015 (UTC)
- You can still add two authors and set display authors to 1. --Izno (talk) 21:51, 1 April 2015 (UTC)
- That's fooling the system, precisely what I would like to avoid. This should be a feature, not a workaround. Maury Markowitz (talk) 02:50, 2 April 2015 (UTC)
- You can still add two authors and set display authors to 1. --Izno (talk) 21:51, 1 April 2015 (UTC)
- Bummer. Suggestions on what such a beast would look like? |display=0 seems more confusing than useful. Maury Markowitz (talk) 21:35, 1 April 2015 (UTC)
- [ec] The "et al." doesn't come up unless have at least one more author than display-authors. E.g., adding last2 and first2 to the above code gives us:
- →Last1, First1; et al. Title.
{{cite conference}}
: CS1 maint: numeric names: authors list (link)
- →Last1, First1; et al. Title.
- [ec] The "et al." doesn't come up unless have at least one more author than display-authors. E.g., adding last2 and first2 to the above code gives us:
- But note that your full citation really should list at least three authors. (Some style conventions (including APA?) will add "and 37 others" instead of "et al.") The "Last, et al." would be in an in-line short cite, such as created by harv. ~ J. Johnson (JJ) (talk) 22:07, 1 April 2015 (UTC)
Sure, but I'm simply not going to type in all 37 to get the "and 37 others" tag. Since the cite will only list one author, and the citeref refers only to that author, I shouldn't have to list all the rest just to get the template to display the way it's going to in the end anyway. Maury Markowitz (talk) 02:48, 2 April 2015 (UTC)
- Maury Markowitz: I just showed you how to get the 'et al.' with just two authors. Look at the wikisource. (Though, as I said, you really should have at least three/four. See below.) ~ J. Johnson (JJ) (talk) 21:00, 2 April 2015 (UTC)
- @Maury Markowitz: you can put the 1st author in
|author1=
, set|display-authors=1
(as suggested above), and copy & paste the remaining authors into|author2=
as long as they're either comma or semicolon delimited. Then I, or someone with a similar script, can enumerate them into the appropriate # of authors. From all my citation cleanup, this seems to be the way it is being (hastily?) done. Whether or not there's a better way is a different story. ~ Tom.Reding (talk ⋅contribs ⋅dgaf) 14:14, 2 April 2015 (UTC)- The original problem that led me here was a PDF document that doesn't allow cut and paste of the text. :-) Maury Markowitz (talk) 14:19, 2 April 2015 (UTC)
- I have that same frustration with paper books and newspapers. I can cut and paste, but then I can't see my whole computer monitor. – Jonesey95 (talk) 14:35, 2 April 2015 (UTC)
- The original problem that led me here was a PDF document that doesn't allow cut and paste of the text. :-) Maury Markowitz (talk) 14:19, 2 April 2015 (UTC)
Because we now detect and categorize citations that include et al. in author and editor parameters, and because of this conversation, it occurs to me that we might create a couple of parameters, perhaps |more-authors=
and |more-editors=
that would append et al. to the author list if the parameter is set to yes
or true
. In this way, Editor Maury Markowitz could list only one of the bazillion authors, need only one author in {{sfn}}
or {{harv}}
templates, not corrupt the COinS metadata, nor fool the system.
Alternatively, perhaps we modify |display-authors=
and |display-editors=
by adding a keyword more
that would append et al. to the appropriate name-list.
It would seem that either of these solutions would also provide a way of positively dealing with the 18,000+ pages in Category:CS1 maint: Explicit use of et al.
—Trappist the monk (talk) 16:21, 2 April 2015 (UTC)
- I strongly agree that we should have a non-hacky way for WP editors to ask the citation to show "et al." without breaking the harv referencing or the metadata.
- It would be nice to come up with a way to implement this that allowed us to sweep through those 18,000 articles and convert them elegantly to the new way. – Jonesey95 (talk) 16:52, 2 April 2015 (UTC)
- Sort of like this:
|display-authors=
→ Last1, First1. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=1
→ Last1, First1. Title.{{cite book}}
: Invalid|display-authors=1
(help)CS1 maint: numeric names: authors list (link)|display-authors=more
→ Last1, First1. Title.{{cite book}}
: Invalid|display-authors=more
(help)CS1 maint: numeric names: authors list (link)
- I have not implemented this for the editor name-list. Shall I proceed or revert?
- —Trappist the monk (talk) 16:58, 2 April 2015 (UTC)
- I agree with both
|display-authors=more
and|more-authors=
, and prefer the|display-authors=more
solution since it uses an existing parameter in a non-conflicting way, is intuitive to use, and it's easy to remember. ~ Tom.Reding (talk ⋅contribs ⋅dgaf) 19:28, 2 April 2015 (UTC)- I agree with
|display-authors=more
for the reasons given by Tom.Reding. It would probably be useful to have a bit of error checking for|display-authors=
to locate values that are not numbers or "more". I don't know what is done with|display-authors=blahblahblah
now, but it should throw an error. - Testing
|display-authors=blahblahblah
: Smith, John. Title.{{cite book}}
: Invalid|display-authors=blahblahblah
(help) - Nice work, Trappist. – Jonesey95 (talk) 02:02, 3 April 2015 (UTC)
- I agree with
- I agree with both
- Using a keyword of "etal" or similar might be more (heh) intuitive in the parameter than the word "more". I read "display-authors = more" in the sense of "display more of them!"... which obviously isn't the intent. --Izno (talk) 03:21, 3 April 2015 (UTC)
- Currently supports keywords
more
andetal
regardless of case. We should choose one.|display-editors=
does not yet have this functionality.|display-authors=more
→ Last1, First1. Title.{{cite book}}
: Invalid|display-authors=more
(help)CS1 maint: numeric names: authors list (link)|display-authors=etal
→ Last1, First1; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=1
→ Last1, First; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=
→ Last1, First; Last2, First2; et al. Title.{{cite book}}
: Explicit use of et al. in:|first2=
(help)CS1 maint: numeric names: authors list (link)|display-authors=blahblahblah
→ Last1, First1. Title.{{cite book}}
: Invalid|display-authors=blahblahblah
(help)CS1 maint: numeric names: authors list (link)
- —Trappist the monk (talk) 11:09, 3 April 2015 (UTC)
- Currently supports keywords
- I've made a separate function so that both
|display-authors=
and|display-editors=
use the same code. So, the keywords are now supported by|display-editors=
:|display-editors=more
→ Last1, First1 (ed.). Title.{{cite book}}
: Invalid|display-editors=more
(help)CS1 maint: numeric names: editors list (link)|display-editors=etal
→ Last1, First1; et al. (eds.). Title.{{cite book}}
: CS1 maint: numeric names: editors list (link)|display-editors=1
→ Last1, First1; et al. (eds.). Title.{{cite book}}
: CS1 maint: numeric names: editors list (link)|display-editors=
→ Last1, First1; Last2, First2; Last3, First3; Last4, First4 (eds.). Title.{{cite book}}
: CS1 maint: numeric names: editors list (link)|display-editors=
→ Last1, First1; et al. (eds.). Title.{{cite book}}
: Explicit use of et al. in:|editor-first=
(help)CS1 maint: numeric names: editors list (link)|display-editors=
→ Last1, First1; Last2, First2; et al. (eds.). Title.{{cite book}}
: Explicit use of et al. in:|editor-first2=
(help)CS1 maint: numeric names: editors list (link)|display-editors=blahblahblah
→ Last1, First1 (ed.). Title.{{cite book}}
: Invalid|display-editors=blahblahblah
(help)CS1 maint: numeric names: editors list (link)
- We need to remember to revisit this code when Category:Pages using citations with old-style implicit et al. in editors has been cleared.
- I've made a separate function so that both
- The code now uses the plural editor annotation whenever et al. is part of the rendered list.
This neatly solves the other issue I've had with the sfn's, which is the need to use CITEREF if there's a lot of authors to make the ref something typeable. I really like this mod. One suggestion though, perhaps the item after the = could be one of a number of different indicators? etal is the one I would use, but as you pointed out, others prefer a number. Maury Markowitz (talk) 12:50, 3 April 2015 (UTC)
- I don't understand what you mean by
one of a number of different indicators
. In the sandbox code the value assigned to|display-authors=
can be a number, which truncates the author name list and appends et al. or it can be a keyword that simply adds et al. to the end of the name list without truncation.
We have two options on the table for a keyword to add 'et al.' to an author/editor list. I'm inclined to agree with Editor Izno that |display-authors=etal
should be preferred over |display-authors=more
. While more
is really simple in that it has only one spelling, it turns out that it isn't much more work to allow for a variety of etal
spellings. Here are some variations on the etal
theme:
|display-authors=etal
→ Last1, First1; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=et al
→ Last1, First1; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=etal.
→ Last1, First1; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=et al.
→ Last1, First1; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=''etal''
→ Last1, First1; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=''et al''
→ Last1, First1; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=''etal.''
→ Last1, First1; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)|display-authors=''et al.''
→ Last1, First1; et al. Title.{{cite book}}
: CS1 maint: numeric names: authors list (link)
So, more
or etal
?
—Trappist the monk (talk) 17:16, 4 April 2015 (UTC)
- I think
etal
is clearer, and I love the idea of allowing multiple forms of it in the parameter value. Editors will reasonably expect to be able to typeet al
oret al.
, especially since the latter is the recommended form in MOS. – Jonesey95 (talk) 23:04, 4 April 2015 (UTC)- I think that using
|display-authors=etal
(and silently allowing the variations) is the easiest solution. Imzadi 1979 → 01:28, 5 April 2015 (UTC)- Ok,
|display-authors=more
no more.
- Ok,
- I think that using
Adding retweet parameter to cite tweet and twitter status
Is there a way the templates for cite tweet and twitter status can be modified to note that the status was retweeted by a reliable source.
For instance:
{{Twitter status | user = DisneyChannelPR <!-- https://twitter.com/DisneyChannelPR/status/558343980690059264 --> | statusid = 558343980690059264 | title = Confirms Jimmy Weldon as voice of the Whoopty-Doopty-Schmoodily-Duck | name = Disney Channel PR | date = January 22, 2015 | accessdate = April 3, 2015 }} Retweeted by Shea Fontana.
would become:
{{Twitter status | user = DisneyChannelPR <!-- https://twitter.com/DisneyChannelPR/status/558343980690059264 --> | statusid = 558343980690059264 | title = Confirms Jimmy Weldon as voice of the Whoopty-Doopty-Schmoodily-Duck | name = Disney Channel PR | date = January 22, 2015 | accessdate = April 3, 2015 | retweet = Shea Fontana }}
This would apply for the cases where the original tweeter's handle is not anyone particularly notable, but the reliable source person takes it and retweets it rather than tweeting a reply to it. -AngusWOOF (talk) 23:55, 2 April 2015 (UTC)
{{Twitter status}}
is not a Citation Style 1 template. I suspect that the best place to discuss this is at the template's talk page.
- No prob. I added the request to twitter status's talk page. Cite tweet's talk page redirected here so it'd be nice to know if someone can work on that template. -AngusWOOF (talk) 14:06, 3 April 2015 (UTC)
- In {{cite tweet}}'s sandbox I've passed a new
|retweet=
parameter through to the|others=
parameter in cite web, preceded by "Retweeted by":- Example code:
{{Cite tweet/sandbox |user=Pigsonthewing |number=564068436633214977 |date = 7 February 2015 |quote=This is an example tweet. |retweet=Someone else }}
- Example output: @Pigsonthewing (7 February 2015). (Tweet). Retweeted by Someone else https://x.com/Pigsonthewing/status/564068436633214977 – via Twitter.
This is an example tweet.
{{cite web}}
: Missing or empty|title=
(help)
- Example code:
- Is this the sort of thing you're after, AngusWOOF? - Evad37 [talk] 03:49, 4 April 2015 (UTC)
- Yep, that would work! -AngusWOOF (talk) 04:21, 4 April 2015 (UTC)
- The biggest criticism I have of {{cite tweet}} is that it links through the tweet number and relegates the content of the tweet to the optional quote parameter. Most citation guides say to include the full content of a tweet as the title of the tweet and not to display the tweet's number. At least one guide also advises using the real name of the author in addition to the Twitter account name, which should be preceded by the @. Imzadi 1979 → 07:01, 4 April 2015 (UTC)
- If there's a way to make Twitter status compatible with CS1 I'd be all for that. Twitter status (as shown in my above example) allows for the title to summarize the tweet rather than force the exact quote which would introduce hashtags, links, and replies to non-notable users. -AngusWOOF (talk) 14:14, 4 April 2015 (UTC)
- The biggest criticism I have of {{cite tweet}} is that it links through the tweet number and relegates the content of the tweet to the optional quote parameter. Most citation guides say to include the full content of a tweet as the title of the tweet and not to display the tweet's number. At least one guide also advises using the real name of the author in addition to the Twitter account name, which should be preceded by the @. Imzadi 1979 → 07:01, 4 April 2015 (UTC)
- Yep, that would work! -AngusWOOF (talk) 04:21, 4 April 2015 (UTC)
- In {{cite tweet}}'s sandbox I've passed a new
I've adjusted the sandbox version again, see the new testcases page. In addition to |retweet=
as mentioned above, changes include:
- The default author value is @{{{user}}}. Setting
|author=
overrides this, so it can be set to the real name, or the real name together with the account name if desired |author-link=
added, so the author can be linked to their Wikipedia page|title=
added, for specifying a title for the tweet. Defaults to 'Tweet Number ...' if not specified.- Access date now only set by
|access-date=
or|accessdate=
, not by|date=
|link=
added, so that Twitter is unlinked when|link=no
is set (as per {{Google maps}}) – when used multiple times in an article, only the first instance needs to be linked- Error messages adjusted to say which parameters are missing, and moved to the end. Tracking category is only added in mainspace.
Any other comments or suggestions? - Evad37 [talk] 04:43, 6 April 2015 (UTC)
- Just a minor comment: the title shouldn't be in quotes, otherwise it implies it is what is being tweeted. Also, does this mean the title and quote are both usable? -AngusWOOF (talk) 06:20, 6 April 2015 (UTC)
- We need not reinvent the wheel here folks. CS1 was heavily based on APA style, and the APA Style Blog has already created guidelines on how to cite social media that we can easily adapt to handle citing tweets. Looking at them, I would suggest:
- When the real name is known, it should be listed first with the user handle in square brackets: "Mabbett, Andy [Pigsonthewing]". (The APA says to drop the "@", but we could leave that in place.)
- When the real name of the author is not known, only the user handle would appear without any bracketing: "Pigsonthewing".
- The full tweet should be used as the title, which should appear in quotes as the title of the source.
- Tweet numbers are meaningless, and any citation that lacks a full title should flag an error for correction. Citing just the ISBN for a book without the book title is just as meaningless to a reader. Yes, we could click the links to determine the title of the book, but it's just not a proper citation.
- To solve the issue of multiple instances of "Twitter" being linked, I'd just drop the publisher completely and default to
|type=Tweet
. It may be a semantical distinction, but Twitter doesn't actually cause any tweets to be published; the user tweeting does. They merely host the content, just as Google Books hosts copies of scanned books, and we'd never say Google actually published the books. (It's possible that Google published content that they host on Google Books, but it's also possible that Twitter itself tweets.) - The quote parameter is superfluous as the full tweet should be given.
- For additional ideas, we can consult guidelines from the MLA and the suggestion from the Chicago Manual of Style, although CMOS quotes the full tweet in the prose and omits it from the footnote, relying on a reader's ability to locate it from the Twitter feed. Imzadi 1979 → 07:12, 6 April 2015 (UTC)
- These changes implement your suggestions. Another point for discussion: At the moment, if
|user=
or|number=
is ommitted, a junk url such as https://twitter.com/{{{user}}}/status/{{{number}}} is passed through to {{cite web}}, and error messages regarding|user=
and|number=
are displayed. Another option would be to check the parameters, so that no url rather than a junk url is passed through – but not having a url results in the "Missing or empty |url=" error message, which is a bit deceptive as cite tweet doesn't have a |url= parameter. Any ideas on which is preferable, or if there is another option? - Evad37 [talk] 08:18, 6 April 2015 (UTC)- Actually, I've just noticed that the missing url error message is hidden by default, so now the code checks that the parameters have been set - Evad37 [talk] 09:55, 6 April 2015 (UTC)
- Probably best that you don't rely on the missing url error remaining forever hidden. You might change the
{{cite tweet}}
code to something like this:|url={{#ifeq: {{{number|}}}{{{user|}}} | {{{number}}}{{{user}}} | https://twitter.com/{{{user}}}/status/{{{number}}} | https://twitter.com/ }}
- —Trappist the monk (talk) 10:46, 6 April 2015 (UTC)
- Done - Evad37 [talk] 14:57, 6 April 2015 (UTC)
- Probably best that you don't rely on the missing url error remaining forever hidden. You might change the
- Actually, I've just noticed that the missing url error message is hidden by default, so now the code checks that the parameters have been set - Evad37 [talk] 09:55, 6 April 2015 (UTC)
- These changes implement your suggestions. Another point for discussion: At the moment, if
- One other idea, but MLA uses a time in addition to the date, and it advises that the time zone should be that of the author of the paper, not the author of the tweet. Since Wikipedia is an international publication, if we did have a way to insert the time, I would suggest that we mandated UTC. (We don't use times in any other form of citations though, and I think the Lua module would see any attempt to add a time to a date as an error.) Imzadi 1979 → 07:17, 6 April 2015 (UTC)
- Regarding whether titles and quotes be the same, I disagree. While the quote can contain the full tweet (without the hashtags as appropriate) the title should be without the quotes as it may be needed to explain the context, such as when a user says "Happy Birthday", and the tweeter replies "Thanks!" -AngusWOOF (talk) 16:59, 6 April 2015 (UTC)
- @AngusWOOF: since the title of a tweet is the full tweet, hashtags and all, any quotation in the middle of that is superfluous to the full tweet, period.
- In your proffered example, the context would require the citation of two separate tweets. You'd end up with something like
<ref>{{cite tweet <details on first tweet...>}}<br/>{{cite tweet <details on reply tweet..>}}</ref>
. To attempt to quote the reply while only citing the original one fails to attribute both authors, even if the link to the original tweet displays the reply. If the reply comes days after original, you'd have issues related to which date to use. By using separate citations, even if combined into the same footnote, you'd properly attribute each other and note the proper date(s) for what are separate tweets. Imzadi 1979 → 18:53, 6 April 2015 (UTC)- Yes, that would be needed if the tweets are not threaded, but in the case where it is threaded only the second tweet is necessary, as in this example: [1] But a double tweet in the ref would be fine. -AngusWOOF (talk) 18:59, 6 April 2015 (UTC)
- There's still the same issue of attribution. Even in that case, you need the work of two separate authors to set up the context, and the template only supports one author because, by design, tweets only have a single author/account. I still think that even with the threading, you'd want to separately cite [2] followed by the reply to keep attribution and dates correct. There's a 6-hour gap between the original and the reply, putting them on separate days according to how Twitter displays them for me. Maybe in other time zones they'd appear to have the same date. Adding date support would require additional modifications to the Lua module that handles CS1 templates though. Imzadi 1979 → 19:45, 6 April 2015 (UTC)
- If the quote and the title are to be the same, then it would be fine to exclude hashtags and @'s (and http:// links, similarly use ellipses) where it doesn't add to the content of the article. Would that make it CS1 compatible? As for the date, it should be mainly dependent on where the RS person in question is situated. This would work if the OP asks their question the day before (or after if they are in the Far East and the RS is in the United States) and is also consistent with news article time stamps coming from whoever posted the article. -AngusWOOF (talk) 01:59, 7 April 2015 (UTC)
- Why would you drop the hashtags, at signs or the links? They're part of the content of the tweet, period. There's no compatibility issues to be worried about with the links, as Twitter drops the "http://" part of a URL in the displayed text. We wouldn't have any issue with the template/MediaWiki software recognizing a link in the middle of the title:
- Gates, Bill [BillGates] (February 26, 2013). "#Polio is 99% eradicated. Join me & @FCBarcelona as we work to finish the job and #EndPolio. VIDEO: b-gat.es/X75Lvy" (Tweet). Retrieved April 6, 2015.
- using that example from the APA Style Blog, and putting it in {{cite web}}, there isn't a need to drop any of the content. If we're going to do this, we should do it properly and reproduce the full tweet.
- As of right now, we can't include publication times in CS1 citations. The Lua module checks the formatting and validity of the dates supplied, and there is no standardized way to handle a time of publication. Adding a time stamp to a citation, at the present, creates an error. For most sources, anything more precise than a day is not needed; for other sources like books, anything more specific than the year of publication is overkill.
- Twitter, like other social media, is different from news articles. The date and time stamp on an article published on cnn.com won't vary based on the time zone of the reader. CNN's time stamps are fixed based on their location in Atlanta, Georgia, United States. However, Twitter reports the date and time stamp on a tweet based on the time zone of the reader. Where I am located at the moment is UTC-5, so a freshly posted tweet would carry a date of April 6, 2015, and a time of 9:48 p.m. If I were located in London, that same tweet would appear with April 7, 2015 at 3:48 a.m. We can't assume or guess the original local time for the person writing a tweet, unless it's geotagged. Printed publications get around this because they'll default to the time zone of the author citing the tweet, which will be fixed because it is in print. If we ever added the capacity to include the time of a tweet, to minimize issues we should then specify that the time be given in UTC. Imzadi 1979 → 02:48, 7 April 2015 (UTC)
- Well that a tweet has that character limit means quoting the entire thing shouldn't be an issue then. -AngusWOOF (talk) 04:25, 7 April 2015 (UTC)
- Why would you drop the hashtags, at signs or the links? They're part of the content of the tweet, period. There's no compatibility issues to be worried about with the links, as Twitter drops the "http://" part of a URL in the displayed text. We wouldn't have any issue with the template/MediaWiki software recognizing a link in the middle of the title:
- If the quote and the title are to be the same, then it would be fine to exclude hashtags and @'s (and http:// links, similarly use ellipses) where it doesn't add to the content of the article. Would that make it CS1 compatible? As for the date, it should be mainly dependent on where the RS person in question is situated. This would work if the OP asks their question the day before (or after if they are in the Far East and the RS is in the United States) and is also consistent with news article time stamps coming from whoever posted the article. -AngusWOOF (talk) 01:59, 7 April 2015 (UTC)
- There's still the same issue of attribution. Even in that case, you need the work of two separate authors to set up the context, and the template only supports one author because, by design, tweets only have a single author/account. I still think that even with the threading, you'd want to separately cite [2] followed by the reply to keep attribution and dates correct. There's a 6-hour gap between the original and the reply, putting them on separate days according to how Twitter displays them for me. Maybe in other time zones they'd appear to have the same date. Adding date support would require additional modifications to the Lua module that handles CS1 templates though. Imzadi 1979 → 19:45, 6 April 2015 (UTC)
- Yes, that would be needed if the tweets are not threaded, but in the case where it is threaded only the second tweet is necessary, as in this example: [1] But a double tweet in the ref would be fine. -AngusWOOF (talk) 18:59, 6 April 2015 (UTC)
- Regarding whether titles and quotes be the same, I disagree. While the quote can contain the full tweet (without the hashtags as appropriate) the title should be without the quotes as it may be needed to explain the context, such as when a user says "Happy Birthday", and the tweeter replies "Thanks!" -AngusWOOF (talk) 16:59, 6 April 2015 (UTC)
- We need not reinvent the wheel here folks. CS1 was heavily based on APA style, and the APA Style Blog has already created guidelines on how to cite social media that we can easily adapt to handle citing tweets. Looking at them, I would suggest:
I have updated the template, and fixed the resulting errors in the error tracking category - Evad37 [talk] 04:43, 10 April 2015 (UTC)
Time variable for Template:Cite tweet
Could we design a time= variable for this template? Tweets always include time-of-day tags and this could help put things in order if multiple tweets from the same day are cited within an article. Ranze (talk) 13:08, 4 April 2015 (UTC)
Cs1 template categories
In Category:Citation Style 1 templates there are a handful of templates that aren't part of the core suite. These are:
- meta-templates
{{Cita news}}
– uses{{cite news}}
{{Citar web}}
– uses{{cite web}}
{{Cite Merck Index}}
– uses{{cite web}}
{{Cite tweet}}
– uses{{cite web}}
{{Cite video game}}
– uses{{cite journal}}
{{Cytuj stronę}}
– uses{{cite web}}
{{Vcite2 journal}}
– uses{{cite journal}}
- Except for
{{Cite Merck Index}}
, these meta-templates aren't specific-source templates so don't belong in Category:Citation Style 1 specific-source templates. It would seem that for all of these but{{Cite Merck Index}}
, we should create a new category Category:Citation Style 1 meta-templates. - identifier-based citations
{{Cite doi}}
– transcludes bot-created{{cite journal}}
templates{{Cite hdl}}
– transcludes other prefilled templates that may or may not be CS1 templates{{Cite isbn}}
– transcludes other prefilled templates that may or may not be CS1 templates{{Cite jstor}}
– transcludes bot-created{{cite journal}}
templates{{Cite pmid}}
– transcludes bot-created{{cite journal}}
templates
- These are all deprecated. I think that they should be placed in their own category outside of Category:Citation Style 1 templates; perhaps Category:Identifier-based citations as a member of Category:Citation templates.
- other
- Because
{{cite pmid}}
, shouldn't this template also be deprecated? Because it is unconditionally linked to{{cite pmid}}
, this template probably belongs in the identifier-based citations category.
Opinions?
—Trappist the monk (talk) 14:35, 4 April 2015 (UTC)
- Another option, which could be in addition to or instead of any of the options above, is to establish a "CS1 core templates" category that would include cite web, cite journal, and the other templates we list in the "official" CS1 table of templates. – Jonesey95 (talk) 14:45, 4 April 2015 (UTC)
- Perhaps another, vaguely related issue is that meta-templates should not redirect their talk pages here because they are not CS1 templates. Yeah, I'm thinking about this because of the
{{cite tweet}}
conversations currently underway.
Category changes done. Instead of Category:Identifier-based citations I used Category:Identifier-based citation templates.
—Trappist the monk (talk) 13:41, 7 April 2015 (UTC)
Today I noticed that all, most, a lot, of the CS1 error categories are also listed in Category:Articles with incorrect citation syntax. Is there any real reason for them to be listed there? The documentation on the category page doesn't apply to Module:Citation/CS1-based errors but to templates that use {{citation error}}
. Because the category page has a 'see also' link to Category:CS1 errors, I see no reason for the CS1 error pages to be listed in both places.
—Trappist the monk (talk) 17:28, 12 April 2015 (UTC)
separator suppression
At Module_talk:Citation/CS1/Feature_requests#Separator suppression is this example:
{{cite AV media |title=[[Whaam!]] |last=Lichtenstein |first=Roy}}
which renders as:
- Lichtenstein, Roy. Whaam!. – a period follows the exclamation point
Without all of the wrapping spans the raw output looks like this:
Lichtenstein, Roy. ''[[Whaam!]]''.
It occurs to me that terminal punctuation inside a wikilink or external link followed by another terminator (a period for CS1 or a comma for CS2) can be detected and the punctuation added by the Module can be easily removed. So I've hacked an experiment to test that notion:
{{cite AV media/new |title=[[Whaam!]] |last=Lichtenstein |first=Roy}}
which renders as:
- Lichtenstein, Roy. Whaam!. – no period
- Lichtenstein, Roy, Whaam!, Publisher –
|mode=cs2
;|publisher=
so the module places a comma before removing it; compare live version of same:- Lichtenstein, Roy, Whaam!, Publisher – has comma
- Lichtenstein, Roy. Whaam!. – no period, no wikilink
- Lichtenstein, Roy. Whaam!. – no period, using
|title-link=Whaam!
Change to {{cite book}}
and add |chapter=Baam?
:
- Lichtenstein, Roy. "Baam?". Whaam!. – no periods
Because the module renders external links slightly differently from Wikilinks:
[//example.com ''Whaam!''].
a different test is required. I don't know of any reason why we couldn't render them both in the same way (with italic markup outside the brackets):
Is there a reason for them to be different?
So, for the time being, the hack in the sandbox does not fix duplicate punctuation for the external link variety of this issue. I recently addressed a similar issue related to editor names. That happened in one place in the code. There is another place that has a long if-then-else test (safe_join()
) that handles it for other portions of the rendered citation.
After the next update, I propose to disable those portions of the code, make the module render Wikilinks and external links with markup outside the brackets, and see if this simpler method of removing duplicate punctuation carries any water.
—Trappist the monk (talk) 19:27, 4 April 2015 (UTC)
And another variation: |trans-title=
:
''Whaam!'' [''Wham!''].
|trans-title=
with |title-link=
:
''[[Whaam!|Whaam!]]'' [''Wham!''].
|trans-title=
with |url=
:
[//example.com ''Whaam!'' [''Wham!'']].
And this same for |chapter=
and |trans-chapter=
:
"Baam?" [Bam?].
when |chapter=
is wikilinked:
"[[Baam?]]" [Bam?].
|chapter-url=
[//example.com "Baam?" [Bam?]].
argh.
—Trappist the monk (talk) 13:13, 5 April 2015 (UTC)
Add code tweaks to test external link detection and add |chapter=Baam?
:
And test these conditions:
!''].
– unlinked trans-title- Lichtenstein, Roy. Whaam! [Wham!].
?].
– unlinked trans-chapter- Lichtenstein, Roy. "Baam?" [Bam?]. Whaam!.
and these:
!'']].
– ext linked trans-title- Lichtenstein, Roy. Whaam! [Wham!].
?]].
– ext linked trans-chapter- Lichtenstein, Roy. "Baam?" [Bam?]. Whaam!.
and these, probably unusual conditions:
!]]''].
– wikilinked trans-title- Lichtenstein, Roy. Whaam! [Wham!].
?]]].
– wikilinked trans-chapter- Lichtenstein, Roy. "Baam?" [Bam?]. Whaam!.
I have placed all of this in a function experiment_strip_dup_punct ()
that does these tests. Before the next update to the live module, I will leave the code enabled but not use the 'fixed' rendering. The code will still categorize citations like this so that I can see how the code is working.
—Trappist the monk (talk) 16:42, 5 April 2015 (UTC)
I've discovered a couple of problems with this idea. The first is that Bibcodes often look like this: 2004PhST..112...20I which the code dutifully turns into: 2004PhST.112..20I and the second occurs when the template mode is CS2, uses |editor-firstn=
where the assigned value is an initial followed by a period. I think that I'm going to discontinue this experiment.
—Trappist the monk (talk) 13:49, 10 April 2015 (UTC)
|authors= not an alias of |last=
|authors=
is not an complete alias of |last=
and hasn't been for a long time.
Wikitext | {{cite book
|
---|---|
Live | Last2. Title. {{cite book}} : Missing |author1= (help); Unknown parameter |authors= ignored (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link)
|
Sandbox | Last2. Title. {{cite book}} : Missing |author1= (help); Unknown parameter |authors= ignored (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link)
|
In Module:Citation/CS1/Configuration, where aliases are defined, is this line:
['Authors'] = {'authors', 'people', 'host', 'credits'}
which defines the parameters that alias to the meta-parameter |Authors=
. Further along in that same module is:
['AuthorList-Last'] = {"author#-last", "author-last#", "last#", "surname#", "Author#", "author#", "authors#", "subject#"}
In that code |last#=
is an alias of |authors#=
. Here, the '#' represents 0 or more digits. This list is used by the module to determine if there are redundant parameters used for author names:
But, when it comes time to assemble the author name-list, a test is made to see if the meta-parameter |Authors=
is set. If it is, the module assumes that |Authors=
contains the complete list of names and does not execute the code that assembles the author name-list from the parameters that alias to |AuthorList-Last=
. This makes some sense because with a complete list of authors in |authors=
there is no need to go through the motions of examining |display-authors=
, |last-author-amp=
, |name-list-format=
, etc.
I guess the question is: What to do about this? In the documentation, we clearly state that |authors=
is an alias of |last=
. Semantically, I think that they ought not be aliases and that |authors#=
should be stricken from |AuthorList-Last=
and from the documentation. There have been discussions elsewhere regarding the use of |authors=
which topic is not part of this discussion. Just to enforce that last statement, the question at hand is:
- Shall
|last=
and|authors=
be aliases of each other?
—Trappist the monk (talk) 19:05, 5 April 2015 (UTC)
- The redundant parameter category is essentially empty (new pages pop in there at a rate of a few per day), so we know that there are essentially no instances of
|last=
and|authors=
in the same citation. That said, I would not be surprised if|lastn=
and|authors=
exist together in many citations, and it looks like the|lastn=
parameters are ignored in that case. That is not desirable.
- What do you propose to do about this situation? Would you list the contents of
|lastn=
/|firstn=
along with|authors=
? Mark the presence of|lastn=
and|authors=
as an error condition? Or something else? If the second option is chosen, that could be a problem, since our documentation has said that|last=
and|authors=
are aliases for a while. – Jonesey95 (talk) 20:37, 5 April 2015 (UTC)
- To gauge opinion and to figure out what to do was the purpose of my post. But, since you've asked, if it is left to me, I propose to:
- strike
|authors#=
from|AuthorList-Last=
- create a new temporary meta-parameter, perhaps
|LastFirstAuthors=
- allow the module to create a list of author names from
|lastn=
,|firstn=
,|authorn=
,|author-maskn=
,|author-linkn=
- if both
|Authors=
and|LastFirstAuthors=
are set, choose one (probably|LastFirstAuthors=
) and emit some sort of redundant parameter error message - strike
|authors=
from the|last=
documentation - create new
|authors=
documentation noting the difference between it and|authorn=
- strike
- —Trappist the monk (talk) 23:30, 5 April 2015 (UTC)
- To gauge opinion and to figure out what to do was the purpose of my post. But, since you've asked, if it is left to me, I propose to:
- I agree with all of the above except step 4, which may require a bit more thought. Right now, if
|authors=
and|last2=
are present, only the value of|authors=
is displayed. Following the procedure (marked "probably") in step 4 would silently change that to prefer|last2=
, and presumably emit a "missing author" error. If the "missing author" error category were already empty, it would be a simple matter of finding these new instances and fixing them to display all of the intended authors, but it currently contains 9,700 articles. The newly changed articles would get lost in the shuffle.
- I agree with all of the above except step 4, which may require a bit more thought. Right now, if
- In short, I would change step 4 to read "(probably
|Authors=
)". I think. – Jonesey95 (talk) 00:24, 6 April 2015 (UTC)
- In short, I would change step 4 to read "(probably
- True, but step 4 also says that it will
emit some sort of redundant parameter error message
which will place the page in Category:Pages with citations having redundant parameters which is not so large.
- True, but step 4 also says that it will
I have implemented items 1–4 from the list above:
{{cite book/new |authors=Authors |last2=Last2 |title=Title}}
- →Last2. Title.
{{cite book}}
: Missing|author1=
(help); Unknown parameter|authors=
ignored (help)CS1 maint: numeric names: authors list (link) {{cite book/new |author=Author |last2=Last2 |title=Title}}
- →Author; Last2. Title.
{{cite book}}
:|author=
has generic name (help)CS1 maint: numeric names: authors list (link) {{cite book/new |author1=Author1 |last2=Last2 |title=Title}}
- →Author1; Last2. Title.
{{cite book}}
:|author1=
has generic name (help)CS1 maint: numeric names: authors list (link) {{cite book/new |authors=Authors |last1=Last1 |title=Title}}
- →Last1. Title.
{{cite book}}
: Unknown parameter|authors=
ignored (help)CS1 maint: numeric names: authors list (link)
—Trappist the monk (talk) 15:10, 7 April 2015 (UTC)
|display-author=etal bug
I've discovered a bug. When a citation has |authors=
and |display-author=etal
the author list is simply et al. This happens because the module inappropriately adds 'et al.' to the empty |last_first_list=
meta parameter. I've fixed it in the sandbox.
Wikitext | {{cite book
|
---|---|
Live | Title. {{cite book}} : Unknown parameter |authors= ignored (help)
|
Sandbox | Title. {{cite book}} : Unknown parameter |authors= ignored (help)
|
The issue doesn't arise with |display-editors=
in the live version because the code to distinguish |editors=
from |editor=
is not present. But, if it were, it would be fixed in the sandbax as well
Wikitext | {{cite book
|
---|---|
Live | Title. {{cite book}} : Unknown parameter |editors= ignored (|editor= suggested) (help)
|
Sandbox | Title. {{cite book}} : Unknown parameter |editors= ignored (|editor= suggested) (help)
|
I've also tweaked the code so that |editors=
is always treated as multiple names so the content of |editors=
in the rendered citation is annotated with (eds.) (where appropriate).
—Trappist the monk (talk) 16:19, 23 April 2015 (UTC)
|editors= not an alias of |editor-last=
I should have made the change described in the above section for |editors=
(plural) because it also is not a complete alias of of |editor-last=
. I have now done so:
{{cite book/new |editors=Editors |editor-last2=Editor Last2 |title=Title}}
- →Editor Last2 (ed.). Title.
{{cite book}}
:|editor-last2=
has generic name (help); Missing|editor1=
(help); Unknown parameter|editors=
ignored (|editor=
suggested) (help)CS1 maint: numeric names: editors list (link) {{cite book/new |editor=Editor |editor-last2=Editor Last2 |title=Title}}
- →Editor; Editor Last2 (eds.). Title.
{{cite book}}
:|editor=
has generic name (help)CS1 maint: numeric names: editors list (link) {{cite book/new |editor1=Editor1 |editor-last2=Editor Last2 |title=Title}}
- →Editor1; Editor Last2 (eds.). Title.
{{cite book}}
:|editor1=
has generic name (help)CS1 maint: numeric names: editors list (link) {{cite book/new |editors=Editors |editor-last1=Editor Last1 |title=Title}}
- →Editor Last1 (ed.). Title.
{{cite book}}
:|editor-last1=
has generic name (help); Unknown parameter|editors=
ignored (|editor=
suggested) (help)CS1 maint: numeric names: editors list (link)
—Trappist the monk (talk) 10:23, 23 April 2015 (UTC)
Questions regarding citation of a government report
I would like to cite this section of this report for use in October Surprise conspiracy theory and related articles. I am wondering if the following is sufficient:
- <ref name="October Surprise Task Force">{{cite book |title=Joint report of the Task Force to Investigate Certain Allegations Concerning the Holding of American Hostages by Iran in 1980 ("October Surprise Task Force") |url=http://babel.hathitrust.org/cgi/pt?id=mdp.39015060776773;view=1up;seq=1 |date=January 3, 1993 |publisher=United States Government Printing Office |location=Washington, D.C. |page=147|chapter=VII. Alleged Attempts to Delay the Release of the Hostages |chapterurl=http://babel.hathitrust.org/cgi/pt?id=mdp.39015060776773;view=1up;seq=161;size=150 |ref={{harvid|"October Surprise Task Force"|1993}}}}</ref>
Which gives...
- "VII. Alleged Attempts to Delay the Release of the Hostages". Joint report of the Task Force to Investigate Certain Allegations Concerning the Holding of American Hostages by Iran in 1980 ("October Surprise Task Force"). Washington, D.C.: United States Government Printing Office. January 3, 1993. p. 147.
{{cite book}}
: External link in
(help); Unknown parameter|chapterurl=
|chapterurl=
ignored (|chapter-url=
suggested) (help)
You may notice that I used {{Cite book}} and that I did not fill in |author=
; I wasn't sure if the author should be United States House of Representatives or just House October Surprise Task Force. Should I also place "H. Rept. No. 102-1102" somewhere? Thanks again! - Location (talk) 15:45, 7 April 2015 (UTC)
- I think that it's VIII
- I'd use
|url=http://hdl.handle.net/2027/mdp.39015060776773
, the book's permalink, and|chapter-url=http://hdl.handle.net/2027/mdp.39015060776773?urlappend=%3Bseq=161
, the chapter's permalink.
- I have no strong opinion about
|author=
except that I think the nickname 'October Surprise Task Force' is too informal.
- —Trappist the monk (talk) 16:24, 7 April 2015 (UTC)
- I agree on the comment about informality of the name. Personally, I'd use the official name of the task force as the author. As for the report number,
|id= H. Rept. No. 102-1102
should work to include it. Adding|oclc= 27492534
(OCLC 27492534) to link to the library catalog entry is another beneficial extension of the citation for readers. Imzadi 1979 → 16:47, 7 April 2015 (UTC)- Thanks for the feedback. Although it makes the citation quite lengthy, I used the formal name in
|author=
but House October Surprise Task Force for its link:- Task Force to Investigate Certain Allegations Concerning the Holding of American Hostages by Iran in 1980 (January 3, 1993). "VIII. Alleged Attempts to Delay the Release of the Hostages". Joint report of the Task Force to Investigate Certain Allegations Concerning the Holding of American Hostages by Iran in 1980 ("October Surprise Task Force"). Washington, D.C.: United States Government Printing Office. p. 147. OCLC 27492534. H. Rept. No. 102-1102.
{{cite book}}
: External link in
(help); Unknown parameter|chapterurl=
|chapterurl=
ignored (|chapter-url=
suggested) (help)CS1 maint: numeric names: authors list (link)
- Task Force to Investigate Certain Allegations Concerning the Holding of American Hostages by Iran in 1980 (January 3, 1993). "VIII. Alleged Attempts to Delay the Release of the Hostages". Joint report of the Task Force to Investigate Certain Allegations Concerning the Holding of American Hostages by Iran in 1980 ("October Surprise Task Force"). Washington, D.C.: United States Government Printing Office. p. 147. OCLC 27492534. H. Rept. No. 102-1102.
- By the way, where did you find the OCLC number? - Location (talk) 18:22, 7 April 2015 (UTC)
- The webpage displaying the report has a link on its left side to "Find in a library". Clicking that takes you to the worldcat.org entry: http://www.worldcat.org/title/joint-report-of-the-task-force-to-investigate-certain-allegations-concerning-the-holding-of-american-hostages-by-iran-in-1980-october-surprise-task-force/oclc/27492534 . Imzadi 1979 → 18:36, 7 April 2015 (UTC)
- Thanks again! - Location (talk) 19:53, 7 April 2015 (UTC)
- The webpage displaying the report has a link on its left side to "Find in a library". Clicking that takes you to the worldcat.org entry: http://www.worldcat.org/title/joint-report-of-the-task-force-to-investigate-certain-allegations-concerning-the-holding-of-american-hostages-by-iran-in-1980-october-surprise-task-force/oclc/27492534 . Imzadi 1979 → 18:36, 7 April 2015 (UTC)
- Thanks for the feedback. Although it makes the citation quite lengthy, I used the formal name in
- I agree on the comment about informality of the name. Personally, I'd use the official name of the task force as the author. As for the report number,
Exclude some templates from citation errors?
Is it possible to exclude some template pages from citation errors, such as Template:AASHTO minutes and Template:Accu-Stats? Note that I'm just asking about the template pages themselves, not incorrect uses of the templates in articlespace. Thanks! GoingBatty (talk) 01:23, 8 April 2015 (UTC)
- There is some way to do this with
<noinclude>
statements, but some people got hot and bothered when it was done to a batch of template pages a while ago, so I'm not inclined to mess with it. I'm open to clever suggestions, because they bug me when I run a report of templates with errors using catscan. – Jonesey95 (talk) 02:30, 8 April 2015 (UTC)- Actually, I think you probably want WP:INCLUDEONLY (
<includeonly>...</includeonly>
) so that the code is processed in transclusions, but not for the template itself - Evad37 [talk] 02:40, 8 April 2015 (UTC)- This would fix his immediate issue but restricts viewing the templates and isn't really a long-term change. --Izno (talk) 16:36, 8 April 2015 (UTC)
- Actually, I think you probably want WP:INCLUDEONLY (
- Probably what core should do is avoid categorizing any errors outside mainspace/draftspace. --Izno (talk) 03:52, 8 April 2015 (UTC)
Given the variety of answers to the original question, it would seem that the original question is a bit imprecise.
But, it did bring to mind something that has been fermenting at the back of my brain for a while. I have noticed that Module:Citation/CS1 categorizes pages that perhaps ought not be categorized. For example, we categorize archived pages, log pages, sandbox pages, testcases pages, and, undoubtedly, others as well. I don't think that it would be too difficult to prevent categorization of these pages if we can come up with a complete list of them.
I've added a snippet of code to Module:Citation/CS1/sandbox that sets the don't-categorize flag when an article title matches any of these simple Lua patterns:
/[Aa]rchive
/[Ll]og
/sandbox
/testcases
Others that might be added are:
/%d%d%d%d
– subpage starts with a year/%a+ %d%d%d%d
– subpage starts with month (or some other text) followed by year
Opinions?
—Trappist the monk (talk) 14:25, 8 April 2015 (UTC)
- I'm amenable (obviously) to starting to de-categorize certain classes of pages. My query would be: why not (additionally?) by namespace? Do we see any particular uses for such categories outside the main/draftspace? --Izno (talk) 16:38, 8 April 2015 (UTC)
- To Trappist: I strongly support removing /sandbox and /testcases from categorization. I do not support summarily decategorizing /Archive and /Log. I just fix those pages instead, and I have had zero complaints (that I can remember, at least).
- To Izno: We already exclude some namespaces. Here's a previous discussion. Please read that discussion and then let us know what namespaces you would recommend that we completely exclude from categorization. I am definitely open to suggestions.
- Excluding the Template namespace is not a good idea, as there are plenty of times when templates have errors that should be fixed, and sometimes those templates are transcluded in hundreds or thousands of pages. If you look through some of my edits, you can see examples of fixes I have made to citation errors in templates.
- To GoingBatty: Clarifying your question, it sounds like you are asking how to exclude Template pages when the transcluded version of the template does not produce errors, but the example version of the template given on the Template's own page has an error. I think that
<includeonly>...</includeonly>
is the way to do that, but I don't remember how to do it. There might be some chatter about it in my Talk page archives. – Jonesey95 (talk) 20:00, 8 April 2015 (UTC)
- To GoingBatty: Clarifying your question, it sounds like you are asking how to exclude Template pages when the transcluded version of the template does not produce errors, but the example version of the template given on the Template's own page has an error. I think that
- Ok, archive and log removed. Are there others that should be added to sandbox and testcases?
Still hidden error messages
These five categories of errors still hide their error messages. Can/should any of these be unhidden?
- Category:Pages using citations with accessdate and no URL – 0
- Category:Pages using web citations with no URL – 0
- Category:Pages containing cite templates with deprecated parameters – 0
- Category:Pages using citations with format and no URL – 0
- Category:Pages using citations with old-style implicit et al. in editors – 0
—Trappist the monk (talk) 14:46, 9 April 2015 (UTC)
- Unhidden as in publicly flogged with red splotches? Yikes. I have a bunch of citations with explicit et als. to revise, but I am waiting for a better resolution of the "missing title" message (a related issue) before proceeding. I would rather keep both of those categories hidden for a while longer. ~ J. Johnson (JJ) (talk) 19:34, 9 April 2015 (UTC)
- The RFC that governs the hiding of these messages says that they should be turned off "until an appropriate bot fixes resolvable instances of the error." We can turn on the error messages in the category when it is not feasible for a bot to fix any of the existing/remaining errors in a given category. Here's my understanding of where each of these categories stands:
- Category:Pages using citations with accessdate and no URL – A morass. There is no consensus about what to do with this category, despite multiple discussions over the years.
- Category:Pages using web citations with no URL – Nobody has proposed a way to address this category with a bot. I have not seen any discussion about this category. If we decide that it is not possible for a bot to fix these errors, the error messages can be displayed.
- Category:Pages containing cite templates with deprecated parameters – Monkbot has drastically reduced the number of errors in this category. I think that a significant fraction of the remaining articles are bot-fixable.
- Category:Pages using citations with format and no URL – Nobody has proposed a way to address this category with a bot. I have not seen any discussion about this category. If we decide that it is not possible for a bot to fix these errors, the error messages can be displayed.
- Category:Pages using citations with old-style implicit et al. in editors – These articles could be fixed by Citation Bot or a bot with similar journal lookup capabilities. I requested this feature a while ago. Citation Bot is not actively maintained.
- Please discuss the individual categories below. If my summaries above are incorrect, please post corrections below, and I will add strikethrough markup to, and adjust, the summaries. – Jonesey95 (talk) 23:17, 9 April 2015 (UTC)
Pages using citations with accessdate and no URL
Someone should troll through the archives for previous discussions before rehashing them here. – Jonesey95 (talk) 23:17, 9 April 2015 (UTC)
- A list of links to many of these previous discussions is included in my recent census of data for this error. The last link in the list was not updated by a bot before the post was moved to the archives - it is found at [3]. Stamptrader (talk) 22:02, 13 April 2015 (UTC)
Pages using web citations with no URL
Pages containing cite templates with deprecated parameters
I am willing to work to help Monkbot clear up bot-fixable entries in this category. – Jonesey95 (talk) 23:17, 9 April 2015 (UTC)
- I have a script that will clear a lot of the
|name-list-format=
related parameter errors but I stopped running it because of this RfC which remains open.
- A rather significant amount of what remains is
|coauthors=
that Monkbot, without a rewrite, can't do much about. So I'm going to say that this category should remain hidden for now.
Pages using citations with format and no URL
Pages using citations with old-style implicit et al. in editors
There are only about 750 articles in this category, so we could just fix them and then eliminate the category as we did with the "et al. in authors" category. I think that this would be the easiest path. – Jonesey95 (talk) 23:17, 9 April 2015 (UTC)
- Like I said above, I have a handful of articles where a suitable fix (for which Citation Bot is not competent) is tied into other stuff which is not yet ready. ~ J. Johnson (JJ) (talk) 20:09, 10 April 2015 (UTC)
- To editors Jonesey95 and J. Johnson: I've just noticed today that, in addition to CS1 errors in red, there are now notices of CS1 maintenance in green, which link to various maintenance categories. The reason I'm asking about this here is that the first one I came across was the CS1 maint: Explicit use of et al. category. I haven't been able to find much information on these categories, so I am compelled to ask, "Is this how the 'et al. in authors' category you mention was 'eliminated'? just by redefining it from an 'error' to a 'maintenance' item?" – Paine EllsworthCLIMAX! 02:42, 13 April 2015 (UTC)
- Implicit et al. is an error message (red) and caused by citations that have exactly four editors. In the old
{{citation/core}}
version, templates with four or more editors would display three editors followed by et al. In the Module:Citation/CS1 version, you can display as many as you'd like. The implicit (red) message was there because the Module mimics{{citation/core}}
. Once Category:Pages using citations with old-style implicit et al. in editors is cleared, that error message will go away.
- Implicit et al. is an error message (red) and caused by citations that have exactly four editors. In the old
- Explicit et al. refers to the intentional addition of the text string et al. (in a variety of flavors) to any of the author or editor parameters. This is a maintenance category with attendant green messages because at the time the code was developed there wasn't a viable 'solution' to the problem (the et al. text corrupts the COinS meta data). At the next update of the Module, editors will be able to set
|display-authors=etal
and|display-editors=etal
so that the template displays the et al. text regardless of how many authors/editors are included in the template.
- Explicit et al. refers to the intentional addition of the text string et al. (in a variety of flavors) to any of the author or editor parameters. This is a maintenance category with attendant green messages because at the time the code was developed there wasn't a viable 'solution' to the problem (the et al. text corrupts the COinS meta data). At the next update of the Module, editors will be able to set
- Paine Ellsworth, the maintenance category and the original authors category are unrelated. See this discussion for an explanation of how the display-authors et al. category was eliminated through hard work, not through any sort of sleight of hand. – Jonesey95 (talk) 13:49, 13 April 2015 (UTC)
- Thank you both for helping me to fill in the gaps of my understanding. I really did not mean to imply any "sleight of hand", Jonesey95, only perhaps a lowering of priorities so that more important issues may be more easily seen and addressed. I see now that I was mixing apples and oranges. Thank you again, and we wish the best of everything to you and yours! – Paine EllsworthCLIMAX! 08:59, 14 April 2015 (UTC)
- To editors Jonesey95, Trappist the monk and J. Johnson: Thank you so much for this! I fixed one in the Java Man article and several more at Mitochondrion, and it works great! Thank you! and Best of everything to you and yours! – Paine 00:15, 19 April 2015 (UTC)
Update to the live CS1 module weekend of 18–19 April 2015
On the weekend of 18–19 April I propose to update the live CS1 module files from the sandbox counterparts:
Changes to Module:Citation/CS1 are:
- migrate
{{cite episode}}
; discussion - migrate
{{cite serial}}
; discussion - fix
|type=
anomaly in cite map; discussion - fix duplicate separator character bug; discussion
- add
|sheet=
,|sheets=
, and|trans-map=
for cite map; discussion - migrate
{{cite arxiv}}
; discussion - add support for multiple comma-separated languages in
|language=
; discussion - add support for
|archive-format=
,|conference-format=
,|contribution-format=
,|event-format=
,|lay-format=
,|section-format=
,|transcript-format=
; add automatic pdf detection and annotation; discussion; discussion - expand accepted character sets for Vancouver style; discussion
|display-authors=etal
support; discussion|authors=
not (and hasn't ever really been) an alias of|lastn=
; discussion- categorize expired PMC embargoes; discussion
- do not categorize /sandbox and /testcases subpages; discussion
- move static text (properties and maintenance category names, default title types) to Module:Citation/CS1/Configuration/sandbox;
Changes to Module:Citation/CS1/Configuration are:
- add
|credits=
,|began=
,|ended=
, for{{cite episode}}
and{{cite serial}}
; - add
|sheet=
,|sheets=
, and|trans-map=
for{{cite map}}
; - add
|class=
,|eprint=
for{{cite arxiv}}
; - add
|archive-format=
,|conference-format=
,|contribution-format=
,|event-format=
,|lay-format=
,|section-format=
,|transcript-format=
; discussion; discussion - remove
Authors#
fromAuthorList-Last
-|authors=
not an alias of|last=
; discussion - remove invalidated
|DoiBroken=
,|Embargo=
,|PPPrefix=
(standardizing on the lower case versions of these parameter names); discussion - add
citation_config.maint_cats
table; - made all tables local; add
uncategorized_subpages
,prop_cats
,title_types
tables;
Changes to Module:Citation/CS1/Whitelist are:
- add
|credits=
,|began=
,|ended=
, for{{cite episode}}
and{{cite serial}}
; - add
|episode=
for cite serial; - add
|sheet=
,|sheets=
, and|trans-map=
for{{cite map}}
; - add
|class=
,|eprint=
for{{cite arxiv}}
; - add
|archive-format=
,|conference-format=
,|contribution-format=
,|event-format=
,|lay-format=
,|section-format=
,|transcript-format=
; discussion; discussion - invalidated
|authorsn=
and|editorsn=
; discussion - deprecated
|Authorn=
,|Editorn=
,|EditorGivenn=
,|EditorSurnamen=
(standardizing on the lower case versions of these parameter names); discussion - invalidated
|DoiBroken=
,|Embargo=
,|PPPrefix=
(standardizing on the lower case versions of these parameter names); discussion - make all tables local;
Changes to Module:Citation/CS1/Date validation are:
- add "Christmas" as a valid month/season; discussion
- refined
|access-date=
checking; discussion
—Trappist the monk (talk) 11:00, 11 April 2015 (UTC)
- Thoughts on incorporating
|orig-date=
, perhaps by aliasing|orig-year=
to it? (discussion) ~ Tom.Reding (talk ⋅contribs ⋅dgaf) 16:58, 11 April 2015 (UTC)
- Trappist the monk, please post here when you have made the above edits so that we can update the documentation. Am I correct in thinking that we will be able to remove all of the non-Lua text from the template documentation files? – Jonesey95 (talk) 23:04, 11 April 2015 (UTC)
- Yes, I think so.
- I checked all of the transclusions of Template:Citation Style documentation/author, one of our documentation subtemplates (from which non-Lua documentation will be removed), and it was being used by only two templates that were not "CS1 core" templates: {{Cite wikisource}} and {{Cite IETF}}. Both use {{citation/core}} to render citations. I substed the non-Lua documentation into those templates' documentation pages, and I left a note on the talk page for each to explain that watchers there should check the documentation for accuracy.
- I also checked transclusions of the CS1 title documentation, figuring that author and title would be transcluded most frequently. It looks like we are OK to proceed with removing non-Lua wording from all of these doc templates after the module update. – Jonesey95 (talk) 14:16, 12 April 2015 (UTC)
- Hold up! Let's not be over hasty in deprecating the
|author=
(|authorN=
) parameter. Doing so was a comment on the indicated discussion, it was not actually discussed. Some authorship is attributed to groups or organizations, the names of which do not map into first/last (personal/surname), so we do need a general "author's name" parameter (note possessive form). I believe the deprecation we discussed was of plural "authors". Similarly for "editors". ~ J. Johnson (JJ) (talk) 18:30, 16 April 2015 (UTC)
|authors=
(plural) is not deprecated:- nor is
|author=
(singular) - nor is
|authorn=
(also singular) - —Trappist the monk (talk) 18:42, 16 April 2015 (UTC)
- Under "Changes to Module:Citation/CS1/Whitelist" you have:
- "7. deprecated
|Authorn=
,|Editorn=
...."
- "7. deprecated
- Is there something here I don't understand? ~ J. Johnson (JJ) (talk) 19:31, 16 April 2015 (UTC)
- I think that's just the capitalized version he's removing support for. --Izno (talk) 19:34, 16 April 2015 (UTC)
- Under "Changes to Module:Citation/CS1/Whitelist" you have:
- Yes, non-standard capitalization per this discussion.
- —Trappist the monk (talk) 19:42, 16 April 2015 (UTC)
- We are standardizing on all lower case for parameter names, except for initialisms like DOI, ISBN, and similar identifiers. So
|authors=
is fine, but|Authors=
is being deprecated. Note the non-standard capital "A" in the second parameter name. If you look at the Whitelist now, you will see only a few parameters that start with capital letters. They are essentially never used, so it should not be a burden to deprecate them. Sorry for any confusion. – Jonesey95 (talk) 21:15, 16 April 2015 (UTC)
- We are standardizing on all lower case for parameter names, except for initialisms like DOI, ISBN, and similar identifiers. So
- —Trappist the monk (talk) 19:42, 16 April 2015 (UTC)
- Ah, yes. I was thinking we were being casual about case. I'll talk with my barista about adjusting my caffeination. ~ J. Johnson (JJ) (talk) 21:15, 16 April 2015 (UTC)
Update complete
This update is complete. Most documentation has been updated. If you notice any errors or omissions, please post your findings here. – Jonesey95 (talk) 04:40, 19 April 2015 (UTC)
- I noticed that the deprecated parameters
|began=
and|ended=
are still shown in the {{Cite episode}} documentation. There may well be others, this is simply one that I noticed while cleaning up CS1 errors earlier tonight. Stamptrader (talk) 04:55, 19 April 2015 (UTC)- Good catch. Fixed.
- I have noticed that some of the "if lua" statements have not been removed from documentation subpages, but it's late at night where I am, and I do not trust my brain to do complex editing at this time of night. – Jonesey95 (talk) 05:33, 19 April 2015 (UTC)
- Another small point regarding the update (but not the documentation) - there seems to have been code added to the module to capitalize the contents of the
|format=
parameter. A large number of citations (about 6800 according to an insource: search) populate the|format=
parameter with[[Portable Document Format|PDF]]
, creating a wikilink to the PDF article. However, the module code turns the parameter contents into[[PORTABLE DOCUMENT FORMAT|PDF]]
, which created a red patch of text because there wasn't a Wikipedia article with that capitalization. There is now, I created a redirect page to get rid of the red ink, but there may be other examples cropping up. Stamptrader (talk) 07:30, 19 April 2015 (UTC)
- Another small point regarding the update (but not the documentation) - there seems to have been code added to the module to capitalize the contents of the
- I have noticed that some of the "if lua" statements have not been removed from documentation subpages, but it's late at night where I am, and I do not trust my brain to do complex editing at this time of night. – Jonesey95 (talk) 05:33, 19 April 2015 (UTC)
Fixed in the sandbox.
Wikitext | {{cite web
|
---|---|
Live | "Title" (pdf). |
Sandbox | "Title" (pdf). |
—Trappist the monk (talk) 10:57, 19 April 2015 (UTC)
But, just to be a counterpoint:
Wikitext | {{cite map
|
---|---|
Live | Ohio Department of Highways (1930). Map of Ohio showing State Routes (MrSID) (Map). |
Sandbox | Ohio Department of Highways (1930). Map of Ohio showing State Routes (MrSID) (Map). |
The "r" in MrSID shouldn't be capitalized. Imzadi 1979 → 11:25, 19 April 2015 (UTC)
- Ok, no case shifting.
With the format added automatically, anything that was using (or rather, misusing) |type=PDF
now shows (PDF) twice, eg:
Wikitext | {{cite map
|
---|---|
Live | Title (PDF) (PDF). |
Sandbox | Title (PDF) (PDF). |
Could this or should this be tracked, and/or would this be fixable with an AWB run? (The real examples I noticed are at this revision of North West Coastal Highway, but I intend to fix them shortly.) - Evad37 [talk] 13:02, 19 April 2015 (UTC)
- An insource: search for
/\| *type *= *pdf/
finds about 400 instances of|type=pdf
. I'm just now working on an AWB script that will remove the now redundant|format=pdf
when|url=
points to one of the MediWiki recognized pdf file extensions so making a tweak to that code to handle|type=pdf
fits nicely.
- —Trappist the monk (talk) 13:15, 19 April 2015 (UTC)
- I don't agree that
|format=pdf
is redundant. It might well be in the English Wikipedia at the moment, but (1) urls can change and often remove the Mediawiki recognised pdf file extensions; (2) our articles are translated and reused in other wikis where there is no guarantee of support for automatic addition of the PDF indicator. We should not be needlessly throwing away data just because of our own assumptions about redundancy. --RexxS (talk) 18:58, 19 April 2015 (UTC)
- I don't agree that
chapter and section
Nothing in {{tl:cite book}} suggests that chapter and section are mutually exclusive. Ideally they should be allowed concurrently, but at a minimum the documentation should reflect that it is not permitted. The particular case I wanted was
{{cite book|last1=Bowen
|first1=Ray M.
|authorlink1=
|last2=Wang
|first2=C.-C.
|last3=Ratiu
|first3=T.
|title=INTRODUCTION TO VECTORS AND TENSORS, Linear and Multilinear Algebra, Volume 1
|url=http://repository.tamu.edu/bitstream/handle/1969.1/2502/IntroductionToVectorsAndTensorsVol1.pdf
|format=PDF
|year=2010
|language=English
|isbn=0-306-37508-7
|page=214
|chapter=Chapter 7 TENSOR ALGEBRA
|section=Section 32. The Second Dual Space, Canonical Isomorphisms
|quote=Since the isomorphism J is defined without using any structure in addition to the vector space structure on V. , its notation can often be suppressed without any ambiguity. We shall adopt such a convention here and identify any v \in V as a linear function on <Math>V^*.
|separator= ,
|lastauthoramp=}}
, where Section 32 is within Chapter 7.
Shmuel (Seymour J.) Metz Username:Chatul (talk) 19:46, 12 April 2015 (UTC)
- In such cases I would usually just use a contribution (or chapter) parameter referring to the section, but with the chapter number attached:
|contribution=7.32 The Second Dual Space, Canonical Isomorphisms
. If you really need the chapter title you can also include it as part of the same parameter. By the way, please do not use all-caps in the book and chapter titles, per MOS:CAPS. —David Eppstein (talk) 20:07, 12 April 2015 (UTC)- There is also the other case where a book is in volumes, subdivided into sections (or parts) for some editions and then chapters within those sections (or parts). Take for example versions of Magna Britannia;: Being a Concise Topographical Account of ..., Volume 2, Part 2. Of course one can hack in the different combinations, but it would be better if books could have volume, section, part and chapter, to be combined as needed to follow usage in the book. -- PBS (talk) 12:35, 13 April 2015 (UTC)
- It bothers me to use a parameter explicitly named "chapter" for something not a chapter. But in the case here it seems to me that you have to decide whether the source is the book, or a chapter in the book. The latter is typically where the chapters have separate authorship. But this is rarely so at the level of sections (though I have seen exceptions). Citing a section is typically an in-source location of specific material, of which there may be multiple instances in given source. Such in-source specfification is best done at the level of the short cite. E.g.: "Smith et al. (2009), §26". ~ J. Johnson (JJ) (talk) 19:52, 13 April 2015 (UTC)
- In the example given above, the source is the whole book (by Bowen and Wang), and the chapter, section and page number are all in-source location information. The usual citation style would just give the page number. There's sometimes a tendency to think that if a template has fields, they should be filled in. Kanguole 21:29, 13 April 2015 (UTC)
- It bothers me to use a parameter explicitly named "chapter" for something not a chapter. But in the case here it seems to me that you have to decide whether the source is the book, or a chapter in the book. The latter is typically where the chapters have separate authorship. But this is rarely so at the level of sections (though I have seen exceptions). Citing a section is typically an in-source location of specific material, of which there may be multiple instances in given source. Such in-source specfification is best done at the level of the short cite. E.g.: "Smith et al. (2009), §26". ~ J. Johnson (JJ) (talk) 19:52, 13 April 2015 (UTC)
- Indeed. There is also confusion between use of "pages" in a full citation to indicate the location of the source within the work, and the in-source specification of a particular location. Then there is the classical footnote usage of including the full citation in the first reference, along with the specific page number. In a certain respect all of this is simple, but it is also a little bit complicated, and I despair that we will ever (in my lifetime?) have a simple, understandable explanation of all this. ~ J. Johnson (JJ) (talk) 22:15, 13 April 2015 (UTC)
- Re the page number ambiguity: yes. This is especially problematic when the citation is to a journal article (where by convention we always list the page number range for the whole article) but where we want to refer to a specific point within the article. The way I generally handle this is something like what you recommend above with a short cite: give the full journal citation (with the full page range), but then either at the same place or in a footnote referring to the article give the more specific location where a quote or result can be found. —David Eppstein (talk) 23:19, 13 April 2015 (UTC)
- Indeed. There is also confusion between use of "pages" in a full citation to indicate the location of the source within the work, and the in-source specification of a particular location. Then there is the classical footnote usage of including the full citation in the first reference, along with the specific page number. In a certain respect all of this is simple, but it is also a little bit complicated, and I despair that we will ever (in my lifetime?) have a simple, understandable explanation of all this. ~ J. Johnson (JJ) (talk) 22:15, 13 April 2015 (UTC)
cite arxiv tweaks
Something I missed:
|version=
should have been deprecated because it can and should be concatenated onto |arxiv=
or |eprint=
. I have fixed that in the sandbox:
{{Cite arXiv/new |eprint=1004.5110 |class=physics.atom-ph |title= Extreme ultraviolet frequency comb metrology |version=v2 |date=10 May 2010 |first1=Dominik Z. |last1=Kandula |first2=Christoph |last2=Gohle |first3=Tjeerd J. |last3=Pinkert |first4=Wim |last4=Ubachs |first5=Kjeld S.E. |last5=Eikema}}
- →Kandula, Dominik Z.; Gohle, Christoph; Pinkert, Tjeerd J.; Ubachs, Wim; Eikema, Kjeld S.E. (10 May 2010). "Extreme ultraviolet frequency comb metrology". arXiv:1004.5110 [physics.atom-ph].
{{cite arXiv}}
: Unknown parameter|version=
ignored (help)
—Trappist the monk (talk) 18:25, 18 April 2015 (UTC)
Suggestion for maintenance category: redundant "edition" or "ed" used in |edition
Would it make sense to set up a maintenance category for citations using a redundant "ed." or "edition" in the |edition=
parameter? Like this:
Wikitext | {{cite book
|
---|---|
Live | Book author. Book title (2nd edition ed.). {{cite book}} : |author= has generic name (help); |edition= has extra text (help)
|
Sandbox | Book author. Book title (2nd edition ed.). {{cite book}} : |author= has generic name (help); |edition= has extra text (help)
|
I have seen "edition", "Edition", "ed", "ed.", and possibly other variants in the wild. A bot or AWB script should be able to tidy these without much fuss, and without the need for a red error message. – Jonesey95 (talk) 05:10, 20 April 2015 (UTC)
- Added detection of 'edition', 'ed', 'ed.' (insensitive to first letter case) where they occur at the end of
|edition=
:- Book author. Book title (2nd Edition ed.).
{{cite book}}
:|author=
has generic name (help);|edition=
has extra text (help) - Book author. Book title (2nd ed ed.).
{{cite book}}
:|author=
has generic name (help);|edition=
has extra text (help) - Book author. Book title (2nd Ed. ed.).
{{cite book}}
:|author=
has generic name (help);|edition=
has extra text (help) - Book author. Book title (Edition Grande Plus ed.).
{{cite book}}
:|author=
has generic name (help)
- Book author. Book title (2nd Edition ed.).
- Are there other versions of this that should be detected?
- Are there other parameters that should be handled the same way?
- I can't think of anything that I have actually seen, but it stands to reason that there are instances of "pp." within the
|pages=
parameter. I would prefer to find some in the wild before adding code to the module, since coding for hypothetical problems is the first step to madness. – Jonesey95 (talk) 13:30, 20 April 2015 (UTC)
- I can't think of anything that I have actually seen, but it stands to reason that there are instances of "pp." within the
- Yep, these insource: search strings:
insource:/\| *page *= *p/
found 442 instancesinsource:/\| *pages *= *p/
found 4334 instancesinsource:/\| *nopp *= *[YyTt]/
found 1726 instances
- Given this, it seems that we might also add categorize citations into Category:CS1 maint: Extra text when
|page(s)=p n
,|page(s)=p. n
,|page(s)=pp n
,|page(s)=pp. n
,|page(s)=page n
,|page(s)=pages n
, wheren
can be any letter nor number, but not when|nopp=
is set. So I'll work on that.
- Yep, these insource: search strings:
- Sandbox tweaked. These of various forms of p. and pp.:
|page=123
– Title. p. 123.{{cite book}}
: Cite has empty unknown parameter:|nopp=
(help)|page=p123
– Title. p. p123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|page=pp123
– Title. p. pp123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|page=p 123
– Title. p. p 123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|page=pp 123
– Title. p. pp 123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|page=p.123
– Title. p. p.123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|page=p. 123
– Title. p. p. 123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|page=pp.123
– Title. p. pp.123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|page=pp. 123
– Title. p. pp. 123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)
- pages:
|pages=123
– Title. p. 123.{{cite book}}
: Cite has empty unknown parameter:|nopp=
(help)|pages=p123
– Title. pp. p123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=pp123
– Title. pp. pp123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=p 123
– Title. pp. p 123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=pp 123
– Title. pp. pp 123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=p.123
– Title. pp. p.123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=p. 123
– Title. pp. p. 123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=pp.123
– Title. pp. pp.123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=pp. 123
– Title. pp. pp. 123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)
- and for page and pages:
|page=page123
– Title. p. page123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|page=page 123
– Title. p. page 123.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=pages123
– Title. pp. pages123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=pages 123
– Title. pp. pages 123.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|page=pagerange
– Title. p. pagerange.{{cite book}}
:|page=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)|pages=pagerange
– Title. pp. pagerange.{{cite book}}
:|pages=
has extra text (help); Cite has empty unknown parameter:|nopp=
(help)
- Shouldn't categorize:
|pages=preface, 123
– Title. pp. preface, 123.{{cite book}}
: Cite has empty unknown parameter:|nopp=
(help)|page=Preface
– Title. p. Preface.{{cite book}}
: Cite has empty unknown parameter:|nopp=
(help)|pages=p 123
|nopp=y
– Title. p 123.{{cite book}}
:|pages=
has extra text (help); Unknown parameter|nopp=
ignored (|no-pp=
suggested) (help)|page=page 123
|nopp=y
– Title. page 123.{{cite book}}
:|page=
has extra text (help); Unknown parameter|nopp=
ignored (|no-pp=
suggested) (help)
- Doesn't categorize because at least some of these could be legitimate:
|pages=pA1
– Title. pp. pA1.{{cite book}}
: Cite has empty unknown parameter:|nopp=
(help)|page=p.A1
– Title. p. p.A1.{{cite book}}
: Cite has empty unknown parameter:|nopp=
(help)|pages=ppA1
– Title. pp. ppA1.{{cite book}}
: Cite has empty unknown parameter:|nopp=
(help)|pages=pp.A1
– Title. pp. pp.A1.{{cite book}}
: Cite has empty unknown parameter:|nopp=
(help)
- I have also limited the set of allowable parameter values for
|nopp=
toyes
,y
,true
(case insensitive) because|nopp=no
turns off the page prefixes but shouldn't. An insource: search forinsource:/\| *nopp *= *[Nn]/
found one instance which I shall fix.
- Sandbox tweaked. These of various forms of p. and pp.:
- —Trappist the monk (talk) 14:02, 21 April 2015 (UTC)
- You probably should make sure that any error checks for p or pp in page/pages is not carried out in cite journal, as they are likely to be intentionalNigel Ish (talk) 17:14, 21 April 2015 (UTC)
- Can I have an example of where it makes sense to include p. or pp. in the page specification of a journal article?
- You probably should make sure that any error checks for p or pp in page/pages is not carried out in cite journal, as they are likely to be intentionalNigel Ish (talk) 17:14, 21 April 2015 (UTC)
- —Trappist the monk (talk) 14:02, 21 April 2015 (UTC)
The Astronomical Almanac names each chapter with a capital letter, and restarts the page numbering with each chapter. There are other books that do this too. In 2011 they were up to chapter N; maybe by the end of the decade they will be up to chapter P. A citation would look something like
{{cite book/new |title=Astronomical Almanac for the Year 2020 |page=P7 |nopp=}}
which would render as
Astronomical Almanac for the Year 2020. p. P7. {{cite book}}
: Cite has empty unknown parameter: |nopp=
(help)
Jc3s5h (talk) 17:38, 21 April 2015 (UTC)Q
- I have tweaked the code to answer this particular case.
- As cite journal is the only citation style 1 template that omits p. and pp. from the displayed output, it is necessary to add them to make cites look consistent between cite journal and cite news/book etc, and to make the sourcing clear to the reader.Nigel Ish (talk) 18:36, 21 April 2015 (UTC)
- May be we should change {{cite journal}} to put in the p. or pp. to be consistent with the other templates and then the presence of the p. or pp. can be detected and removed. Should not be removing from instances of this template without the template change being made. Keith D (talk) 19:10, 21 April 2015 (UTC)
- Some editors are probably adding the explicit page indication when they use {{cite journal}} or {{cite magazine}} because the citation looks too confusing with the clump of numbers at the end. If {{cite news}} is used, an explicit page indicator is added by the module code, but that is left out of {{cite journal}} to conform with norms in scientific citations. Consider this citation from the Leicester and Swannington Railway article - it looks doubly clumsy without the inclusion of an author, as then the date gets tacked on to the mix of numbers and things get real confusing even with the addition of an indicator in the
|page=
parameter. First, {{cite journal}} as originally written, then {{cite journal}} as it would look if the page indicator had been left out, then {{cite journal}} as it would look if there had been an author included in the citation, then {{cite news}} as it would look if that had been used while retaining the editor's page indicator text.- "Stephenson tunnel saved". The Railway Magazine. 154 (1, 292): p 10. December 2008.
{{cite journal}}
:|page=
has extra text (help) - "Stephenson tunnel saved". The Railway Magazine. 154 (1, 292): 10. December 2008.
- Author (December 2008). "Stephenson tunnel saved". The Railway Magazine. 154 (1, 292): p 10.
{{cite journal}}
:|author=
has generic name (help);|page=
has extra text (help) - "Stephenson tunnel saved". The Railway Magazine. Vol. 154, no. 1, 292. December 2008. p. p 10.
{{cite news}}
:|page=
has extra text (help)
- "Stephenson tunnel saved". The Railway Magazine. 154 (1, 292): p 10. December 2008.
- I think an editor coming at referencing from a "non-academic normal guy" standpoint can be easily confused by the text generated for citations when using {{cite journal}}, and some of these uses of an explicit page indicator within the
|page=
parameter will be attempts at making things easier to read. Stamptrader (talk) 20:36, 21 April 2015 (UTC)- Maybe we could consider changing the formatting of journal references to something like "Journal, vol. 3, no. 2, pp. 54–128" instead of "Journal 3 (2): 54–128"? It's a little less concise (so what) and less like typical academic citation formats (also so what) but clear enough and much less intimidating, I think. Not to be done without a lot of discussion first, though, since this is a big change. —David Eppstein (talk) 21:11, 21 April 2015 (UTC)
- I'm looking at CMOS 16, and for citing a specific volume of multivolume books, it uses "4:243" to put the volume and page number together if the volume lacks a separate name. For journals, they use "76, no. 1 (2006): 19–35;" after the name of the journal. On that basis, David Eppstein's idea of explicitly adding the "vol", "no." and "p."/"pp." prefixes isn't far fetched. What I've wanted to do for {{cite journal}} is that "76(1):19–35" would be fine, but if the volume or issue number are dropped, the "p." or "pp." would appear with the page number, but the less concise format may be better for Stamptrader's "non-academic normal guy". As it is, I wish many of our editors would heed the advice to stop using the overly abbreviated journal names in deference to our non-academic readers. Imzadi 1979 → 22:36, 21 April 2015 (UTC)
- Maybe we could consider changing the formatting of journal references to something like "Journal, vol. 3, no. 2, pp. 54–128" instead of "Journal 3 (2): 54–128"? It's a little less concise (so what) and less like typical academic citation formats (also so what) but clear enough and much less intimidating, I think. Not to be done without a lot of discussion first, though, since this is a big change. —David Eppstein (talk) 21:11, 21 April 2015 (UTC)
- Some editors are probably adding the explicit page indication when they use {{cite journal}} or {{cite magazine}} because the citation looks too confusing with the clump of numbers at the end. If {{cite news}} is used, an explicit page indicator is added by the module code, but that is left out of {{cite journal}} to conform with norms in scientific citations. Consider this citation from the Leicester and Swannington Railway article - it looks doubly clumsy without the inclusion of an author, as then the date gets tacked on to the mix of numbers and things get real confusing even with the addition of an indicator in the
date for bimonthly issue
Scouting Magazine had a January-February 2005 issue (http://books.google.com/books?id=kfwDAAAAMBAJ&pg=PA40#v=onepage&q&f=false) how should that properly be cited, date=January-February 2005 , still gives a CS1 error.Naraht (talk) 17:33, 20 April 2015 (UTC)
- Use an en dash:
|date=January–February 2005
. – Jonesey95 (talk) 18:01, 20 April 2015 (UTC)- thank you.Naraht (talk) 18:25, 20 April 2015 (UTC)
- How do you format date ranges which span years, please? |date=21 December 1963–1 February 1964 still produces an error. 86.160.232.4 (talk) 22:45, 21 April 2015 (UTC)
- The dash needs to have a space on either side of it:
- "Title". Journal. 21 December 1963 – 1 February 1964.
- "Title". Journal. 21 December 1963–1 February 1964.
{{cite journal}}
: Check date values in:|date=
(help)
- This is how the MOS says we are supposed to format dates in prose, which the templates are designed to enforce. Imzadi 1979 → 22:54, 21 April 2015 (UTC)
- The dash needs to have a space on either side of it:
- How do you format date ranges which span years, please? |date=21 December 1963–1 February 1964 still produces an error. 86.160.232.4 (talk) 22:45, 21 April 2015 (UTC)
Thank you; alles klar. 86.160.232.4 (talk) 22:39, 22 April 2015 (UTC)
accessdate and indirectly-specified URLs
When a reference specifies a URL indirectly, e.g., using a parameter like jstor=
, it ignores accessdate=
and generates the category Pages using citations with accessdate and no URL. For example, in [4], the invocation:
- {{cite journal| last=Nichols|first=Thomas M. |title=Soldiers and War: A Top Ten List |journal=International Journal |date=Spring 2001 |volume=56 |issue=2 |pages=312, 316–317 |jstor=40203558 |accessdate=30 June 2011 |publisher=Canadian International Council}}
generates:
- Nichols, Thomas M. (Spring 2001). "Soldiers and War: A Top Ten List". International Journal (Canadian International Council) 56 (2): 312, 316–317. JSTOR 40203558. [[Category:Pages using citations with accessdate and no URL]]
Note the missing "Retrieved 30 June 2011." and the category generation.
A work-around (maybe) is to specify the URL both directly via the url=
parameter and indirectly via the jstor=
parameter, see, here, but that's clumsy, and I think there may be a bot that "fixes" the article by converting links to jstor.org to the jstor=
parameter.
I assume this would also occur with other implicit URL indicators (e.g., doi=
, pmid=
, etc., maybe isbn=
and issn=
) but have not confirmed. TJRC (talk) 15:47, 25 April 2015 (UTC)
|access-date=
has always indicated the date that the URL provided in|url=
was last accessed and found to support the content of the Wikipedia article.|access-date=
has never applied to material at archival-like sites such as JSTOR, doi, PMC, ZBL, etc.|isbn=
is different in that it links to Special:BookSources.
- The error message and the category supporting it are correct for your example citation because
|url=
is not specified. If you choose, you may duplicate the JSTOR or other identifier URL in|url=
but that seems to me to be needlessly redundant.
- But a URL is specified: in the
jstor=
parameter. Thejstor=
parameter generates a link to https://www.jstor.org/stable/40203558, which is the accessed source, to which theaccessdate=
refers. It's not an error for an editor to indicate the date on which the cited source at https://www.jstor.org/stable/40203558 was accessed, and should not be flagged by the template. - To make this clear: I'm not saying that the template is incorrectly saying the
url=
parameter is not present. I'm saying the template is incorrectly flagging a template with accessdate= when the URL is specified with a supported parameter other than with theurl=
parameter. It does not make sense to choose between losing the documentary evidence supplied by accessdate= and the needlessly redundantly putting in the URL twice, once viajstor=
and once viaurl=
. - It may be "working as designed" to flag this as a CS1 error; but that just means the bug is in the design, not in the code. IN short, if there is a URL present in the citation to which
accessdate=
refers, it should not be flagged as an error. TJRC (talk) 16:53, 25 April 2015 (UTC)
- But a URL is specified: in the
- I understand what you are saying. It has been said before by others. It is perfectly legitimate to have multiple identifiers,
|pmc=
,|pmid=
,|jstor=
,|doi=
all in the same citation. To which of these would|access-date=
'attach'? Should we have an access date parameter for each of them? What if we accept the premise that|access-date=
applies to identifier-based parameters and also to|url=
. Suppose we have a citation that, legitimately, uses both|url=
and some identifier, both pointing to different resources, to which of these does|access-date=
apply?
- I understand what you are saying. It has been said before by others. It is perfectly legitimate to have multiple identifiers,
- The philosophy regarding
|access-date=
is that it applies when the resource (identified by|url=
) is ephemeral in nature. Identifier-based URLs are considered permanent so are presumed to always be available in the same state they were when the Wikipedia editor added the citation. Resources at ephemeral URLs may be here today and gone tomorrow, may change for no apparent reason, may move to a different location; in essence, link rot. Because these kinds of resources are not permanent, we have|access-date=
to identify the date when the resource was valid, and|archive-url=
and|archive-date=
to help us recover the once-valid resource. This functionality is not required for the permanent identifier-based external links.
- The philosophy regarding
- I agree entirely that
|access-date=
should not be used with identifier-based URLs. I'd just like to point out, though, that access dates are needed for two slightly different reasons: (1) for those URLs that may be transient, as Trappist the monk notes above, and (2) for URLs whose target is updated more-or-less continuously without distinct "versions". In case (1), it's often appropriate to archive the target webpage. In case (2), archiving is usually inappropriate, and the access date is the only way of telling whether the content might have changed. Peter coxhead (talk) 08:55, 26 April 2015 (UTC)
- I agree entirely that
orig-year parameter in Template:Cite web
Is this parameter deprecated? It's listed in the template documentation under "Date", though not in the full parameter set under "Usage". As far as I can tell it doesn't do anything. PC78 (talk) 23:50, 25 April 2015 (UTC)
- Not deprecated but ignored if
|date=
is not set.{{cite web |title=Title |url=//example.com |date=25 April 2015 |orig-year=1995}}
- →"Title". 25 April 2015 [1995].
- —Trappist the monk (talk) 00:10, 26 April 2015 (UTC)
- Ah-ha, thanks for clearing that up. PC78 (talk) 02:33, 26 April 2015 (UTC)
trans-title / script-title mismatch in Cite episode?
I can't make heads or tails of this one, from Greek Expeditionary Force (Korea):
Wikitext | {{cite episode
|
---|---|
Live | Βασιλόπουλος (Vasilopoulos), Χρίστος (Christos) (2007). Οι Έλληνες στον πόλεμο της Κορέας. Μηχανή Του Χρόνου (The Time Machine) (in Greek (English subtitles)). Greece. Alpha TV. {{cite episode}} : Unknown parameter |trans_title= ignored (|trans-title= suggested) (help)CS1 maint: unrecognized language (link)
|
Sandbox | Βασιλόπουλος (Vasilopoulos), Χρίστος (Christos) (2007). Οι Έλληνες στον πόλεμο της Κορέας. Μηχανή Του Χρόνου (The Time Machine) (in Greek (English subtitles)). Greece. Alpha TV. {{cite episode}} : Unknown parameter |trans_title= ignored (|trans-title= suggested) (help)CS1 maint: unrecognized language (link)
|
There's a |script-title=
and a |trans_title=
, which seem to match, but the error message reads "|trans-chapter= requires |chapter=". – Jonesey95 (talk) 21:38, 27 April 2015 (UTC)
- I guess it wants a
|title=
field (which would contain the romanized title) to put into the|chapter=
field of the underlying call. Kanguole 22:30, 27 April 2015 (UTC)
I think that this is a case very much like {{cite encyclopedia}}
. |title=
, and |trans-title=
are promoted to |chapter=
and |trans-chapter=
internally to get the proper formatting. In this case, there is not |script-chapter=
to receive |script-title=
so the module thinks that |trans-chapter=
is missing |chapter=
. I'm not sure why the title text is being rendered after the series text. Further research is required.
Monkbot task 6l made the edit that created this so I've stopped the bot and will disable the script-title functionality for {{cite episode}}
. If you find others of this kind, and the edit was made by Monkbot task 6l, reverting the bot is the correct response.
—Trappist the monk (talk) 22:52, 27 April 2015 (UTC)
"Missing or empty |title=" error message
Various uses of citation without a |title=
now throw the error message "Missing or empty |title=". Per a discussion last January I had thought that use of "|title=none
" was going to suppress this message, but that is not happening. Can we get this message suppressed? ~ J. Johnson (JJ) (talk) 19:53, 12 March 2015 (UTC)
- Example?
- The referenced discussion referred specifically to
{{cite journal}}
though the applied 'fix' also applies to{{citation}}
when one of the|periodical=
parameters (except|encyclopedia=
) is set. Which see:{{cite journal |title=none |periodical=Periodical}}
- "none". Periodical.
{{citation |title=none |periodical=Periodical}}
- "none", Periodical
{{citation |title=none |encyclopedia=Encyclopedia}}
- "none", Encyclopedia
- —Trappist the monk (talk) 22:49, 12 March 2015 (UTC)
Example:
- {{citation |author= Hegerl, ''et al.'' |chapter= Chapter 9 |title=none }} in {{Harvnb|IPCC AR4 WG1|2007}}.
- > Hegerl; et al., "Chapter 9", none
{{citation}}
: Explicit use of et al. in:|author=
(help) in IPCC AR4 WG1 2007 harvnb error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help).- [My apologies. I condensed the example the example so much that it looks like a short cite, but it is intended to be a full citation. See the uncondensed example below. ~ J. Johnson (JJ) (talk) 21:10, 14 March 2015 (UTC)]
- Better example below at #Example of "source in work" ~ J. Johnson (JJ) (talk) 00:50, 21 March 2015 (UTC)
- where the source is a chapter in the larger work linked to. Strictly speaking the 'work' is a book, but use of {cite book} gives the same result. Use {cite journal} causes
|chapter=
to be ignored. ~ J. Johnson (JJ) (talk) 22:18, 13 March 2015 (UTC)
- This would allow replacement of the little used {{source in source}}. -- Gadget850 talk 22:58, 13 March 2015 (UTC)
- I have never warmed to {source in source} (too grotesque), and would favor its replacement. ~ J. Johnson (JJ) (talk) 21:04, 14 March 2015 (UTC)
- This would allow replacement of the little used {{source in source}}. -- Gadget850 talk 22:58, 13 March 2015 (UTC)
{Harvc} as alternative
Even though you are on the record in opposition, this is the kind of thing for which {{harvc}}
was invented. Somewhere in the text you have: {{sfn|Hegerl, et al.|2007}}
which for illustration I'll put here.[1]
In the bibliography section write a citation for the book. This template is one I found at Global warming; it has not been modified:
{{Cite book | year = 2007 | author = IPCC AR4 WG1 | title = Climate Change 2007: The Physical Science Basis | series = Contribution of Working Group I to the [[IPCC Fourth Assessment Report|Fourth Assessment Report]] of the Intergovernmental Panel on Climate Change | editor = Solomon, S.; Qin, D.; Manning, M.; Chen, Z.; Marquis, M.; Averyt, K.B.; Tignor, M.; and Miller, H.L. | publisher = Cambridge University Press | url = http://www.ipcc.ch/publications_and_data/ar4/wg1/en/contents.html | isbn = 978-0-521-88009-1 | ref = harv }}
Then write {{harvc}}
templates for each of the individual chapters that are part the 'book' but are cited separately:
{{harvc |last=Hegerl, et al. |year=2007 |c=Chapter 9: Understanding and Attributing Climate Change |url= http://www.ipcc.ch/publications_and_data/ar4/wg1/en/ch9.html |loc=[http://www.ipcc.ch/publications_and_data/ar4/wg1/en/ch9s9-5-2.html Section 9.5.2: Sea Level]|in=IPCC AR4 WG1}}
So, from your {{sfn|Hegerl, et al.|2007}}
there is now a link into §References where there is a link to the appropriate chapter in §Bibliography which links to the book. Here is the link in article text again.[2] The {{harvc}}
template can also be enclosed in <ref>...</ref>
tags.[3]
==References==
References
- ^ Hegerl, et al. 2007. sfn error: multiple targets (2×): CITEREFHegerl,_et_al.2007 (help)
- ^ Hegerl, et al. 2007, Section 9.5.2: Sea Level. sfn error: multiple targets (2×): CITEREFHegerl,_et_al.2007 (help)
- ^ Hegerl, et al. "Chapter 9: Understanding and Attributing Climate Change". In IPCC AR4 WG1 (2007), Section 9.5.2: Sea Level. Harvc error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help)
==Bibliography==
- IPCC AR4 WG1 (2007). Solomon, S.; Qin, D.; Manning, M.; Chen, Z.; Marquis, M.; Averyt, K.B.; Tignor, M.; and Miller, H.L. (ed.). Climate Change 2007: The Physical Science Basis. Contribution of Working Group I to the Fourth Assessment Report of the Intergovernmental Panel on Climate Change. Cambridge University Press. ISBN 978-0-521-88009-1.
{{cite book}}
: Invalid|ref=harv
(help)CS1 maint: multiple names: editors list (link) CS1 maint: numeric names: authors list (link)- Hegerl, et al. "Chapter 9: Understanding and Attributing Climate Change". In IPCC AR4 WG1 (2007). Harvc error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help)
—Trappist the monk (talk) 23:58, 13 March 2015 (UTC)
- My apologies for causing some confusion here. In the interest of brevity I condensed the example above so much it may appear to be a short cite, such as where harv templates are used to connect to a full citation with full bibliographic details. (This confusion is further compounded by the way citations are misused at Global warming#Citations.) The preferred solution here is to have very short links (implemented with some form of {harv}), such as "Hegerl, et al. 2007 harvnb error: multiple targets (2×): CITEREFHegerl,_et_al.2007 (help)", used where ever material needs to be attributed, all of which link to a single full citation such as the following:
- Hegerl, Smith, Jones; et al., "Chapter 9: Understanding and Attributing Climate Change",
Section 9.5.2: Sea Level{{citation}}
: Explicit use of et al. in:|author=
(help); Missing or empty|title=
(help)CS1 maint: multiple names: authors list (link) in IPCC AR4 WG1 2007 harvnb error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help).
- This should be considered as a full citation, which would appear only once in an article (presumably in the "Bibliography" or such), and refers to the whole source ("Chapter 9"), not to any specific material within. (I have stricken the specification that was mistakenly included.) It does not look like a "full" citation because it does not repeat the bibliographic details of the encompassing work, nor a proper list of authors, and contains only the details that distinguish this chapter from other chapters in the same work. ~ J. Johnson (JJ) (talk) 20:41, 15 March 2015 (UTC)
{{harvc}}
does that: can appear only once and refers/links to the single whole source, does not look like a full citation (because it isn't one) and contains only the details that distinguish this chapter from others in the same work. And, it doesn't produce corrupted metadata and so there isn't a missing title error message (though it will emit error messages when required stuff is omitted).
- This should be considered as a full citation, which would appear only once in an article (presumably in the "Bibliography" or such), and refers to the whole source ("Chapter 9"), not to any specific material within. (I have stricken the specification that was mistakenly included.) It does not look like a "full" citation because it does not repeat the bibliographic details of the encompassing work, nor a proper list of authors, and contains only the details that distinguish this chapter from other chapters in the same work. ~ J. Johnson (JJ) (talk) 20:41, 15 March 2015 (UTC)
- Hegerl, Smith, Jones; et al., "Chapter 9: Understanding and Attributing Climate Change",
- The important point is that the "in source" attribution follows only the full citation, not every instance of the short cite. (The latter being what {{harvc}} does, which is one reason why I opposed it, the other being that I don't believe a whole additional template is necessary for this.) And in fact the current set does all this just fine, except for the little detail of an entirely unnecessary and unuseful red error message.
- So back to my initial request: can this little red splash be suppressed? ~ J. Johnson (JJ) (talk) 21:10, 14 March 2015 (UTC)
- The example full citation template is incomplete. It identifies a chapter of 'something', but doesn't identify what that 'something' is. Because that template is a CS2 citation, it produces metadata that are also incomplete. This is the reason that there is, and should remain, an error message. The full template is coupled (by proximity only) to a
{{harvnb}}
template that links to a full citation that is complete in and of itself – title, editors, publisher, isbn, etc that the pseudo-full citation lacks.
- The example full citation template is incomplete. It identifies a chapter of 'something', but doesn't identify what that 'something' is. Because that template is a CS2 citation, it produces metadata that are also incomplete. This is the reason that there is, and should remain, an error message. The full template is coupled (by proximity only) to a
- This same is all true of
{{harvc}}
in that it also lists only a chapter of 'something' without identifying what that 'something' is; it also links to a full citation with all of the aforementioned stuff (without an additional{{harvnb}}
template). But, because it isn't a CS1/CS2 template, it does not produce metadata and is simply a bridge between simple{{sfn}}
templates and the full citation template. I've tweaked my examples above to include the chapter's name, url, and location data.
- This same is all true of
- The "something" - the larger work which includes this source - is identified. Just not within the template. The citation is indeed complete as displayed (that is, the work is identified/linked). But I gather your concern is providing context for the metadata collected from the template. Well, that is a deep issue. And it seems to me that harvc is, in the end, just a kludge for getting around the CS1 error checking. I think it would be simpler to just suppress the error message. However, I want to take a deeper look at al this, and see if I can better formulate what is needed. For the duration: even if "missing title" is kept as a maintenance category, could we at least have the error message suppressed? ~ J. Johnson (JJ) (talk) 20:43, 15 March 2015 (UTC)
- Yes. There is no facility for us to split a citation and then, somehow, later, gather up all of the incomplete metadata from the disparate parts and meld them into a single complete unit. It is not possible; templates can't communicate with each other. Maybe someday but not at present. So,
{{harvc}}
is no more a kludge than writing a CS1/CS2 citation that intentionally leaves out information critical to the proper compilation of the citation's metadata. Better, I think, to have metadata that is complete and correct than to have metadata that is incomplete.
- Yes. There is no facility for us to split a citation and then, somehow, later, gather up all of the incomplete metadata from the disparate parts and meld them into a single complete unit. It is not possible; templates can't communicate with each other. Maybe someday but not at present. So,
- —Trappist the monk (talk) 00:26, 16 March 2015 (UTC)
- I have had an idea (yikes). In {{harvc}} you have an
|in=
parameter. Could we have a similar parameter in {{citation}}, which would signal that the citation metadata is incomplete and should not be collected for COinS? And incidentally overlook the lack of a title? ~ J. Johnson (JJ) (talk) 23:04, 18 March 2015 (UTC)
- I have had an idea (yikes). In {{harvc}} you have an
- —Trappist the monk (talk) 00:26, 16 March 2015 (UTC)
- Could. But:
{{harvc}}
is already written, debugged, working, and documented- new documentation would be required
- adding
|in=
to Module:Citation/CS1 adds yet another level of complexity to an already complex code set
- So, unless overwhelming support for this compels me, I'd rather not.
- Could. But:
-
- —Trappist the monk (talk) 15:25, 19 March 2015 (UTC)
- Harvc does not provide the functionality needed (such as expansion of the author list), misorders the elements (but fixable?), and adds complexity to the use of citations. I would be satisfied if {{citation}} simply accepted the lack of a title; my idea for an
|in=
parameter would address your conern about incomplete metadata. It also permits retention of title checking for the general run of cases where lack of a title probably is an error. If coding that is too much trouble, then let's fall back to the previous idea of using|title=none
to suppress the error message. I believe any changes to the documentation are minimal, and I can take care of that, so that should not be any objection. ~ J. Johnson (JJ) (talk) 19:24, 19 March 2015 (UTC){{harvc}}
was modeled on the other short-form templates that accept a maximum of four author names. That could be changed, I suppose, though we would probably also need to include a form of|display-authors=
so that the template could switch from its default, where it acts just like the other{{harv}}
templates, to displaying all or part of the author list. How are the elements misordered? How is using{{harvc}}
any more complex than the exemplar that uses both a broken CS2 template and a{{harvnb}}
template?
-
- —Trappist the monk (talk) 14:26, 20 March 2015 (UTC)
- I'm putting together an example which should clarify the situation. ~ J. Johnson (JJ) (talk) 23:27, 20 March 2015 (UTC)
- I've added a better example below at #Example of "source in work". In brief, one or more short cites (implemented with harv templates) link to the citation for the chapter (contribution), which links to the citation for the work. The middle layer uses {{citation}} because there is no simple form of {{harv}} that will produce the full author list (which could include author-links), and because any use of harv of at the middle layer confuses the use of short cites. All of this works just fine, aside the from the red message. ~ J. Johnson (JJ) (talk) 01:06, 21 March 2015 (UTC)
- —Trappist the monk (talk) 14:26, 20 March 2015 (UTC)
- Harvc does not provide the functionality needed (such as expansion of the author list), misorders the elements (but fixable?), and adds complexity to the use of citations. I would be satisfied if {{citation}} simply accepted the lack of a title; my idea for an
- —Trappist the monk (talk) 15:25, 19 March 2015 (UTC)
- Trappist the monk: back to my initial request, can the Missing or empty title message be suppressed, either entirely, or in the specific case of
|title=none
? ~ J. Johnson (JJ) (talk) 23:03, 24 March 2015 (UTC)
- Trappist the monk: back to my initial request, can the Missing or empty title message be suppressed, either entirely, or in the specific case of
- Have I not already answered this? No. The error message is there for a purpose and so should not be suppressed. If we do anything, it should be to
{{harvc}}
where we expand on its ability to better handle and display all or part of the author list.
- Have I not already answered this? No. The error message is there for a purpose and so should not be suppressed. If we do anything, it should be to
- You said you would "rather not" implement my idea of an
|in=
parameter, and I can accept that you think it is not important enough. However, suppressing this red message is a different matter. It is an "error" only because you (and ??) decided that it should be; I think it can be argued that it is not. Indeed, in regards of COinS I would argue that given a full citation for a containing work, citations for the chapters contained within should not generate COinS metadata. However, the usual way of handling such cases - incorporating all the bibliographic details of the containing working within each chapter's citation (see example below) - can lead to voluminous redundant data for the IPCC reports. The method I have developed for handling these cases is reasonable, and works. Except for the splot of red, which is a recent innovation.
- You said you would "rather not" implement my idea of an
- Harvc is not suitable. Should we break out a subsection to discuss that? ~ J. Johnson (JJ) (talk) 21:46, 25 March 2015 (UTC)
- You are mistaken. I do think it is important. That is why
{{harvc}}
exists. I also think that it is important to let the CS1/2 templates do what they do best and not try to make them do else-wise by creating special cases where the module does something different; there is too much of that already complicating the code in service of the unique characteristics of the various templates. So far I see no reason to abandon my 'rather not' position.
- You are mistaken. I do think it is important. That is why
- I have suggested that
{{harvc}}
functionality could be expanded but even with that you stand fast onHarvc is not suitable
. This begins to look rather like a stalemate which to me is wearisome.
- I have suggested that
I regret that this is becoming wearisome, but it is rather important for me, so I would deem it a great favor if you might bear with me a little longer. The IPCC citations present some unusual and difficult challenges, and though these are not so notable across the entirety of Wikipedia (but what sources are?), they are very significant within the Global Warming articles. The approach I developed has worked very well, up until the recently introduced "error" messages. I take your view to be that this approach involves "broken" {{citation}} templates, that this approach misuses the templates in making them do something they were not designed for, and would complicate the underlying code.
Regarding the last, I do not see how testing the template data for "missing or empty title" is any less complicated than not testing for that. Even the special case of skipping the test for "title=none" should be only a single line, nothing complicated. But if it is, then I would argue: eliminate the title test entirely.
Which gets to what I suspect is the core issue: is citation of chapters always incomplete, and therefore an error, if it is missing details of the containing work, such as title? I do agree that a "citation" is incomplete without such details. But I say the issue is more finely whether the template (whether {{citation}} or {{cite xxx}}) must contain all the details, and more particularly whether a link to those details is acceptable. I find that this must be made acceptable, as the alternative is that every chapter cited in every IPCC Assessment Report becomes bloated with these extensive details. I believe your argument at this point would be something about the incompleteness of COinS data. I will address that tomorrow. For now I ask if you concur with what I have described so far. ~ J. Johnson (JJ) (talk) 04:34, 27 March 2015 (UTC)
- Here are a couple of
{{harvc}}
templates of the sandbox variety. They will accept as many authors as you want.Right now it's somewhat clunky:|display-authors=99
|display-authors=all
is used to display all of the authors in the contributor's list. If the value assigned to|display-authors=
isall
or the same as or greater than the number of authors in the contributors list, then all last and first names are displayed. If|display-authors=
is empty or omitted, then the template displays up to the first four (if present) last names in the same way that other 'harv' templates do. If|display-authors=
is assigned a value less than the number of authors in the contributors list, the template displays both last and first names of that number of contributors followed by et al.
- Here the
{{harvc/sandbox}}
{{harvc}}
template output is compared to your unmodified{{citation}}
output. The differences are date display and brackets around year in the link to the enclosing work.{{sfn}}
templates link to{{harv/sandbox}}
templates.[1][2]
References
- ^ Hegerl et al. 2007. sfn error: multiple targets (3×): CITEREFHegerlZwiersBraconnotGillett2007 (help)
- ^ Le Treut et al. 2007.
- IPCC AR4 WG1 (2007). Solomon, S.; Qin, D.; Manning, M.; Chen, Z.; Marquis, M.; Averyt, K.B.; Tignor, M.; and Miller, H.L. (ed.). Climate Change 2007: The Physical Science Basis. Contribution of Working Group I to the Fourth Assessment Report of the Intergovernmental Panel on Climate Change. Cambridge University Press. ISBN 978-0-521-88009-1.
{{cite book}}
: Invalid|ref=harv
(help)CS1 maint: multiple names: editors list (link) CS1 maint: numeric names: authors list (link)- et al., "Chapter 9: Understanding and Attributing Climate Change", in IPCC AR4 WG1 (2007). harvc: invalid
|display-authors=
(help) Harvc error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help) - Hegerl, G. C.; Zwiers, F. W.; Braconnot, P.; Gillett, N. P.; Luo, Y.; Marengo Orsini, J. A.; Nicholls, N.; Penner, J. E.; Stott, P. A. (2007), "Chapter 9: Understanding and Attributing Climate Change",
{{citation}}
: Missing or empty|title=
(help) in IPCC AR4 WG1 2007 harvnb error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help).["Full" citation of Hegerl et al., except that details included in the citation of the containing work (below) are not repeated here. This citation appears only once in the article.]
- et al., "Chapter 1: Historical Overview of Climate Change Science", in IPCC AR4 WG1 (2007). harvc: invalid
|display-authors=
(help) Harvc error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help) - Le Treut, H.; Somerville, R.; Cubasch, U.; Ding, Y.; Mauritzen, C.; Mokssit, A.; Peterson, T.; Prather, M. (2007), "Chapter 1: Historical Overview of Climate Change Science",
{{citation}}
: Missing or empty|title=
(help) in IPCC AR4 WG1 2007 harvnb error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help).
- et al., "Chapter 9: Understanding and Attributing Climate Change", in IPCC AR4 WG1 (2007). harvc: invalid
- IPCC AR4 WG1 (2007). Solomon, S.; Qin, D.; Manning, M.; Chen, Z.; Marquis, M.; Averyt, K.B.; Tignor, M.; and Miller, H.L. (ed.). Climate Change 2007: The Physical Science Basis. Contribution of Working Group I to the Fourth Assessment Report of the Intergovernmental Panel on Climate Change. Cambridge University Press. ISBN 978-0-521-88009-1.
- —Trappist the monk (talk) 00:58, 29 March 2015 (UTC)
- Thank you. I will study this tonight. ~ J. Johnson (JJ) (talk) 21:25, 29 March 2015 (UTC)
- I am somewhat amazed that you went to the trouble of making harvc produce a proper display, where addition of (I believe) one or two lines in the CS1 code could have saved us all this trouble. Particularly as harvc extends the harv templates well past what they were designed for. Which sounds like what you complained about on the 26th, that "
it is important to let the CS1/2 templates do what they do best and not try to make them do else-wise by creating special cases where the module does something different...
". The only special case I am asking for is the one value of "none" for title, and all it does is suppress an error message. Your fix introduces three new parameters (|c=
,|url=
, and the|in=
parameter you rejected for CS1 on the 19th), and radically alters the normal Harv output. Not to mention that new documentation will be required (your objection #2 on the 19th).
- I am somewhat amazed that you went to the trouble of making harvc produce a proper display, where addition of (I believe) one or two lines in the CS1 code could have saved us all this trouble. Particularly as harvc extends the harv templates well past what they were designed for. Which sounds like what you complained about on the 26th, that "
- But while the harvc display now looks reasonable, there is still a fundamental problem: the harv templates are designed for use in-line as short cites, whereas the CS1 and CS2 templates are designed for full citations. As such the latter are often collected together as lists, where inclusion of a short cite form (harv) as an item is anomalous, and typically an error. Using a full citation form (such as {citation}) for the IPCC chapters is reasonable and conformable with all other full citations, using the same general format. Use of harvc increases complexity, creates anomalies that invite "correction", and increases the difficulty of explaining to other editors why there must be this anomalous usage.
- Trappist, I really appreciate that you would put significant time and effort into tweaking harvc. However, it also concerns me that you should expend so much time and effort on something fundamentally unsatisfactory when there is a better solution. I believe your principal concern is the integrity of the COinS data. If that is satisfactorily addressed, could we not have the minimalist modification of "title=none"? ~ J. Johnson (JJ) (talk) 22:39, 30 March 2015 (UTC)
|c=
(and its aliases|chapter=
and|contribution=
),|url=
, and|inn=
have been part of{{harvc}}
since its first release. The changes in{{harvc/sandbox}}
are: unlimited|lastn=
, addition of|firstn=
,|author-linkn=
,|author-maskn=
, and|display-authors=
; conversion of|separator=
to|mode=
for CS1/2 compliance. Yeah, if I make this new version the live version then I'll need to update the documentation.
- —Trappist the monk (talk) 11:35, 31 March 2015 (UTC)
- {{citation-in}}? Well, a name change would help, but the problem is that it is only "skin deep": the parameters and their usage are still different. This template by any name is inherently different, which increases complexity. ~ J. Johnson (JJ) (talk) 00:20, 1 April 2015 (UTC)
- —Trappist the monk (talk) 11:35, 31 March 2015 (UTC)
"Error" message still a problem, and Harvc still unsuitable
Trappist the monk: the "missing or empty title" message is still a problem, and (upon re-reviwing the matter) I find Harvc is still unsuitable for the use needed (as previously explained). Therefore I re-iterate my original request to suppress this message. Or, alternately, to allow some keyword that would suppress the message. You previously stated (25 Mar) that "[t]he error message is there for a purpose
", which I take to be ensuring that data extracted for COinS is complete. However, it seems to me that skipping the metadata extraction these cases is simple (and even quite reasonable, as chapters are not really suitable for COinS anyway), and so should not be an issue if a special keyword is implemented.
If you still object to having a special keyword I would much appreciate reviewing your reasons. ~ J. Johnson (JJ) (talk) 23:09, 20 April 2015 (UTC)
- I'm pretty sure that my position hasn't changed since my last post on this topic three weeks ago. Unless there is something new to discuss ...
- Trappist the monk: You have previously expressed concern for the COinS metadata, but in your statement of three weeks ago (00:05, 26 Mar) your opposition was to "
creating special cases
" and "complicating the code
". Allow me to suggest that checking for "empty or missing" title is a special case that complicates the code, and that eliminating that recently added functionality would simplify the code. Your position is also inconsistent with your advocacy of harvc, which (besides being quite unsuitable) is a definite cock-up relative to the rather simple change need to add a title exception. I can only surmise that your adamant opposition arises from some other basis, which we cannot examine until you state what it is. Despite your previous statement, it appears that you do not think this is important enough to even address. ~ J. Johnson (JJ) (talk) 20:57, 22 April 2015 (UTC)
- Trappist the monk: You have previously expressed concern for the COinS metadata, but in your statement of three weeks ago (00:05, 26 Mar) your opposition was to "
- Yep, because omitting
|title=
corrupts the metadata; yep, because to do what you want introduces yet another 'special case'; yep, because special cases complicate code, they always have and they always will. Checking for missing titles is not new but, rather, has been refined. In the past, anything that vaguely resembled a title counted as a title but that loose definition permitted editors to create citations that produced incomplete metadata.
- Yep, because omitting
- I have no hidden reasons for my opposition and I have addressed the issue: see the
{{harvc/sandbox}}
examples in the adjoining discussions.
- I have no hidden reasons for my opposition and I have addressed the issue: see the
- Thank you for clarifying this. So your opposition is based entirely on two points: 1) leaving out "title" corrupts the COinS data, and 2) special cases complicate the code.
- Regarding your first objection, I point out that metadata is not corrupted if it is not generated. If a "title" (referring to a containing book or "work") is not present, then it is appropriate to not generate any metadata, and there is no corruption. This is reasonable, as COinS is used to find library items (e.g., books), not chapters within books. (Underlying this is a deeper issue of whether every use of a citation template must include a title, but as this is not a point of objection we need not examine it.) If in the special case I am asking for COinS data is simply not generated, there is then no corruption of the metadata. Your point is refuted.
- Regarding your second objection: if you insist on simplicity for its own sake, then you should remove all COinS processing, which is a vast complication on the original and primary purpose of the CS templates. On a smaller scale you could simply remove the code that checks for "missing or empty" titles. Of course, that would conflict with the preference for complete metadata, but that is my point: it's all a matter of trade-offs. You decided that reducing data corruption warranted further "refinement", but when you broke an established and valid usage you decided that it was not important enough for any further refinements. This is particularly odd as the CS code appears to be a mass of special cases, so why do you think this special case will break everything?
- I do not find your objections valid (which is why I wonder if there is some other basis for your adamancy), and do not know how else to address them. Would you be persuaded otherwise if I can find (say) three other editors (after all, this is an obscure technical point) who support what I have requested? ~ J. Johnson (JJ) (talk) 22:01, 23 April 2015 (UTC)
- Of course, metadata are not corrupted if not generated, but CS1 and CS2 do generate metadata. The decision to do so was taken quite long ago. I don't know how the metadata are consumed but I would guess that complete and accurate metadata are important to those who do consume it. The COinS documentation identifies a keyword
rft.atitle
to hold chapter titles. COinS support exists, the metadata are used, so that facility likely isn't going away even though it would simplify the code. (And yes, I think every CS1 and CS2 template should have a title.)
- Of course, metadata are not corrupted if not generated, but CS1 and CS2 do generate metadata. The decision to do so was taken quite long ago. I don't know how the metadata are consumed but I would guess that complete and accurate metadata are important to those who do consume it. The COinS documentation identifies a keyword
- Yep, Module:Citation/CS1 is awash in special cases because it directly supports some two dozen CS1 and CS2 templates. One of my long-term goals is to minimize that to the extent possible.
- So you agree that, in the cases at issue, if a COinS record is not generated, there is no corruption of the data. The question is then whether, in such cases, not generating a record is a loss of data. I say no, as a record is generated for the item (book) containing the chapter. I believe the issue comes down to having either a) multiple records containing chapter data that is that is useless for finding the book and book data that is repeated across all these records, or b) a single record for the book that does not contain information not useful for finding the book (i.e., the chapter details). In most cases of "source in work" there is only a single instance, so it is convenient to package all the bibliographic detail into one citation. (That COinS has a field for chapter title is, I believe, for the rare but extant cases where a chapter is published separately, where it is useful to know that the material might be found as an individual item, or included in a larger work.) In the cases I am working with there are multiple instances, and even multiple levels of containment (section in chapter in report in review), each with substantial bibliographic detail. Such masses of detail can overwhelm both readers and editors, and causes other problems, wherefore I find it necessary to use the second approach. ~ J. Johnson (JJ) (talk) 21:27, 24 April 2015 (UTC)
I find it necessary to use the second approach
for which purpose{{harvc}}
was designed and since enhanced.{{harvc}}
does not produce COinS metadata, can be linked from multiple places in an article, does link to the containing work's CS1/2 citation, and does hold and display the substantial bibliographic details of the sub-unit. All of this so that[s]uch masses of detail [don't] overwhelm both readers and editors, and [cause] other problems
.
- Have I not already explained this? Harvc is fundamentally unsuitable. (See my previous comment of 22:39, 30 March.) Although you can make the resulting display essentially equivalent, Harvc is quite at odds with the use and purpose of the Harv family of templates. It is very much a special case (such as you keep inveighing against) that will only confuse the editors attempting to use. E.g., the Harv templates generate short cites which do not contain bibliographic details, and (typically) use only the last name (of one or more authors) or a shortened title to link to the full citation. Now editors will wonder (it becomes necessary to explain) why bibliographically complete full names and full titles are required for Harvc, but are not accepatble for the rest of the Harv templates. Also: editors can readily understand having the short cites (implemented with Harv) in the text (or notes therein) and the full citations (implemented with CS1/CS2 templates) in a seperate "References" section. But having Harvc templates mixed in with the CS templates is anomalous, confusing an otherwise distinct usage. Harvc not only makes the already challenging task of IPCC citation more complex, it is likely to confuse and perplex editors in the use of the Harv templates generally. This is entirely unacceptable.
- CS1/CS2 already does everything you claim for the unsuitable and even dubious Harvc, and the simple enhancement I am requesting could easily skip producing COinS data. Your advocacy of Harvc in the face of a simpler and more suitable option brings us back to my previous question: why? Your objections are inconsistent and disproportionate, and I believe I have adequately addressed them. So why do you persist?
- BTW: In quoting me are you concurring in preferring the second approach? ~ J. Johnson (JJ) (talk) 23:46, 25 April 2015 (UTC)
- I can take a file to one of the claws of a framing hammer so that it fits a slotted-head wood screw and use the modified hammer to drive the screw or I could just hammer the screw into place. I would be better to use a screwdriver, the proper tool for the job.
{{harvc}}
is not a special case but rather, the proper tool to render intermediate cites between long-form citation templates and short-form citation templates.
- I can take a file to one of the claws of a framing hammer so that it fits a slotted-head wood screw and use the modified hammer to drive the screw or I could just hammer the screw into place. I would be better to use a screwdriver, the proper tool for the job.
{{harvc}}
has never requiredbibliographically complete full names
; its default is to display the contributor list in the same manner as{{sfn}}
and{{harv}}
. Because of its intermediate nature, it does require a title and the enclosing work's author/editor list or name.
- I don't believe that our editors are bucket-headed dolts who are incapable of understanding how all of these bits, pieces, and parts fit together. I took your point about
{{harvc}}
's name. Do you have a better name? You did suggest{{citation-in}}
. Because{{harvc}}
defaults to CS1 styling perhaps that name should be{{cite-in}}
. But, I don't think that{{harvc}}
should be renamed to either of those because it isn't one of the CS1 (cite) or CS2 (citation) family of templates. Perhaps the name should describe the function:{{harvc}}
is intermediate between short-form and long-form citation templates:{{intermediate harv cite}}
perhaps with a redirect from{{ihc}}
.
- I don't believe that our editors are bucket-headed dolts who are incapable of understanding how all of these bits, pieces, and parts fit together. I took your point about
- I would not have gone to the trouble of coding
{{harvc}}
if I didn't believe that there are times when an intermediate template between short- and long-form citation templates is appropriate.
- I would not have gone to the trouble of coding
As a quasi-humorous interlude: years ago I was surprised to find a tool like an awl with screw thread on the end. The intended use is to hammer it into a stud, then screw it out, leaving a pre-threaded pilot hole for a proper screw. This was considered better practice than hammering screws in most of the way, taking a couple of turns at the end. Which is perhaps to say that kludginess is relative.
Your "bucket-headed dolts" is not really relevant here. I think there are such editors, but the editors I am trying to serve are quite experienced (and competently so), and I believe are fully capable of understanding citation complexity. But many of them are uncomfortable going beyond the simplest use of CS1/CS2. Which I find somewhat reasonable: WP has a lot of complex stuff, and I am loathe to add any unnecessary complexity. I would like to bring them up to using Harv, but there is great sensitivity to any perceived complexity, and especially so for any increase of complexity. This includes radically differing uses (such as use of full or only last name, as I described in my previous comment) of ostensibly similar "Harvx" templates. Using a different name would defuse some of the anticipation of similiarity, but would add another layer of complexity where I am convinced the existing tools (with a slight enhancement) are quite adequate.
Keep in mind that this intermediate link I am trying to implement has two components. First is the description (full biblilographic details) of the chapter (contribution); second is the link (minimal necessary details) to the enclosing work. Note the key differences: the chapter has the full names of all authors, AND the full title, while the enclosing work has either the last names only of the first three editors, OR a short title. The CS1/CS2 templates are designed to do the former, while the Harv templates are designed for the latter. Except for Harvc, which you are repurposing to do both by adding a raft of additional parameters. Your hammer is now trying to emulate a ratchet screwdriver that handles slotted, Phillips, or Allen head screws.
If you really insist on a separate template let's do this: copy {{citation}} to {{citation-nc}} ("no coins"), then remove both the title test and all of the code for generating COinS data. No red message, no corrupted data, and we're both happy. Right? ~ J. Johnson (JJ) (talk) 20:33, 27 April 2015 (UTC)
- Copying
{{citation}}
to{{citation-nc}}
(really copying Module:Citation/CS1 to some other name) is not going to happen. That makes two mostly similar code sets to maintain in parallel. No thank you. Module:Harvc, not being a one-off copy of Module:Citation/CS1 does not have to be maintained in parallel. Yes, there will on occasion be times when a change to Module:Citation/CS1 will require a change to Module:Harvc but every change to Module:Citation/CS1 need not be reflected in Module:Harvc.
- Copying
- I was rather cherishing my virginal innocence of Lua, but in a momentary rashness I clicked on your link. And now I am undone, undone!! I blush to think of my ignorance all in shreds, with visions of algorithms dancing in my head. :-(
~ J. Johnson (JJ) (talk) 21:02, 29 April 2015 (UTC)
- I was rather cherishing my virginal innocence of Lua, but in a momentary rashness I clicked on your link. And now I am undone, undone!! I blush to think of my ignorance all in shreds, with visions of algorithms dancing in my head. :-(
- I share your aversion to maintaining multiple nearly identical sets of code. But aside from that, consider that from a conceptual point of view, two templates whose use is identical and differ only in that one flags "missing or empty" titles as errors (which is what you want), and the other neither flags such cases (satisfying me) nor generates "corrupted" COinS data (satisfying you) would seem a satisfactory solution.
- Of course, where the differences between two such templates is so slight, it would be absurd to maintain separate blocks of code. That also goes to creating and maintaining a whole new template (Harvc) which, in the end, implements what is a trivial enhancement of what can be (and has been) done with CS1. In brief, [
{{citation}}
"in"{{harv}}
] worked fine; there was no need for Harvc until you broke {citation}. ~ J. Johnson (JJ) (talk) 23:58, 28 April 2015 (UTC)
- Of course, where the differences between two such templates is so slight, it would be absurd to maintain separate blocks of code. That also goes to creating and maintaining a whole new template (Harvc) which, in the end, implements what is a trivial enhancement of what can be (and has been) done with CS1. In brief, [
- I think that the current situation works just fine. {{Harvc}} is designed to shorten a citation down to the name(s) of the contributor(s) of a component in a larger work and link to the full citation of the encompassing work in another section. It works just fine to handle multiple chapters in a report that each have individual authorship apart from the encompassing report on Michigan State Trunkline Highway System, and for the life of me, I can't see what the great issue is with that system that's caused all of this discussion and debate. The status quo with the templates, with a few possible amendments seems more than adequate. Imzadi 1979 → 05:05, 28 April 2015 (UTC)
- Imzadi: I think you are not paying close enough attention. All that you said is quite true except one little detail: a couple of months ago the status quo changed, resulting in numerous "error" messages that beg "fixing". I am trying to get Tappist to make a "possible amendment", but won't do it. He wants me to use Harvc, which I find quite unsuitable. Not because of the displayed result, but for all the objections he makes to my requested little change, plus the confusion it will add the use of citations, particularly the Harv templates. We are not arguing about the resulting display, but the process, and similar underlying issues. ~ J. Johnson (JJ) (talk) 05:50, 28 April 2015 (UTC)
- @J. Johnson: I was also unhappy about the appearance of error messages when citation templates were used without titles, since I made regular use of references of the form "chapter_citation in Harvard_link" with the "Harvard_link" leading to an entry elsewhere, often in the Bibliography. But as far as I can see, {{harvc}} can now be used to achieve the correct effect. So what is your real objection? If it's to the name of the template, I agree that for general use, it's a confusing name, since its purpose is "condensed citations" not Harvard style cross-references. However, as Trappist the monk says, there can be any number of aliases, so this is easily fixed. The precise behaviour of the parameters is an issue, I think; it betrays the origin of the template via the Harvard templates rather than via the cite/citation templates. For example, I do find it odd to have to use
|display-authors=
to get first names displayed. I believe this should be the default as it is for a normal citation, with|display-authors=
required to suppress output not produce it. Peter coxhead (talk) 09:26, 28 April 2015 (UTC)
- @J. Johnson: I was also unhappy about the appearance of error messages when citation templates were used without titles, since I made regular use of references of the form "chapter_citation in Harvard_link" with the "Harvard_link" leading to an entry elsewhere, often in the Bibliography. But as far as I can see, {{harvc}} can now be used to achieve the correct effect. So what is your real objection? If it's to the name of the template, I agree that for general use, it's a confusing name, since its purpose is "condensed citations" not Harvard style cross-references. However, as Trappist the monk says, there can be any number of aliases, so this is easily fixed. The precise behaviour of the parameters is an issue, I think; it betrays the origin of the template via the Harvard templates rather than via the cite/citation templates. For example, I do find it odd to have to use
- It wouldn't be much of an issue to make the default contributor list display be like that of CS1|2 templates and then use the CS1|2 presentation parameter
|name-list-format=harv
to switch to the{{harv}}
family style. This would, I think require a new name. Got any ideas for that?{{intermediate cite}}
,{{intercite}}
,{{icite}}
;{{contribution cite}}
with redirects from{{section cite}}
,{{chapter cite}}
,{{report cite}}
(may be too close to{{cite report}}
),{{review cite}}
come to mind.
- It wouldn't be much of an issue to make the default contributor list display be like that of CS1|2 templates and then use the CS1|2 presentation parameter
- Back into the sandbox, here's Hegerl:
{{harvc/sandbox |mode=cs2 |ps=. |first1= G. C. |last1= Hegerl |first2= F. W. |last2= Zwiers |first3= P. |last3= Braconnot |first4= N. P. |last4= Gillett |first5= Y. |last5= Luo |first6= J. A. |last6= Marengo Orsini |first7= N. |last7= Nicholls |first8= J. E. |last8= Penner |first9= P. A. |last9= Stott |year=2007 |c=Chapter 9: Understanding and Attributing Climate Change |url= http://www.ipcc.ch/publications_and_data/ar4/wg1/en/ch9.html |in=IPCC AR4 WG1}}
- →Hegerl, G. C.; Zwiers, F. W.; Braconnot, P.; Gillett, N. P.; Luo, Y.; Marengo Orsini, J. A.; Nicholls, N.; Penner, J. E.; Stott, P. A., "Chapter 9: Understanding and Attributing Climate Change", in IPCC AR4 WG1 (2007). Harvc error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help)
- and if you set
|name-list-format=harv
you get this:- →Hegerl et al., "Chapter 9: Understanding and Attributing Climate Change", in IPCC AR4 WG1 (2007). Harvc error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help)
- I have set all previous uses of
{{harvc/sandbox}}
in these conversations to use the live version.
- Back into the sandbox, here's Hegerl:
- @Trappist the monk: the functionality of the sandbox version is closer to my current preference; please see the comment I've added at #Example of "source in work". Peter coxhead (talk) 19:22, 29 April 2015 (UTC)
- Peter: I agree that Harvc can produce what is essentially identical display output. But as I was just saying, there is what I deem a very serious problem in how to use this template. Just for the sake of the Harv templates generally (and trying to get editors to use them) I strongly object to how Harvc goes way beyond that family of templates with these new parameters, uses, and output. For the case at hand I object to having to use yet another template, with its own peculiar characteristics, where, with a single enhancement, the existing CS1/CS2 templates would work just fine, with no additional training or explanations required. Alternately, I object to this disenhancement that broke prior usage.
- Trappist: "Harvc" as a name absolutely has to go. (That removes the confusion of anticipated similarity with the rest of the Harv family.) But the deeper problem is having yet another template, with its own peculiar characteristics, which adds more complexity in creating citations. And (again), why go to so much trouble making Harvc more like CS1/CS2 instead of just fixing the latter? ~ J. Johnson (JJ) (talk) 00:02, 29 April 2015 (UTC)
- @J. Johnson: please see the comment I've added at #Example of "source in work". Peter coxhead (talk) 19:22, 29 April 2015 (UTC)
Comment
I need a context to understand this. Have I got this right? J. Johnson wants three levels of citation, a short inline citation, an intermediate level that describes a chapter in a larger work (in this case, an online work), and a top level citation that gives full information on the work? I don't think that's traditional in paper citation styles. If I'm right that it is untraditional, it's going to confuse readers, who won't be expecting a three-level citation hierarchy. And it's going to be even more confusing for editors. So if the work has the same authors for all chapters, I'd cite the entire work and have short cites to that. If the work has different authors for different chapters, and especially if the identity of the chapter authors is significant, I'd put every chapter that was used in the bibliography and make the short cites point to the appropriate chapter. Jc3s5h (talk) 21:04, 15 March 2015 (UTC)
- Pretty nearly "yes" on all counts. (Though what I want is subect to modification. I'm still working this out.) And what you suggest - giving each chapter (these all have different authorship) a full citation that includes the details of the containing work - is inded the standard format. However, in the various global warming articles the chapters from the IPCC reports are cited so often, and the citations of the containing works have so much detail, that the citations become very bloated, in both the wiki-text and the displayed text, with redundant information. This obscures the essential information, and makes careful editing extremely tedious. That having three levels of citation (instead of the more common two levels) is not "treaditional" is not, I think, a problem, as any readers interested in the sources (most of them are not) are used to clicking on a link to get to the next level of information. ~ J. Johnson (JJ) (talk) 23:56, 17 March 2015 (UTC)
Example of "source in work"
The goal is to enable having within an article one or more short cites like this Hegerl et al. (2007) harvtxt error: multiple targets (2×): CITEREFHegerl_et_al.2007 (help)[1] (in either the text or a note, and optionally specifying a location within the source[2][3]) that link to a single citation for a chapter (contribution) with the full details of that source, which in turn links to a single citation for the containing work, without repeating at any level the details of the chapter or of the containing work. And without the red message complaining of a missing or empty title.
Notes
- ^
[Generated with {{harv}} templates like this: {{Harvtxt|Hegerl et al.|2007}}]
- ^ Hegerl et al. 2007 harvnb error: multiple targets (2×): CITEREFHegerl_et_al.2007 (help), Section 9.5.2: Sea Level, p. 999.
[Short cite, with specification appended.]
- ^ Le Treut et al. 2007 harvnb error: multiple targets (2×): CITEREFLe_Treut_et_al.2007 (help), Section 1.3.2: Global Surface Temperature.
In the "References" or "Bibliography" section, using {{citation}} templates:
- Hegerl, G. C.; Zwiers, F. W.; Braconnot, P.; Gillett, N. P.; Luo, Y.; Marengo Orsini, J. A.; Nicholls, N.; Penner, J. E.; Stott, P. A. (2007), "Chapter 9: Understanding and Attributing Climate Change",
{{citation}}
: Missing or empty|title=
(help) in IPCC AR4 WG1 2007 harvnb error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help).["Full" citation of Hegerl et al., except that details included in the citation of the containing work (below) are not repeated here. This citation appears only once in the article.]
- Le Treut, H.; Somerville, R.; Cubasch, U.; Ding, Y.; Mauritzen, C.; Mokssit, A.; Peterson, T.; Prather, M. (2007), "Chapter 1: Historical Overview of Climate Change Science",
{{citation}}
: Missing or empty|title=
(help) in IPCC AR4 WG1 2007 harvnb error: multiple targets (3×): CITEREFIPCC_AR4_WG12007 (help).[Another "full" citation, for a different chapter, with details specific to it, and appears only once in the article.]
- IPCC AR4 WG1 (2007), Solomon, S.; Qin, D.; Manning, M.; Chen, Z.; Marquis, M.; Averyt, K.B.; Tignor, M.; Miller, H.L. (eds.), Climate Change 2007: The Physical Science Basis, Contribution of Working Group I to the Fourth Assessment Report of the Intergovernmental Panel on Climate Change, Cambridge University Press, ISBN 978-0-521-88009-1
{{citation}}
: CS1 maint: numeric names: authors list (link) (pb: 978-0-521-70596-7).[Full reference for the "work", with the details all chapters have in common given only once.]
Contra-example: The goal is to avoid having to cite each chapter with a bloated "fullest" citation such as the following:
- Hegerl, G. C.; Zwiers, F. W.; Braconnot, P.; Gillett, N. P.; Luo, Y.; Marengo Orsini, J. A.; Nicholls, N.; Penner, J. E.; Stott, P. A. (2007b), "Chapter 9: Understanding and Attributing Climate Change", in Solomon, S.; Qin, D.; Manning, M.; Chen, Z.; Marquis, M.; Averyt, K.B.; Tignor, M.; Miller, H.L. (eds.), Climate Change 2007: The Physical Science Basis, Contribution of Working Group I to the Fourth Assessment Report of the Intergovernmental Panel on Climate Change, Cambridge University Press, ISBN 978-0-521-88009-1 (pb: 978-0-521-70596-7).
[Full citation for a chapter that incorporates all of the "in" details.]
All this currently works just fine, aside from the recent introduction of the "missing or empty title" message. ~ J. Johnson (JJ) (talk) 00:43, 21 March 2015 (UTC)
I have added a contra-example of the bloated "fullest" citation that ordinary usage requires for every chapter cited. ~ J. Johnson (JJ) (talk) 21:34, 25 March 2015 (UTC)
- @J. Johnson: the disadvantage of your approach above is that it involves a "two template" citation of this form:
{{Citation |...chapter details... }} in {{Harvnb|...link to book...}}
- Like you I used to use this approach regularly, and was initially annoyed that it produced an error message. Now, with the benefit of hindsight, I see that the "two template" approach was not optimal. All the relevant information is not contained within the Citation template, which is logically wrong and makes automated processing and extraction of citation details difficult. With the benefit of the work done by User:Trappist the monk, and some more hindsight, what is needed instead is the ability to use a "one template" citation of the form:
{{Citation |...chapter details... |in=...link to book.. }}
- so that the link to the book is within the Citation template. (The sandbox version of harvc almost achieves this, but not quite, because some functionality of the Citation template is missing – e.g.
|lastauthoramp=
.) Given a little bit of tweaking and a better name for the template, I can't see that the "one template" approach is any more difficult for editors to use than the "two template" approach: it requires precisely the same information to be provided. It has some limited, but real, advantages. - The only slight difficulty I see is that the "two template" approach allows some extra choice; thus I prefer the style of {{Citation}} plus {{Harvtxt}}, the latter with no terminal full stop to be compatible with CS2, whereas you appear to prefer CS2 + {{Harvnb}} and to have a terminal full stop not usually considered compatible with CS2. Peter coxhead (talk) 19:15, 29 April 2015 (UTC)
- Unlike CS1|2 which is promiscuous, for
|last-author-amp=
,{{harvc/sandbox}}
requiresyes
ortrue
(case insensitive):{{harvc/sandbox |last-author-amp=yes |mode=cs2 |last1=Last1 |first1=First1 |last2=Last2 |first2=First2 |last3=Last3 |first3=First3 |chapter=Chapter |in=Enclosing Source |year=2009}}
- Last1, First1; Last2, First2 & Last3, First3, "Chapter", in Enclosing Source (2009) Harvc error: no target: CITEREFEnclosing_Source2009 (help)
- —Trappist the monk (talk) 00:31, 30 April 2015 (UTC)
- @Trappist the monk: ah, I see now that the problem is with my use of the alternative/alias
|lastauthoramp=
. Try using this with the sandbox version, i.e. use|lastauthoramp=yes
and see what happens. Peter coxhead (talk) 13:02, 30 April 2015 (UTC)- I've fixed the Lua error. The CS1|2 alias
|lastauthoramp=
is not supported by{{harvc}}
because of the move to hyphenated parameter names in CS1|2. I'm wondering about makingyes
the only accepted value for|last-author-amp=
. - —Trappist the monk (talk) 13:21, 30 April 2015 (UTC)
- It's fair enough not to 'advertise' the unhyphenated aliases, in the interests of simplifying the documentation and thus helping new users, but spare a thought for us oldies (both in age and Wikipedia editing time) who find it hard to shake off old habits! Peter coxhead (talk) 15:09, 30 April 2015 (UTC)
- I've fixed the Lua error. The CS1|2 alias
- @Trappist the monk: ah, I see now that the problem is with my use of the alternative/alias
- Unlike CS1|2 which is promiscuous, for
- Peter: the key difference between these two approaches is whether "all the relevant information" of the containing work (such as the editors, publisher, isbn, etc.) should be 1) contained within the template that describes the chapter (for every chapter), or 2) contained in single citation for the work, to which each chapter links. The first case results in multiple instances of "fullest" (i.e., bloated) citations with lots of redundant data, such as the "contra-example" shown above.
- In the second case there are two ways of linking: 2a) externally, by explicitly suffixing a Harv link (as I have done), or 2b) internally, using an
|in=
parameter and code to create the link automatically. This is what Trappist did in Harvc, and (if I understand you correctly) what you seem to be suggesting for{{citation}}
. However, note that I already suggested that (23:04, 18 Mar), which Trappist rejected (15:25, 19 Mar) as "adds yet another level of complexity to an already complex code set
".
- In the second case there are two ways of linking: 2a) externally, by explicitly suffixing a Harv link (as I have done), or 2b) internally, using an
- As to ease of use: your "one template" approach is more accurately (if I understand you correctly) a hybrid template approach. And the arithmetic is more precisely the use of two templates (citation and harv) versus three templates (citation, harv, and the hybrid Harvc). (The hybrid form does not eliminate use of the other Harv templates because they are still needed to link to the chapter template.) Use of
|in=
in any template increases the complexity of that template; using{{citation}}
"in"{{harv}}
does not, as that is a straightforward application of what the editor already knows. ~ J. Johnson (JJ) (talk) 20:50, 29 April 2015 (UTC)
- As to ease of use: your "one template" approach is more accurately (if I understand you correctly) a hybrid template approach. And the arithmetic is more precisely the use of two templates (citation and harv) versus three templates (citation, harv, and the hybrid Harvc). (The hybrid form does not eliminate use of the other Harv templates because they are still needed to link to the chapter template.) Use of
- Trappist hasn't rejected the use of the "one template" approach, but rather trying to shoe-horn it into the existing template. I'm happy to leave it to an experienced template/module editor to decide on the appropriate modularity for the implementation; a single template would indeed be easier to use, but may simply be too difficult to maintain well. You and I agree, I think, that "harvc" is a bad name for the "one template", but given that the most editors prefer CS1 (for reasons which escape me), and hence have to choose between "cite book", "cite web", "cite encyclopedia", "cite journal", etc., having one more citation template (with a more sensible name like "cite in") can't be a serious burden. Anyway, it seems that we aren't going to agree. Peter coxhead (talk) 13:11, 30 April 2015 (UTC)
- Peter, I think we can agree. It's just a "simple matter" (ha) of finding the right basis for resolving our different views. It's not easy, but have patience. One partial resolution is renaming Harvc. (More on that later.)
- My prior comment seems to have been a bit ambiguous. What Trappist rejected was not your "one template" approach, but my suggestion for an
|in=
parameter.
- My prior comment seems to have been a bit ambiguous. What Trappist rejected was not your "one template" approach, but my suggestion for an
- As to appropriate modularity: although I have not dabbled in Lua (and am reluctant to even look at the template coding), I am an experienced programmer, with a deep appreciation of "appropriate modularity". I am also quite familiar with human factors, such as why people use (or not) the tools made available. And it is in this regard that, quite aside from all issues of coding (which should be transparent to the users), adding a hybrid third template (like Harvc) is more complicated (for the users) than using a pair of existing templates. ~ J. Johnson (JJ) (talk) 21:38, 30 April 2015 (UTC)
cite arxiv
In considering how best to migrate {{cite arxiv}}
, I have answered this feature request. |class=
is used in {{cite arxiv}}
to append the assigned value to the arxiv identifier. If |arxiv=
is empty or omitted, |class=
is ignored. There is no error checking of the value assigned to |class=
.
- Indelicato, Paul (2004). "Exotic Atoms". Physica Scripta. T112 (1): 20–26. arXiv:physics/0409058. Bibcode:2004PhST..112...20I. doi:10.1238/Physica.Topical.112a00020.
{{cite journal}}
: Unknown parameter|class=
ignored (help)
{{cite arxiv}}
is an odd duck. In its current guise it is {{cite journal}}
without a proper journal title though it uses the {{citation/core}}
meta-parameter |Periodical=
to hold the external link to the arXiv page.
{{cite arxiv}}
has some parameters that are new to Module:Citation/CS1:
|class=
– mentioned above|eprint=
– apparently an alias of|arxiv=
|version=
– not actually new to the module but used in a different way. In the module,|version=
is an alias of|serial=
and is used in other CS1/2 templates to identify different versions of things in the rendered citation. In relation to arxiv identifiers,|version=
is a suffix on the arxiv identifier that specifies which version of the paper the identifier identifies. I propose to deprecate this parameter in{{cite arxiv}}
so that it is included in|arxiv=
(arxiv error checking already supports this).|use ampersand before last author=
– really, it's there; same as|last-author-amp=
so I propose to deprecate it.
Apparently, {{cite arxiv}}
can be filled by bot if |title=
and all of the |author=
parameters are empty and if the citation contains |arxiv=
or |eprint=
. The bot that does this work isn't identified so if anyone knows which bot that is, and if it is still alive, please tell us so that we can add its name to the documentation.
When editors rely on the bot to fill the template, the template code invokes {{citation/core}}
to render a link to the arxiv page with a message saying that a bot will soon fill the template. That won't work so nicely with the module which will emit a missing title error message. This code needs to be rewritten so that the appropriate message is rendered but the module isn't invoked.
I don't quite know yet what to do about the COinS metadata. Currently, this template:
- Mashnik, Stepan G. (2000). "On Solar System and Cosmic Rays Nucleosynthesis and Spallation Processes". arXiv:astro-ph/0008382.
{{cite arXiv}}
:|class=
ignored (help)
produces this jibberish for rft.jtitle
:
&rft.jtitle=%27%27%5B%5BarXiv%5D%5D%3A%5Bhttp%3A%2F%2Farxiv.org%2Fabs%2Fastro-ph%2F0008382+astro-ph%2F0008382%5D%26nbsp%3B%5B%5Bhttp%3A%2F%2Farxiv.org%2Farchive%2Fastro-ph+astro-ph%5D%5D%27%27
This may be a case where we just name the 'journal' arXiv and produce this:
&rft.jtitle=arXiv
For the |arxiv=
identifier, the module produces this metatdata:
&rft_id=info%3Aarxiv%2Fastro-ph%2F0008382
which it would also do for {{cite arxiv}}
once it has migrated.
Opinions?
—Trappist the monk (talk) 15:50, 30 March 2015 (UTC)
The bot that does this work isn't identified
– perhaps not well identified, but in the first line under the Usage heading, "a bot" is a piped link to User:Citation bot - Evad37 [talk] 16:04, 30 March 2015 (UTC)- So it does, I've tweaked it.
I've created {{cite arxiv/new}}
which mimics the way the current {{cite arxiv}}
works. The new version doesn't invoke Module:Citation/CS1/sandbox unless both |title=
and |last=
(or one of its aliases) are set. In contrast, {{cite arxiv}}
always invokes {{citation/core}}
. To mimic the old version, the new adds an external link to the output using the value provided in |arxiv=
or |eprint=
. The output for {{cite arxiv/new |arxiv = physics/0409058}}
looks like this:
A bot will complete this citation soon. <small>[http://tools.wmflabs.org/citations/doibot.php?page=Help_talk:Citation_Style_1 Click here to jump the queue]</small>[[Category:Articles with missing Cite arXiv inputs |Citation Style 1]] [[arXiv]]:[//arxiv.org/abs/physics/0409058 physics/0409058].
which renders as (category commented out):
- A bot will complete this citation soon. Click here to jump the queue arXiv:physics/0409058.
—Trappist the monk (talk) 18:41, 30 March 2015 (UTC)
- (e/c) I agree with points 1 through 4 above. I have seen Citation Bot fill in one of these templates recently, so that piece of the system does work. {{Cite doi}} emits a similar message about the bot when you create a new template that contains only a DOI value, although the template is structured differently, with only a single unnamed parameter.
- Emitting "arXiv" as the journal may not be appropriate, but I can't tell. Some arXiv articles contain a "journal reference", presumably to indicate that the article, or a version of it, was published in a peer-reviewed journal. Maybe we emit "arXiv" unless
|journal=
is filled in?
- Trappist, thanks for taking on these migrations. I know you get a lot of static for it since you are the main programmer, but I think that the changes that have been made to the CS1 templates over the last two years have dramatically increased the consistency and accuracy of CS1 citations in hundreds of thousands, if not millions, of articles. – Jonesey95 (talk) 18:50, 30 March 2015 (UTC)
- If the arXiv article has a journal reference, we should be using {{cite journal}} (with
|arxiv=
filled in) not {{cite arxiv}} (which should only be for preprints that do not also have a more definitive published form). So I think using "arXiv" as the journal should be ok. —David Eppstein (talk) 19:52, 30 March 2015 (UTC)
- If the arXiv article has a journal reference, we should be using {{cite journal}} (with
- I was just coming to that.
{{cite arxiv}}
has associated categories- Category:Articles with missing Cite arXiv inputs – I suspect that Citation bot uses the content of this category
- Category:Articles with a journal parameter in their Cite arxiv templates – can go away and be replace with an error message? add to Category:CS1 errors: arXiv?
- Category:Articles with a publisher parameter in their Cite arxiv templates – also goes away?
- I think that if either of
|journal=
or|publisher=
is set (or their alias), the module should set them to empty strings, and then emit an appropriate error message. There wouldn't be any periodical in the rendered citation, but the COinS would get&rft.jtitle=arXiv
(this parameter usually holds the periodical name).
- I was just coming to that.
- Perhaps like this, and, perhaps,
|url=
should be added to the list of parameters not supported by the new{{cite arxiv}}
:
- Perhaps like this, and, perhaps,
Wikitext | {{cite arXiv
|
---|---|
Live | Conte, Elio (2002). "A Quantum Like Interpretation and Solution of Einstein, Podolsky, and Rosen Paradox in Quantum Mechanics". pp. 271–304. arXiv:0711.2260 [quant-ph]. {{cite arXiv}} : Unknown parameter |accessdate= ignored (help); Unknown parameter |journal= ignored (help); Unknown parameter |url= ignored (help)
|
Sandbox | Conte, Elio (2002). "A Quantum Like Interpretation and Solution of Einstein, Podolsky, and Rosen Paradox in Quantum Mechanics". pp. 271–304. arXiv:0711.2260 [quant-ph]. {{cite arXiv}} : Unknown parameter |accessdate= ignored (help); Unknown parameter |journal= ignored (help); Unknown parameter |url= ignored (help)
|
- In comparison to all of the other CS1/2 templates,
{{cite arxiv}}
is quite limited in what it supports. Along with the aforementioned|journal=
,|publisher=
, and|url=
, there are|access-date=
,|page=
,|pages=
, and|at=
. It does support|format=
but shouldn't; it supports all of the usual identifiers but probably shouldn't. I have to think about this some more.
- In comparison to all of the other CS1/2 templates,
- Ok, rather than have the error message list the unsupported parameter(s), I've opted to create a simpler error message. The list of unsupported parameters and an explanation will be available at the Help:CS1 errors. The test for unsupported parameters includes all of the special identifiers (ISBN, doi, etc) but doesn't set them to empty strings.
- I've also added an error message for the case where
|arxiv=
is missing or empty:
- I've also added an error message for the case where
Wikitext | {{cite arXiv
|
---|---|
Live | Conte, Elio (Nov 2007). "A Quantum Like Interpretation and Solution of Einstein, Podolsky, and Rosen Paradox in Quantum Mechanics". {{cite arXiv}} : |arxiv= required (help)
|
Sandbox | Conte, Elio (Nov 2007). "A Quantum Like Interpretation and Solution of Einstein, Podolsky, and Rosen Paradox in Quantum Mechanics". {{cite arXiv}} : |arxiv= required (help)
|
- With that then, I think that this migration is done. See Template:Cite arxiv/testcases and add more if you see something that should be tested.
- I have notified Wikiproject Astronomy, Wikiproject Mathematics, and Wikiproject Physics about this discussion. Feedback from the actual users of this template will be helpful. – Jonesey95 (talk) 15:05, 31 March 2015 (UTC)
- - I'm not sure if this will just automatically work once
{{cite arXiv}}
gets migrated, so, just in case:|display-authors=
isn't recognized currently, and the citation auto-truncates to 8 authors. Also, I support points 1-4. - - Concerning
|journal=
or|publisher=
in{{cite arXiv}}
, I agree with David Eppstein and Trappist - I think it would be better to produce an error message, or at least a maintenance category/message to convert a{{cite arXiv}}
to{{cite journal}}
(I've seen variants of|publisher=arXiv
though..., which could be made to emit an error as well?). If{{cite arXiv}}
were to accept|journal=
, then it would make sense to duplicate most of the other{{cite journal}}
parameters, but I don't think that's the right way to go. I think it'd make more sense to make{{cite journal}}
a wrapper around{{cite arXiv}}
(if I'm using the term properly), than the other way around.{{cite arXiv}}
should be reserved for papers not yet published in a{{cite journal}}
. A potential problem is that arXiv eprints are not always word-for-word copies of their published peer-reviewed counterparts, but the differences are generally minor. ~ Tom.Reding (talk ⋅contribs ⋅dgaf) 16:28, 31 March 2015 (UTC)
- - I'm not sure if this will just automatically work once
- Setting
|displayauthors=4
seems to work in the new version; as an example I've added|publisher=Publisher
(should show an error):
- Setting
Wikitext | {{cite arXiv
|
---|---|
Live | Mayor, M.; Marmier, M.; Lovis, C.; Udry, S.; Ségransan, D.; Pepe, F.; Benz, W.; Bertaux, J.-L.; Bouchy, F.; Dumusque, X.; Lo Curto, G.; Mordasini, C.; Queloz, D.; Santos, N. C. (2011). "The HARPS Search for Southern Extra-solar Planets XXXIV. Occurrence, Mass Distribution and Orbital Properties of Super-Earths and Neptune-mass Planets". arXiv:1109.2497 [astro-ph.EP]. {{cite arXiv}} : Unknown parameter |displayauthors= ignored (|display-authors= suggested) (help); Unknown parameter |publisher= ignored (help)
|
Sandbox | Mayor, M.; Marmier, M.; Lovis, C.; Udry, S.; Ségransan, D.; Pepe, F.; Benz, W.; Bertaux, J.-L.; Bouchy, F.; Dumusque, X.; Lo Curto, G.; Mordasini, C.; Queloz, D.; Santos, N. C. (2011). "The HARPS Search for Southern Extra-solar Planets XXXIV. Occurrence, Mass Distribution and Orbital Properties of Super-Earths and Neptune-mass Planets". arXiv:1109.2497 [astro-ph.EP]. {{cite arXiv}} : Unknown parameter |displayauthors= ignored (|display-authors= suggested) (help); Unknown parameter |publisher= ignored (help)
|
- To convert
{{cite arxiv}}
to{{cite journal}}
(once the paper has been published) is a simple matter of changing the template name and adding or deleting the relevant details – as you say, the preprint may not accurately reflect the final published paper.
- To convert
In the COinS, the module version will report the title's genre as &rft.genre=preprint
. The change to support this may allow us to refine COinS data for the other CS1 templates.
—Trappist the monk (talk) 11:17, 6 April 2015 (UTC)
Forgive me if I'm being stupid, but isn't it always better to use {{cite journal|arxiv=xxx}} than {{cite arxiv|eprint=xxx}} anyway? In the former case Citation bot automatically fills out the journal details if and when the preprint is published, and it ensures full compliance with all the normal formatting used by {{cite journal}} and support for all the existing parameters. Is there any reason to maintain a separate template for this? It seems rather pointless to duplicate everything. Could {{cite arxiv}} not be deprecated entirely, or converted into a simple wrapper for {{cite journal}}? Modest Genius talk 22:11, 9 April 2015 (UTC)
- Are you sure about that?
{{cite journal}}
doesn't have the auto-filling-by-bot code that{{cite arxiv}}
has. Infact, creating a{{cite journal}}
with just|arxiv=
creates missing or empty title errors.
- If an editor is citing a paper that hasn't been published, or if the editor is citing a version of the paper that is a preprint (because that's the WP:SAYWHEREYOUGOTIT paper) and not citing the published version, then the editor is correct to use
{{cite arxiv}}
. According to the arXiv article, some papers never make it out of preprint so, for those papers ever languishing in the arXiv limbo,{{arxiv}}
is the correct template.
- Whenever I use a {{cite journal}} I enter a single ID and then hit 'expand citations'. The bot is supposed to do it after some time if I forget to hit the button, but I haven't tested whether that's working in practice. If it's a preprint that hasn't been published yet the template still works fine so long as e.g. the title gets filled out by the bot.
- I'm unconvinced by the need to specifically cite the preprint rather than the final publication, because a) many editors read the arxiv version simply because that is the green open access copy of the final publication (rather than a preliminary version) and thus citing the real thing is preferably (as there are many other ways of accessing it) and b) If some claim was present in a pre-reviewing arxiv posting but not in the final publication then must have been found to be deficient during the peer review process, so we really shouldn't be citing it.
- Of course I still might be missing something here. Modest Genius talk 23:22, 12 April 2015 (UTC)
- Update: I just did a quick sandbox test, and it was in fact the bibcode that behaves the way I was thinking, not the arxiv ID (which I had to add manually). Note however that the formatting of the final result was superior in the {{cite journal}} case, whilst the {{cite arxiv}} ended up with the wrong year of publication(!) but had a nicer clickable link. It's unclear to me whether it would be easier to get Citation bot to look up arxiv IDs in {{cite journal}}, or make changes to {{cite arxiv}} to mirror all the other desired functionality. I suspect the former but am no expert on bots. Modest Genius talk 23:34, 12 April 2015 (UTC)
- There is no facility in
{{cite journal}}
to notify Citation bot that a journal citation needs to be completed. That facility does exist for{{cite arxiv}}
; the template leaves you a message in the article telling you: "A bot will complete this citation soon." The template also gives you a link to click if you want it done now.{{cite journal}}
does not do this.
- There is no facility in
- Update: I just did a quick sandbox test, and it was in fact the bibcode that behaves the way I was thinking, not the arxiv ID (which I had to add manually). Note however that the formatting of the final result was superior in the {{cite journal}} case, whilst the {{cite arxiv}} ended up with the wrong year of publication(!) but had a nicer clickable link. It's unclear to me whether it would be easier to get Citation bot to look up arxiv IDs in {{cite journal}}, or make changes to {{cite arxiv}} to mirror all the other desired functionality. I suspect the former but am no expert on bots. Modest Genius talk 23:34, 12 April 2015 (UTC)
- Whatever problems you are having with auto-filling are problems with the tool you are using, not with
{{cite arxiv}}
or{{cite journal}}
. My guess for the different dates is that it's simply a matter of where the tool goes to get the data. Following the Bibcode link at your sandbox example takes you to a page that lists publication date as 02/2013; similarly, following the arXiv link takes you to a page that identifies the v1 version date as 30 October 2012. It would appear that the tool acted correctly.
- Whatever problems you are having with auto-filling are problems with the tool you are using, not with
- Your sandbox example makes no use of
{{cite arxiv}}
so it is not clear to me how you can make any claims that it is better or worse than{{cite journal}}
.
- Your sandbox example makes no use of
- If an editor uses material found at arXiv in support of assertions made in a Wikipedia article, that is the source that should be cited. If the editor uses material found in a journal in support of assertions made in a Wikipedia article, that is the source that should be cited. The two may be identical; they may not. If the editor has read one but not the other, it is inappropriate to identify the unread material as the source supporting the Wikipedia article. Is this not what WP:SAYWHEREYOUGOTIT is all about?
- —Trappist the monk (talk) 00:35, 13 April 2015 (UTC)
- The 'tool' I'm using is just citation bot. Yes cite arxiv does give you a handy link to it, whilst cite journal does not (I mentioned this above), but the bot fills both out eventually anyway. The year is incorrect because it gave volume and page numbers that didn't exist until 2013 - in this case 2012 would refer to the preprint only and not the final journal publication. Oh and yes I did use cite arxiv, it's just that when the bot fills it out it changes it to cite journal. It seems that cite journal is better for some things, and cite arxiv better for others. Surely combining the best bits into a single template is easier to maintain than two separate but very similar templates? Modest Genius talk 17:43, 13 April 2015 (UTC)
- So you did; I missed the (4 intermediate revisions by 2 users not shown) text.
- The 'tool' I'm using is just citation bot. Yes cite arxiv does give you a handy link to it, whilst cite journal does not (I mentioned this above), but the bot fills both out eventually anyway. The year is incorrect because it gave volume and page numbers that didn't exist until 2013 - in this case 2012 would refer to the preprint only and not the final journal publication. Oh and yes I did use cite arxiv, it's just that when the bot fills it out it changes it to cite journal. It seems that cite journal is better for some things, and cite arxiv better for others. Surely combining the best bits into a single template is easier to maintain than two separate but very similar templates? Modest Genius talk 17:43, 13 April 2015 (UTC)
- —Trappist the monk (talk) 00:35, 13 April 2015 (UTC)
- The bot clearly fetches some information from the arXiv page which you can see if you compare the completed template page parameter with the page information at the arXiv page. But, this talk page isn't about Citation bot; if it is fetching incorrect information, regardless of the CS1 template being used, that topic should be raised at the bot's discussion page because it won't be solved or addressed here.
- I don't have a problem with the notion of
combining the best bits into a single template
when it makes sense to do so. But, here we have one template designed to cite published work and another designed to cite unpublished work. These two templates are to my mind, serving sufficiently different purposes to remain separate.
- I don't have a problem with the notion of
Allow slash and numbers in Vancouver style?
Category:CS1 errors: Vancouver style has been emptied, mostly through null edits, except for three articles, BRCA1, BRCA2, and Tuberous sclerosis. The first two contain the slash "/" in the author name (copied straight from PubMed), and the third contains numbers in the author name (also copied straight from PubMed). Paging Boghog and other interested parties for comment. – Jonesey95 (talk) 16:52, 29 April 2015 (UTC)
- It seems to me that those templates shouldn't be
{{vcite2 journal}}
but{{cite journal}}
. Those corporate author names can't be reduced to Vancouver name format so I think that the error message is correct.
- Non-conforming Vancouver authors in PubMed are very rare (on the order of one in ten thousand citations), hence substituting
{{vcite2 journal}}
with{{cite journal}}
or by resetting|author-list-format=
to null should be OK. Category:CS1 errors: Vancouver style is now completely emptied. Boghog (talk) 05:55, 30 April 2015 (UTC)
- Non-conforming Vancouver authors in PubMed are very rare (on the order of one in ten thousand citations), hence substituting
- There are those who believe that empty parameters such as
|author-list-format=
constitute citation clutter and so will complain about and / or remove them. Can I suggest that{{vcite2 journal}}
and Module:ParseVauthors use some form of positive indication that the parameter is there for a purpose? Perhaps one of these:|author-list-format=none
or|author-list-format=default
or|author-list-format=cs1
; all of which would serve the purpose of not passing|author-list-format=vanc
to{{cite journal}}
.
- There are those who believe that empty parameters such as
- I don't think that it is necessary to have this same functionality in Module:Citation/CS1 because an empty
|author-list-format=
doesn't disable anything.
- I don't think that it is necessary to have this same functionality in Module:Citation/CS1 because an empty
New behavior of |authors=
needs to be adjusted or documented
Now that |authors=
is officially not an alias of |last=
, it appears that some behavior of the |authors=
parameter needs to be either adjusted or documented.
First, using "et al." in |authors=
does not put it in the "explicit et al." maintenance category:
Wikitext | {{cite journal
|
---|---|
Live | "Photometry of the z=7.08 quasar ULAS J1120+0641". Spitzer Proposals. 80114. May 2011. Bibcode:2011sptz.prop80114W. {{cite journal}} : Unknown parameter |authors= ignored (help)
|
Sandbox | "Photometry of the z=7.08 quasar ULAS J1120+0641". Spitzer Proposals. 80114. May 2011. Bibcode:2011sptz.prop80114W. {{cite journal}} : Unknown parameter |authors= ignored (help)
|
Second, using |authors=
with |display-authors=etal
does not display author names and shows a redundant parameter error (although this appears to be fixed in the sandbox):
Wikitext | {{cite journal
|
---|---|
Live | "Photometry of the z=7.08 quasar ULAS J1120+0641". Spitzer Proposals. 80114. May 2011. Bibcode:2011sptz.prop80114W. {{cite journal}} : Unknown parameter |authors= ignored (help)
|
Sandbox | "Photometry of the z=7.08 quasar ULAS J1120+0641". Spitzer Proposals. 80114. May 2011. Bibcode:2011sptz.prop80114W. {{cite journal}} : Unknown parameter |authors= ignored (help)
|
Changing |authors=
to |last=
works fine, by the way:
Wikitext | {{cite journal
|
---|---|
Live | Steve Warren, Daniel Mortlock; et al. (May 2011). "Photometry of the z=7.08 quasar ULAS J1120+0641". Spitzer Proposals. 80114. Bibcode:2011sptz.prop80114W. |
Sandbox | Steve Warren, Daniel Mortlock; et al. (May 2011). "Photometry of the z=7.08 quasar ULAS J1120+0641". Spitzer Proposals. 80114. Bibcode:2011sptz.prop80114W. |
And just to be perverse, here's one with |authors=
, |last2=
, and |display-authors=etal
:
Wikitext | {{cite journal
|
---|---|
Live | Daniel Mortlock; et al. (May 2011). "Photometry of the z=7.08 quasar ULAS J1120+0641". Spitzer Proposals. 80114. Bibcode:2011sptz.prop80114W. {{cite journal}} : Missing |author1= (help); Unknown parameter |authors= ignored (help)
|
Sandbox | Daniel Mortlock; et al. (May 2011). "Photometry of the z=7.08 quasar ULAS J1120+0641". Spitzer Proposals. 80114. Bibcode:2011sptz.prop80114W. {{cite journal}} : Missing |author1= (help); Unknown parameter |authors= ignored (help)
|
Is this working as designed? If so, we need to document it. If not, how should it be adjusted? – Jonesey95 (talk) 03:40, 30 April 2015 (UTC)
- First case fixed today, I think; second case was fixed 23 April 2015 (see here); third case, yep; fourth case is working as intended. When you mix
|authors=
with|last2=
you have two author parameters that are not aliases of each other so we emit the 'more than one of ...' redundant parameter error message. Because|authors=
with|last2=
are not aliases of each other, the code is looking for|last1=
to complete that author name list. Not finding it, the module emits the 'missing |last1= ...' error message.
- Nice work. The sandbox examples all look right to me now. – Jonesey95 (talk) 00:53, 1 May 2015 (UTC)
FYI
Hi all, just flagging this conversation at Module talk:Citation/CS1. Best, --Elitre (WMF) (talk) 08:29, 1 May 2015 (UTC)
|Editor=
(capital "E") not flagged in {{Cite book}}?
This capitalized |Editor=
appears to work just fine. I believe that it should be flagged as unsupported.
Wikitext | {{cite book
|
---|---|
Live | "All the great shows". Book about super trains. Seattle: On the Line Inc. 2006. {{cite book}} : Unknown parameter |Editor= ignored (|editor= suggested) (help)
|
Sandbox | "All the great shows". Book about super trains. Seattle: On the Line Inc. 2006. {{cite book}} : Unknown parameter |Editor= ignored (|editor= suggested) (help)
|
I haven't looked at the code yet to see why this capitalized parameter is accepted, but I will do so if I have time. – Jonesey95 (talk) 22:01, 5 April 2015 (UTC)
- It's on the Whitelist. That's odd. – Jonesey95 (talk) 22:03, 5 April 2015 (UTC)
- It's also been in the main module for years; I've just never noticed. It looks like we also allow
|Author=
and|Ref=
and|DoiBroken=
, with all other parameters, except for initialisms, in lower case only. I think we should deprecate the capitalized form of all of these parameters. Are they in our documentation anywhere? – Jonesey95 (talk) 22:09, 5 April 2015 (UTC)
- It's also been in the main module for years; I've just never noticed. It looks like we also allow
- The supported alternative capitalizations were each part of one or more of the pre-Lua templates and hence were pulled in to maintain backward compatibility. Dragons flight (talk) 22:24, 5 April 2015 (UTC)
- That makes sense. It's been two years since then, however, and I think it's time to bid them farewell. Maybe a maintenance category to ease into this transition? I have a nice AutoEd script that I use to clean up unsupported parameters (usually capitalization and misspelling errors), and it would work just fine on such a category. – Jonesey95 (talk) 22:34, 5 April 2015 (UTC)
insource:/\| *Author *=/
25 instancesinsource:/\| *Editor *=/
332 instances;|Editor=
is used by{{Infobox television episode}}
insource:/\| *Ref *=/
47 instances;|Ref=
is accepted by the{{harv}}
family of templatesinsource:/\| *DoiBroken *=/
none foundinsource:/\| *EditorGiven *=/
none foundinsource:/\| *EditorSurname *=/
2 instancesinsource:/\| *Embargo *=/
none found; we might want to think about removing|embargo=
in the cases where the embargo has expiredinsource:/\| *PPrefix *=/
none foundinsource:/\| *PPPrefix *=/
none found
- Presumably there are numbered versions:
|Authorn=
,|Editorn=
and perhaps|EditorGivenn=
and|EditorSurnamen=
.
- Presumably there are numbered versions:
- Given these low numbers, I don't have a problem deprecating the author and editor parameters and killing the others.
- I believe that I have fixed all of the instances of the above parameters that needed to be fixed, i.e. they were in citation templates and were populated with a value. It has been my experience that the insource search doesn't always find everything, so there may be a few more that crop up in the deprecated parameter category. – Jonesey95 (talk) 19:55, 11 April 2015 (UTC)
These are now deprecated:
|Author=
|Author#=
|Editor=
|Editor#=
|EditorGiven=
|EditorGiven#=
|EditorSurname=
|EditorSurname#=
and these are invalidated:
|DoiBroken=
|Embargo=
|PPPrefix=
For PMCs with |embargo=
that have expired, a new maintenance category:
Wikitext | {{cite journal
|
---|---|
Live | "Title". Journal. PMC 12345. {{cite journal}} : Unknown parameter |embargo= ignored (|pmc-embargo-date= suggested) (help)
|
Sandbox | "Title". Journal. PMC 12345. {{cite journal}} : Unknown parameter |embargo= ignored (|pmc-embargo-date= suggested) (help)
|
embargo expired today |
Wikitext | {{cite journal
|
---|---|
Live | "Title". Journal. PMC 12345. {{cite journal}} : Unknown parameter |embargo= ignored (|pmc-embargo-date= suggested) (help)
|
Sandbox | "Title". Journal. PMC 12345. {{cite journal}} : Unknown parameter |embargo= ignored (|pmc-embargo-date= suggested) (help)
|
embargo expired today |
—Trappist the monk (talk) 16:13, 7 April 2015 (UTC)
It appears that |Ref=
is still a valid parameter name. Is there a reason to keep it? I can think of none. It's probably still valid merely because of mistake on my part.
—Trappist the monk (talk) 11:52, 13 May 2015 (UTC)
- This capitalized parameter should be changed to deprecated or unsupported, per the discussion above. It looks like we all missed removing it in the last round, even though it was discussed above.
- Would you be willing to create a Monkbot task (or would GoingBatty be willing to create a BattyBot task) to scan the deprecated parameters category for these capitalized parameters and change them to lower-case? The category is so overwhelmed with
|coauthors=
that it is hard for a human editor to find|month=
and Ref and other rare deprecated parameters in there. – Jonesey95 (talk) 14:19, 13 May 2015 (UTC)
- I have an AWB script that works on these plus others listed in the table at Help:CS1_errors#Cite_uses_deprecated_parameters. I have just added
|Ref=
to it.
- I have an AWB script that works on these plus others listed in the table at Help:CS1_errors#Cite_uses_deprecated_parameters. I have just added
|vauthors=
The topic of |vauthors=
support periodically pops up. It has done so again at Module talk:Citation/CS1/Archive 12#Author parsing and at Wikipedia talk:WikiProject Medicine#Medical FA maintenance. |vauthors=
is a parameter that is used in {{vcite2 journal}}
to hold a strictly formatted Vancouver system-style author name list. {{vcite2 journal}}
invokes Module:ParseVauthors which extracts the author names from |vauthors=
into a series of |firstn=
/ |lastn=
parameters that it then passes with |name-list-format=vanc
and |display-authors=6
along with all of the other parameters to {{cite journal}}
.
I have added support for this parameter to Module:Citation/CS1/sandbox. These examples are {{cite book/new}}
but the parameter works for the other cs1|2 templates:
A simple case:
- First FM, Second FM (2015). Title.
Supports |author-maskn=
and |authorlinkn=
as well as CITEREF
:
- First FM, Lincoln A (2015). Title.
{{cite book}}
: Invalid|ref=harv
(help); Unknown parameter|authormask=
ignored (|author-mask=
suggested) (help)
allows |vauthors=
to contain et al. without adding the page to Category:CS1 maint: Explicit use of et al. because the PMID cite tool, heavily used by WP:MED, did, in the past, and reportedly will again in the future, create citations that include the text:
- First FM, Second FM, et al. (2015). Title.
default display of 6 authors even though seven are listed:
:First FM, Second FM, Third FM, Fourth FM, Fifth FM, Sixth FM, Seventh FM (2015). Title.
to display all seven, set
|display-authors=7
. Category:CS1 maint: display-authors suppressed because in this case there is legitimate need to set |display-authors=
to a number equal to or greater than the number of authors::First FM, Second FM, Third FM, Fourth FM, Fifth FM, Sixth FM, Seventh FM (2015). Title.
{{cite book}}
: Invalid |display-authors=7
(help)
{{citation}}
, name list contains an illegal character
{{cite journal/new}}
, first name's intials not properly capitalized:
- First fm; Second FM (2015). "Title". Journal.
{{cite journal}}
: Vancouver style error: punctuation in name 1 (help)
As currently configured, |vauthors=
has priority over |lastn=
/ |firstn=
which has priority over |authors=
. Is this the correct hierarchy? Still to do is error reporting when a template includes |vauthors=
with any of |lastn=
/ |firstn=
/ |authors=
.
—Trappist the monk (talk) 13:01, 7 May 2015 (UTC)
It occurs to me that if we keep this, we should extend it to support editors with |veditors=
.
—Trappist the monk (talk) 13:28, 7 May 2015 (UTC)
- It makes sense to support this given that vauthors has a format which can be parsed in an expected way (and which can be error checked). I am concerned about not including all authors (to some extent). --Izno (talk) 14:12, 7 May 2015 (UTC)
- Nothing about this parameter will prevent you from including a gross of authors if that is your desire. To be compatible with
{{vcite2 journal}}
which itself complies with this recommendation (at 1),{{cite journal}}
should display a maximum of six authors unless otherwise directed by|display-authors=
.
- Nothing about this parameter will prevent you from including a gross of authors if that is your desire. To be compatible with
- Lifting that restriction for the other cs1|2 templates may be 'correct' but may also confuse editors. I think that if we define a standard 'vauthors rule' (up to six authors are displayed unless overridden by
|display-authors=
), we won't have so many confused editors. If there is sufficient need for a different or no default for other templates, we can address that need as it arises.
- Lifting that restriction for the other cs1|2 templates may be 'correct' but may also confuse editors. I think that if we define a standard 'vauthors rule' (up to six authors are displayed unless overridden by
- —Trappist the monk (talk) 14:46, 7 May 2015 (UTC)
- I was commenting more about the linked WT:MED discussion regarding that second sentence. --Izno (talk) 18:07, 7 May 2015 (UTC)
- —Trappist the monk (talk) 14:46, 7 May 2015 (UTC)
A slight revision of the code that handles |display-authors=
:
|display-authors=
- First FM, Second FM, Third FM, Fourth FM, Fifth FM, Sixth FM, Seventh FM (2015). Title.
|display-authors=8
|display-authors=3
- First FM, Second FM, Third FM, et al. (2015). Title.
|display-authors=etal
(four authors listed)- First FM, Second FM, Third FM, Fourth FM, et al. (2015). Title.
And to make sure I didn't break the |display-authors=
handling for the |authorn=
type of author name list:
|display-authors=
- First FM; Second FM; Third FM; Fourth FM; Fifth FM; Sixth FM; Seventh FM (2015). Title.
|display-authors=8
|display-authors=3
- First FM; Second FM; Third FM; et al. (2015). Title.
|display-authors=etal
(four authors listed)- First FM; Second FM; Third FM; Fourth FM; et al. (2015). Title.
—Trappist the monk (talk) 23:56, 7 May 2015 (UTC)
This is fantastic! Vancouver style authors have been and continue to be widely used in medical and scientific articles. Adding |vauthors=
support to CS1 will make it much easier to maintain a consistent citation style in these articles while at the same time producing clean metadata. Thank you Trappist! Boghog (talk) 05:10, 8 May 2015 (UTC)
- So why can we implment this but not the citation styles that use small caps for authors names...·maunus · snunɐɯ· 05:13, 8 May 2015 (UTC)
- Because that doesn't have consensus per WP:SMALLCAPS? --Izno (talk) 05:18, 8 May 2015 (UTC)
- It was REMOVED without consensus! And it has consensus aslong a WP:CITEVAR is in effect.·maunus · snunɐɯ· 23:56, 8 May 2015 (UTC)
It occurs to me that setting the artificial limit to the number of authors to be displayed (6) is inconsistent with the other author-holding parameters. I think that imposing such a limit on editors will just be confusing. If editors wish to constrain the display, they should do it with |vauthors=
in the same way that they would for |authorn=
and for |lastn=
/ |firstn=
: use |display-authors=
. So, I've removed the 6-author display constraint from the sandbox.
—Trappist the monk (talk) 11:36, 10 May 2015 (UTC)
- The default should be set to what most editors prefer. Editors that use
|vauthors=
presumably prefer compact Vancouver style output. Since the original ICMJE recommendation is to display only the first six authors, I suspect that many of these same editors would support following this recommendation. The whole idea|vauthors=
is to reduce the number of required citation parameters. If most editors end up adding|display-authors=6
, it partially defeats the purpose of using|vauthors=
. Boghog (talk) 12:37, 10 May 2015 (UTC)
- You wrote:
The tool will return to its default (list all authors if there are five or less, and truncate to three plus et al if there are six or more).
Since the tool will be artificially limiting the number of authors, and because the tool is apparently commonly used, shouldn't that be sufficient? The template should not impose an artificial limit on one author-name-holding parameter that it doesn't also impose on|authorn=
and|lastn=
/|firstn=
parameters. When editors desire to include more authors in the template than are to be displayed, they should use the same mechanism (insofar as is possible – it won't work on|authors=
) that is used with other author-name-holding parameters. If compactness is desired, there is nothing to prevent editors from simply reducing the number of authors listed in|vauthors=
.
- You wrote:
- There is developing consensus over at WT:MED (and also supported by Izno above) that all authors should be included in the author list. As I subsequently wrote, the tool's default has been changed to include all authors and will only truncate the author list if the "Use et al. for author list" option is selected. The "et al." option is retained for FA MED articles and for citations with "hyperauthorship". Boghog (talk) 16:17, 10 May 2015 (UTC)
- Apparently, there is some support at WT:MED (here and here) for listing all and truncating the list with
|display-authors=
. If a consensus develops outside of WP:MED to artificially limit the displayed length of a Vancouver-style author-name list, then we should consider doing that but I think that it isn't quite right to allow WP:MED to define this parameter's functionality based on WP:MED's unique preferences when such preferences may not match those of other projects or other editors.
- Apparently, there is some support at WT:MED (here and here) for listing all and truncating the list with
- By far, the widest use of the citation filling tool and {{vcite2 journal}} has been within the WP:MED and WP:MCB projects and the participants within these two projects largely overlap. Hence the consensus at WP:MED is significant and carries at least as much weight as this talk page. Finally {{vcite2 journal}} has been transcluded into ~2600 pages and has included
|display-authors=6
from the beginning. Not one editor has objected to this setting. Boghog (talk) 17:46, 10 May 2015 (UTC)
- By far, the widest use of the citation filling tool and {{vcite2 journal}} has been within the WP:MED and WP:MCB projects and the participants within these two projects largely overlap. Hence the consensus at WP:MED is significant and carries at least as much weight as this talk page. Finally {{vcite2 journal}} has been transcluded into ~2600 pages and has included
- I do not doubt that. But,
{{vcite2 journal}}
is not{{cite journal}}
,{{cite book}}
,{{cite web}}
nor any of the other 20-some cs1|2 templates. For editors who use those templates, there are no artificial limits such as those that WP:MED have imposed upon themselves. I suspect that a requirement to add|display-authors=n
to show more than 6 authors is going to be confusing because editors don't need to do that with|author=
or|authors=
.
- I do not doubt that. But,
Corporate authors and |vauthors=
What to do about corporate authors? This cite throws two errors because '16' is not in the set of letters allowed by the Vancouver name test and because the 'first name', 'Consortium' is not one or two uppercase letters. A quick search of the Vancouver system documentation for the terms 'corporate' and 'institutional' was unproductive. The corporate author in this citation renders correctly:
- European Chromosome 16 Tuberous Sclerosis Consortium (1993). "Identification and characterization of the tuberous sclerosis gene on chromosome 16". Cell. 75 (7): 1305–15. doi:10.1016/0092-8674(93)90618-Z. PMID 8269512.
{{cite journal}}
: Vancouver style error: initials in name 1 (help)
but, the metadata are flawed:
&rft.au=European+Chromosome+16+Tuberous+Sclerosis%2C+Consortium&rft.aufirst=Consortium&rft.aulast=European+Chromosome+16+Tuberous+Sclerosis
This is because there isn't a mechanism in place to identify this author as a corporate author.
There are citations in article space that list both individual and corporate authors using the existing author-holding parameters. If a corporate or institutional author is listed separately in |authorn=
or |lastn=
, the citation renders correctly and the metadata are not corrupted. |authors=
almost always produces corrupt metadata. It should be expected that editors will create citations that will include both individual and corporate authors in |vauthors=
.
One possible solution might be to require that corporate authors be 'wrapped' in some sort of simple markup:
|vauthors=[European Chromosome 16 Tuberous Sclerosis Consortium], First FM, Second FM
The wrapping bypasses the usual Vancouver name test so any character is allowed within the brackets. This should not be used to defeat the test for individual author-names.
Using this scheme, this citation:
- [European Chromosome 16 Tuberous Sclerosis Consortium], First FM, Second FM (1993). "Identification and characterization of the tuberous sclerosis gene on chromosome 16". Cell. 75 (7): 1305–15. doi:10.1016/0092-8674(93)90618-Z. PMID 8269512.
{{cite journal}}
: Vancouver style error: initials in name 1 (help)
produces this correct metadata:
&rft.au=European+Chromosome+16+Tuberous+Sclerosis+Consortium&rft.au=First%2C+FM&rft.aulast=European+Chromosome+16+Tuberous+Sclerosis+Consortium&rft.au=Second%2C+FM
I have added code to trap the expected case when editors write [[
and ]]
.
- European Chromosome 16 Tuberous Sclerosis Consortium, First FM, Second FM (1993). "Identification and characterization of the tuberous sclerosis gene on chromosome 16". Cell. 75 (7): 1305–15. doi:10.1016/0092-8674(93)90618-Z. PMID 8269512.
{{cite journal}}
: Vancouver style error: initials in name 1 (help)
An opening [[
without a closing ]]
does not produce an error because WikiMedia never finds the ending ]]
so the template's }}
is never found.
While this example uses square brackets, perhaps a better markup would be doubled parentheses in this fashion:
|vauthors=((European Chromosome 16 Tuberous Sclerosis Consortium)), First FM, Second FM
Doubling the parentheses is closely akin to other doubled markup used in Wikitext but it is not used anywhere else that I know of. Parentheses are not allowed by the Vancouver name test so their presence won't be confused as a proper part of a name.
Opinions? Is there a better way to detect or define corporate or institutional authors?
—Trappist the monk (talk) 13:32, 10 May 2015 (UTC)
- I don't have a strong feeling about this. The ICMJE recommendations suggest that individual and organization authors be separated by a semicolon. This recommendation is followed by PubMed (see for example PMID 12771764). However I don't think we should follow this particular recommendation as it would make error checking less robust (one of the most common vauthors errors is likely to be the use of standard CS1 rendered author format).
- Another possibility is to use
|vauthors=
for the individual authors and|authorn=
for the organization author. For example:- {{vcite2 journal | vauthors = Vallancien G, Emberton M, Harving N, van Moorselaar RJ | author5 = Alf-One Study Group | title = Sexual dysfunction in 1,274 European men suffering from lower urinary tract symptoms | journal = J. Urol. | volume = 169 | issue = 6 | pages = 2257–61 | year = 2003 | pmid = 12771764 | doi = 10.1097/01.ju.0000067940.76090.73 }} renders as:
- Vallancien G, Emberton M, Harving N, van Moorselaar RJ (2003). "Sexual dysfunction in 1,274 European men suffering from lower urinary tract symptoms". J. Urol. 169 (6): 2257–61. doi:10.1097/01.ju.0000067940.76090.73. PMID 12771764.
- This does not currently work with {{cite journal/new}} however. Please note that citations with organization authors are not very common. Furthermore I don't object to using extra parameters to cover special cases that occur infrequently. Boghog (talk) 16:57, 10 May 2015 (UTC)
- Also if there is a single author and that author is an organization, it would be much more practical to use
|author1=
instead of|vauthors=
. Boghog (talk) 17:04, 10 May 2015 (UTC)
- I agree that for a single corporate author,
|author=
should be preferred. I suspect that editors will use|vauthors=
for single author names whether they are human or corporate.
- I agree that for a single corporate author,
- The mix of
|vauthors=
and|authorn=
intentionally doesn't work in Module:Citation/CS1/sandbox. The Module currently disallows the combination of|authors=
with|authorn=
(and its alias|lastn=
with|firstn=
) because the former is not formatted by the template and the latter is and because|authors=
is not an alias of|authorn=
. Similarly,|authorn=
is not an alias of|vauthors=
so mixed use would blur the line between those two styles. This is why I suggested that corporate authors should be included in|vauthors=
with appropriate markup to render the visual presentation and the metadata properly.
- The mix of
- I agree that corporate authors and individual authors should not be separated by semicolons.
- I have changed the corporate or institutional mark up from single square brackets to doubled parentheses because single square brackets have meaning as external link markup:
{{cite journal/new | vauthors = Vallancien G, Emberton M, Harving N, van Moorselaar RJ, ((Alf-One Study Group)) | title = Sexual dysfunction in 1,274 European men suffering from lower urinary tract symptoms | journal = J. Urol. | volume = 169 | issue = 6 | pages = 2257–61 | year = 2003 | pmid = 12771764 | doi = 10.1097/01.ju.0000067940.76090.73 }}
renders as:- Vallancien G, Emberton M, Harving N, van Moorselaar RJ, Alf-One Study Group (2003). "Sexual dysfunction in 1,274 European men suffering from lower urinary tract symptoms". J. Urol. 169 (6): 2257–61. doi:10.1097/01.ju.0000067940.76090.73. PMID 12771764.
- —Trappist the monk (talk) 12:49, 13 May 2015 (UTC)
- I have changed the corporate or institutional mark up from single square brackets to doubled parentheses because single square brackets have meaning as external link markup:
|vauthors= and |authorn= and |authors=
Because there are now three possible sources for authors, I think that we should choose one of the three and emit an error message when more than one of these sources is present in the template. The hierarchy in the sandbox is: |authorn=
(includes |lastn=
, an alias and |firstn=
→ |vauthors=
→ |authors=
. The current live version of the module emits an error message when |authors=
and |authorn=
are both detected.
|author1=
:
- First LF, Second LF, Third LF (2015). Title.
{{cite book}}
: CS1 maint: multiple names: authors list (link)
|vauthors=
:
- First VF, Second VF, Third VF (2015). Title.
|authors=
:
|vauthors=
and |author1=
:
- Fourth LF; Fifth LF; Sixth LF; Seventh LF (2015). Title.
{{cite book}}
: More than one of author-name-list parameters specified (help)
|vauthors=
and |authors=
:
- First VF, Second VF, Third VF (2015). Title.
{{cite book}}
: Unknown parameter|authors=
ignored (help)
|author1=
and |authors=
:
- First LF, Second LF, Third LF (2015). Title.
{{cite book}}
: Unknown parameter|authors=
ignored (help)CS1 maint: multiple names: authors list (link)
|vauthors=
, |author1=
, and |authors=
:
- First LF, Second LF, Third LF (2015). Title.
{{cite book}}
: More than one of author-name-list parameters specified (help); Unknown parameter|authors=
ignored (help)CS1 maint: multiple names: authors list (link)
There is a limit to this. When |vauthors=
or |authors=
are used with |authorn=
, n must be 1 or 2 to be detected. This is because n could conceivably be any number greater than 0 and there are 6 aliases of |authorn=
. The test is similar to the test that is used to detect missing |lastn=
which uses a 'hole' size of 2 to decide that the test is done.
—Trappist the monk (talk) 23:10, 10 May 2015 (UTC)
|veditors=
A first hack at |veditors=
. I cloned the code that does the author selection to do editor selection from |editorn=
(and its aliases), |editors=
, and |veditors=
. Except for names, the code is identical to that used for authors so I need to figure out how to combine the two into a single function. The code that interprets |vauthors=
and |veditors=
and then creates the name list that is later rendered as an author list or an editor list is the same. These example show that the sandbox code is capable of properly rendering a |veditors=
name list.
|editor1=
:
- First LF, Second LF, Third LF, ed. (2015). Title.
{{cite book}}
: CS1 maint: multiple names: editors list (link)
|veditors=
:
- First VF, Second VF, Third VF, eds. (2015). Title.
|editors=
:
|veditors=
and |editor1=
:
- Fourth LF; Fifth LF; Sixth LF; Seventh LF, eds. (2015). Title.
{{cite book}}
: More than one of editor-name-list parameters specified (help)
|veditors=
and |editors=
:
- First VF, Second VF, Third VF, eds. (2015). Title.
{{cite book}}
: Unknown parameter|editors=
ignored (|editor=
suggested) (help)
|editor1=
and |editors=
:
- First LF, Second LF, Third LF, ed. (2015). Title.
{{cite book}}
: Unknown parameter|editors=
ignored (|editor=
suggested) (help)CS1 maint: multiple names: editors list (link)
|veditors=
, |editor1=
, and |editors=
:
- First LF, Second LF, Third LF, ed. (2015). Title.
{{cite book}}
: More than one of editor-name-list parameters specified (help); Unknown parameter|editors=
ignored (|editor=
suggested) (help)CS1 maint: multiple names: editors list (link)
—Trappist the monk (talk) 19:18, 11 May 2015 (UTC)
Citing youtube and online video sites
Apologies if this question has been asked a gazillion times already. What is the preferred cite AV media parameters for citing a youtube or other online video: 1) from the direct site itself, and 2) from a wrapper site / news article that embeds the video? Should I use work=YouTube, medium=YouTube, or via=YouTube? AngusWOOF (bark • sniff) 18:57, 7 May 2015 (UTC)
- It probably hasn't, but I'll throw a suggested answer out:
- If you are citing content in the video itself, I would recommend clicking through to the origin website (youtube.com in your example) and using that URL. This is cite AV media.
- If you are citing content outside the video, the URL you are on at that time. In this case I don't see a need to mention YouTube or a video or media at all in the context of the citation so I would use cite web/cite news.
- If for some reason you need both (I can't think of one), then provide two citations.
- work = YouTube is fine. medium as a parameter does not exist in the documentation (using ctrl + F). via would be appropriate in the 3rd case. --Izno (talk) 19:25, 7 May 2015 (UTC)
titlelink oddity in cite encyclopedia
According to the cite encyclopedia documentation, |title-link=
is "Title of existing Wikipedia article about the source named in title" – yet it actually links the text in |encyclopedia=
, not |title=
:
Wikitext | {{cite encyclopedia
|
---|---|
Live | "Gopher". The American Cyclopædia (1879). 1879 – via Wikisource. {{cite encyclopedia}} : Unknown parameter |titlelink= ignored (|title-link= suggested) (help)
|
Sandbox | "Gopher". The American Cyclopædia (1879). 1879 – via Wikisource. {{cite encyclopedia}} : Unknown parameter |titlelink= ignored (|title-link= suggested) (help)
|
|url=
works as expected, but full urls shouldn't be necessary when wikilinks are available
Wikitext | {{cite encyclopedia
|
---|---|
Live | "Gopher". The American Cyclopædia (1879). 1879 – via Wikisource. |
Sandbox | "Gopher". The American Cyclopædia (1879). 1879 – via Wikisource. |
Can this be fixed? Thanks - Evad37 [talk] 00:21, 8 May 2015 (UTC)
- It is perhaps fixed in the sandbox. I have no more time to think about it for a couple of days.
access-date usage definition
I notice that on many cite template related pages that the given usage for |access-date=
varies. I believe that "full date when the contents pointed to by url was last verified to support the text in the article" (as given in the cite book documentation) best captures what is intended for |access-date=
. Yet many places (like on Help:Citation Style 1 itself or places like Category:Pages using citations with accessdate and no URL give differing definitions, mostly because the authors who wrote them probably weren't trying to be as precise as they should have been. I intend to start tweaking the usage definition for accessdate whenever I see it saying something too unlike that of Template:Cite book. If you can think of CS1 examples where |access-date=
really should not use "full date when the contents pointed to by url was last verified to support the text in the article", let me know. Jason Quinn (talk) 11:30, 11 May 2015 (UTC)
- I have copy-edited the
|access-date=
documentation just now. I fixed some grammar and changed the word "required", since "required" has a specific meaning for template parameters, and|access-date=
does not meet that definition.
- All of the CS1 core templates that display the
|access-date=
help text in their documentation should be using the exact same text to describe the parameter, since they (should) transclude Template:Citation_Style_documentation/url.
- I support your changing of Help:Citation Style 1. The category page linked above I'm not as sure about. It has a pretty good explanation that has been developed over time to be helpful. Feel free to be bold and change it, but don't be offended if one of us swoops in after you with changes to your changes. Thanks. – Jonesey95 (talk) 13:53, 11 May 2015 (UTC)
enumerated parameters
I started doing the searches identified in the following tables so that I might have some idea of how to better order the search for enumerated author and editor names. But, the search also shows general editor preferences for certain parameter styles and for certain parameter names.
parameter | search string | count |
---|---|---|
|author-firstn= |
insource:/\| *author\-first[0-9]* *=/ |
227 |
|authorn-first= |
insource:/\| *author[0-9]+\-first *=/ |
96 |
|firstn= |
insource:/\| *first[0-9]* *=/ |
51,274 |
|givenn= |
insource:/\| *given[0-9]* *=/ |
473 |
parameter | search string | count |
---|---|---|
|author-lastn= |
insource:/\| *author\-last[0-9]* *=/ |
236 |
|authorn-last= |
insource:/\| *author[0-9]+\-last *=/ |
94 |
|lastn= |
insource:/\| *last[0-9]* *=/ |
43,262 |
|surnamen= |
insource:/\| *surname[0-9]* *=/ |
800 |
|authorn= |
insource:/\| *author[0-9]* *=/ |
42,398 |
|subjectn= |
insource:/\| *subject[0-9]* *=/ |
† used by {{cite interview}}
but also used by {{infobox book}}
, {{In-universe}}
, {{databank}}
so this number is essentially meaningless
parameter | search string | count |
---|---|---|
|author-linkn= |
insource:/\| *author\-link[0-9]* *=/ |
19,139 |
|authorn-link= |
insource:/\| *author[0-9]+\-link *=/ |
10,044 |
|authorlinkn= |
insource:/\| *authorlink[0-9]* *=/ |
53,345 |
|authornlink= |
insource:/\| *author[0-9]+link *=/ |
50 |
|subject-linkn= |
insource:/\| *subject\-link[0-9]* *=/ |
47 |
|subjectn-link= |
insource:/\| *subject[0-9]+\-link *=/ |
1 |
|subjectlinkn= |
insource:/\| *subjectlink[0-9]* *=/ |
679 |
|subjectnlink= |
insource:/\| *subject[0-9]+link *=/ |
0 |
parameter | search string | count |
---|---|---|
|author-maskn= |
insource:/\| *author\-mask[0-9]* *=/ |
710 |
|authorn-mask= |
insource:/\| *author[0-9]+\-mask *=/ |
7 |
|authormaskn= |
insource:/\| *authormask[0-9]* *=/ |
511 |
|authornmask= |
insource:/\| *author[0-9]+mask *=/ |
22 |
parameter | search string | count |
---|---|---|
|editor-firstn= |
insource:/\| *editor\-first[0-9]* *=/ |
32,889 |
|editorn-first= |
insource:/\| *editor[0-9]+\-first *=/ |
23,224 |
|editor-givenn= |
insource:/\| *editor\-given[0-9]* *=/ |
0 |
|editorn-given= |
insource:/\| *editor[0-9]+\-given *=/ |
0 |
parameter | search string | count |
---|---|---|
|editorn= |
insource:/\| *editor[0-9]* *=/ |
33,883 |
|editor-lastn= |
insource:/\| *editor\-last[0-9]* *=/ |
33,442 |
|editorn-last= |
insource:/\| *editor[0-9]+\-last *=/ |
21,130 |
|editor-surnamen= |
insource:/\| *editor\-surname[0-9]* *=/ |
0 |
|editorn-surname = |
insource:/\| *editor[0-9]+\-surname *=/ |
0 |
parameter | search string | count |
---|---|---|
|editor-linkn= |
insource:/\| *editor\-link[0-9]* *=/ |
7,988 |
|editorn-link= |
insource:/\| *editor[0-9]+\-link *=/ |
5,183 |
|editorlinkn= |
insource:/\| *editorlink[0-9]* *=/ |
297 |
|editornlink= |
insource:/\| *editor[0-9]+link *=/ |
41 |
parameter | search string | count |
---|---|---|
|editor-maskn= |
insource:/\| *editor\-mask[0-9]* *=/ |
19 |
|editorn-mask= |
insource:/\| *editor[0-9]+\-mask *=/ |
6 |
|editormaskn= |
insource:/\| *editormask[0-9]* *=/ |
16 |
|editornmask= |
insource:/\| *editor[0-9]+mask *=/ |
1 |
I have never really liked parameters where the enumerator is in the middle of the parameter name: |authorn-first=
and |editornlink=
for example, regardless of hyphenation. For many of the same reasons that we settled on hyphenated parameter names and have deprecated capitalized and camel-case parameter names, I think that we should settle on one standard form of enumerated parameter name. From the tables above, common usage would seem to suggest that editors generally prefer parameter names with the enumerator at the end of the name. Except when it comes to enumerated editor parameters. While enumerator-at-the-end is still preferred, enumerator-in-the-middle runs a close second.
These tables also show that some of the available enumerated parameter are rarely if ever used. Perhaps we should consider deprecating:
|subjectnlink=
|subjectn-link=
|editor-givenn=
|editorn-given=
|editor-surnamen=
|editorn-surname=
Opinions?
—Trappist the monk (talk) 12:33, 12 May 2015 (UTC)
- As frequent readers here know, I am often in favor of change, but I think this change is not necessary. It's cleaner, for sure, but it's actually less consistent across the parameters. If we do it, I expect that someone will come along at some point and say "We have parameter X, but we don't have the obvious parallel parameter Y." And then it's a big discussion. I don't know.... – Jonesey95 (talk) 13:12, 12 May 2015 (UTC)
- There are really two items for consideration here: standardized enumeration and deprecating some rarely/never used parameters. Which of these are you saying will be
less consistent across the parameters
?
- There are really two items for consideration here: standardized enumeration and deprecating some rarely/never used parameters. Which of these are you saying will be
- —Trappist the monk (talk) 13:21, 12 May 2015 (UTC)
- Having
|editorn-link=
but not|subjectn-link=
makes the parameters less standard. I would rather have both or remove both than just have one of them. – Jonesey95 (talk) 14:44, 12 May 2015 (UTC)- I think that you are only focusing on the proposal to deprecate the short list of parameters and ignoring the proposal to standardize enumerated parameters. Were we to not standardize, then perhaps you are right.
- Having
- —Trappist the monk (talk) 13:21, 12 May 2015 (UTC)
- If I had my way, the standard for enumerated parameters would be enumerator-at-the-end so both
|editorn-link=
and|subjectn-link=
would be deprecated (even were we to not deprecate the latter because of disuse). We would still have as active and supported parameters:|editor-linkn=
and|subject-linkn=
. Parameters in the form|xxxxnyyyy=
or|xxxxn-yyyy=
would be deprecated and ultimately replaced with the extant|xxxx-yyyyn=
form. I don't see much point in keeping both forms which I think is supported by the data in the tables above.
- If I had my way, the standard for enumerated parameters would be enumerator-at-the-end so both
- —Trappist the monk (talk) 15:44, 12 May 2015 (UTC)
- Now I see what you're saying, I think. I support standardizing on
|parameter-namen=
as the canonical form of two-word-plus-number parameters in our documentation (I haven't checked to see what the docs currently say). I don't see the point of deprecating the|parametern-name=
form on what appear to be aesthetic grounds. I won't die on that hill, though; if others feel strongly, go for it, but please do show up on this page to respond when people complain that we are constantly changing things for no good reason. – Jonesey95 (talk) 23:52, 12 May 2015 (UTC)
- Now I see what you're saying, I think. I support standardizing on
- —Trappist the monk (talk) 15:44, 12 May 2015 (UTC)
- How is deprecating enumerator-in-the-middle parameters different from deprecating capitalized parameters?
- I would argue for keeping
|givenn=
and|surnamen=
(and their editor versions), and adding them to the documentation. Having recently edited a lot of citations with East Asian authors, I find it confusing to have to put an author's first name into|last=
and their last name into|first=
, and I have seen editors erroneously "correcting" them. Kanguole 16:19, 12 May 2015 (UTC)
- I have said nothing about deprecating
|givenn=
and|surnamen=
. Certainly, if I had my way we would deprecate|editorn-given=
and|editorn-surname=
because of enumerator-in-the-middle syndrome and because of disuse. Because of disuse, I'm inclined to deprecation of|editor-givenn=
and|editor-surnamen=
but could be persuaded to keep them, at least for a time.
- I have said nothing about deprecating
- I would argue to keep
|editor-givenn=
and|editor-surnamen=
for the same reasons as above: they provide an alternative that is less confusing and error-prone. Kanguole 12:10, 13 May 2015 (UTC)
- I would argue to keep
Get first1 and last1 parameters to work in Wikiversity too
The corresponding template in Wikiversity (Wikiversity:Template:Cite journal) does not support the parameters first1, last1, first2 etc. How can this functionality be copied from this template to that one? Mikael Häggström (talk) 18:05, 12 May 2015 (UTC)
- Since Wikiversity already has Wikiversity:Template:Citation/core, it might be simplest to copy
{{cite journal/old}}
from en:WP to Wikiversity:Template:Cite journal/sandbox to prove that it works (because the Wikiversity version of{{citation/core}}
is somewhat older) and then, assuming that it does work, update the live{{cite journal}}
from the sandbox. That will give you up to 9 author names.
- Wikiversity also has very old version Wikiversity:Module:Citation/CS1 so using that instead of
{{citation/core}}
is another alternative. A rather bigger job would be to upgrade the module to use the current version of Module:Citation/CS1 from en:WP.
- It does work now, after copying
{{cite journal/old}}
from en:WP to{{cite journal}}
, thanks! It would be even better, however, if the author presentation had Wikipedia's style (First L instead of First, L;). Would that be achieved by performing any of the latter methods you described? Mikael Häggström (talk) 05:06, 14 May 2015 (UTC)
- It does work now, after copying
- Standard Wikipedia style is to put a comma between an author's last and first names and to separate consecutive authors with a semicolon. cs1|2 does not render author names in italics (nor does it render first name followed by last initial):
{{cite book/old |title=Title |last=Last |first=F |last2=Last2 |first2=F}}
- Last, F; Last2, F. Title.
- If you are looking to mimic Vancouver system style you can do this:
{{cite book |author-separator=, |author-name-separator=  |title=Title |last=Last |first=F |last2=Last2 |first2=F}}
- Last F, Last2 F. Title.
- —Trappist the monk (talk) 11:06, 14 May 2015 (UTC)
- Thanks again! Mikael Häggström (talk) 04:44, 15 May 2015 (UTC)
- Standard Wikipedia style is to put a comma between an author's last and first names and to separate consecutive authors with a semicolon. cs1|2 does not render author names in italics (nor does it render first name followed by last initial):
Can parameters be passed to a nested cite web?
I'm trying to modify the Airreg template so that it produces in-line citations instead of external links, but when I try to nest a {{cite web}} into it, the parameters taken by Airreg and passed to {{cite web}} don't seem to get processed by it, and the output is just {{{1}}}, {{{2}}} etc..
Instead, the same parameters passed, for example, to a nested {{conversion}} are processed normally, as expected. Is there something peculiar about {{cite web}} that, when nested, prevents it from accepting parameters?
See an example from my sandbox template, which takes one parameter, e.g. 'N4739N', outputs it as it is and then passes it to cite web, which seems to ignore it. This:
{{User:Deeday-UK/sandbox|N4739N}}
produces this:
Aircraft registration: N4739N[1]
--Deeday-UK (talk) 00:46, 14 May 2015 (UTC)
References
- There are a several templates that feed various parameters to
{{cite web}}
or other cs1|2 templates (see Category:Citation Style 1 meta-templates or Category:Citation Style 1 specific-source templates) so that shouldn't be a problem. Have you tried your test without the<ref>...</ref>
tags?
- —Trappist the monk (talk) 01:00, 14 May 2015 (UTC)
- Good hint TtM, yes, without the
<ref>...</ref>
tags the parameters are processed as expected. Only trouble is that without the ref tags, it doesn't produce a superscript reference to a footnote, and instead it outputs the footnote text directly into the article body, right where the{{cite web}}
template is. Is there any way around it? --Deeday-UK (talk) 01:23, 14 May 2015 (UTC)- Try wrapping
{{cite web}}
in{{#tag:ref|{{cite web |...}}}}
.
- Try wrapping
- Good hint TtM, yes, without the
- —Trappist the monk (talk) 01:52, 14 May 2015 (UTC)
- Major thanks, Trappist tm; that worked. --Deeday-UK (talk) 17:22, 14 May 2015 (UTC)
- —Trappist the monk (talk) 01:52, 14 May 2015 (UTC)
Proposal to put a comma before "et al."
There is a proposal to put a comma before "et al." in author and editor lists. See this discussion. – Jonesey95 (talk) 03:22, 14 May 2015 (UTC)
Link to an author page, without breaking "first1, last1 separate" convention?
Is there a way to have an author name linked to a page about that person, yet still retain the use of the separated "first1" and "last1" parameters (useful for bots searching wikipedia I suppose)? On the page Unknot, there's a reference to a paper by Godfried Toussaint. I had wanted to put this (with separate names):
- {{cite journal |author = [[Godfried Toussaint]] |last1 = Toussaint |first1 = Godfried Toussaint |title = A new class of stuck unknots in Pol-6 | [...] }}
but had to settle for the slightly less-informative:
- {{cite journal |author = [[Godfried Toussaint]] |title = A new class [...] }}
to avoid getting a "double author" error. Is there some other way to do this? Perhaps an additional "author-link" parameter? (But then you could have problems with multiple authors, so you'd need "author-link", "author-link1") Jimw338 (talk) 16:20, 19 May 2015 (UTC)
|first=Godfried
|last=Toussaint
|author-link=Godfried Toussaint
Kanguole 16:28, 19 May 2015 (UTC)- Yes, as the documentation already states and Kanguole cryptically implies, the authorlink, author1-link, etc parameters you are asking for are already in place. —David Eppstein (talk) 16:51, 19 May 2015 (UTC)
- The documentation should help you. If not, here's an example with two linked authors:
- {{cite journal |author-link1 = Godfried Toussaint |last1 = Toussaint |first1 = Godfried |last2=Newton|first2=Isaac|author-link2=Isaac Newton |title = A new class of stuck unknots in Pol-6 }}
- The documentation should help you. If not, here's an example with two linked authors:
- yields:
- Toussaint, Godfried; Newton, Isaac. "A new class of stuck unknots in Pol-6".
{{cite journal}}
: Cite journal requires|journal=
(help)
- Toussaint, Godfried; Newton, Isaac. "A new class of stuck unknots in Pol-6".
- Is that what you were looking for? – Jonesey95 (talk) 20:21, 19 May 2015 (UTC)
AWB volunteer to clean up Category:CS1 maint: Unrecognized language?
Now that multiple languages are recognized in |language=
, do we have an AWB-savvy volunteer who can fix up articles in Category:CS1 maint: Unrecognized language?
There are many articles that have multiple valid languages that just need some cleanup, converting usages like "English & German" and "English / German" to comma-delimited format. – Jonesey95 (talk) 23:36, 19 April 2015 (UTC)
- I think the code in the module already handles the examples you give above - many of the articles in that maintenance category don't show the green text maintenance tag, and a WP:NULLEDIT clears the article from populating the category. And in the case of usages with English as one of multiple languages, I've found that using a comma-delimited list actually puts it back into another maintenance category.
- Consider the following edits of 3D pose estimation (reference #1 in each case) - an article originally with
|language=English / German
[5] doesn't show a green text tag. If you try to use comma,|language=English, German
[6] causes the reference to then receive a green maintenance tag and it goes into Category:CS1 maint: English language specified. Changing to|language=English & German
[7] clears the maintenance tag again. Stamptrader (talk) 00:17, 20 April 2015 (UTC)
- Interesting. I got the impression from the discussion above that only comma-separated values would be accepted. Two languages (or non-languages) separated by an ampersand or a slash seems to render without emitting an error message, however:
Wikitext | {{cite book
|
---|---|
Live | Book title (in foo & bar).{{cite book}} : CS1 maint: unrecognized language (link)
|
Sandbox | Book title (in foo & bar).{{cite book}} : CS1 maint: unrecognized language (link)
|
Wikitext | {{cite book
|
---|---|
Live | Book title (in foo / bar).{{cite book}} : CS1 maint: unrecognized language (link)
|
Sandbox | Book title (in foo / bar).{{cite book}} : CS1 maint: unrecognized language (link)
|
- Something is not quite right here.
- And an article in "Latvian and English" should not be placed in Category:CS1 maint: English language specified, in my opinion. A bilingual or mixed-language article should be able to be described as such, even if one of the languages is English. I don't feel strongly about it, though. – Jonesey95 (talk) 03:58, 20 April 2015 (UTC)
- The failure to categorize the two above examples is caused by a bug that I introduced when I moved static text out of Module:Citation/CS1 into Module:Citation/CS1/Configuration. Fixed in the sandbox.
- And an article in "Latvian and English" should not be placed in Category:CS1 maint: English language specified, in my opinion. A bilingual or mixed-language article should be able to be described as such, even if one of the languages is English. I don't feel strongly about it, though. – Jonesey95 (talk) 03:58, 20 April 2015 (UTC)
- Without some opinion either way I left the English language detector code alone. I think it's relatively simple to limit English language categorization to the single language case.
Over the past few days I ran an AWB script that changed |language=
parameters with multiple languages to the comma delimited form on about 1750 pages. I have come to believe that multiple language sources that include English as one of the languages should not add the category Category:CS1 maint: English language specified. I have tweaked the sandbox accordingly.
|language=
used to categorize into the same categories as those used by {{icon xx}}
templates (Category:Articles with xx-language external links). The {{icon xx}}
templates only categorize from article space. As I think about it, this constraint ought not apply to CS1/2. We have a defined set of name spaces that we don't categorize, I see no real reason to treat |language=
in a special manner. That being the case, I have adjusted the code so that the |language=
uses the same categorization rules as every other parameter.
Wikitext | {{cite book
|
---|---|
Live | Title (in English and French). |
Sandbox | Title (in English and French). |
Wikitext | {{cite book
|
---|---|
Live | Title. |
Sandbox | Title. |
—Trappist the monk (talk) 11:57, 24 April 2015 (UTC)
I'm going through this list and I'm not seeing the CS1 maintenance message on some of the pages. For example, Anton incident (last edited 2014) contains |language=English ([http://yle.fi/uutiset/kotimaa/2009/05/stubb_puolustaa_antonin_isaa_ja_konsulaatin_tyontekijaa_740524.html Finnish])
and is currently on the 1st page of Category:CS1 maint: Unrecognized language, yet I fail to see an unknown language error anywhere on the page. My common.css has the appropriate line of code to see maintenance messages, and I've null-edited the page. Is this a bug, a feature, or my fault? ~ Tom.Reding (talk ⋅contribs ⋅dgaf) 21:17, 21 April 2015 (UTC)
- The bug that I introduced fails to categorize unrecognized languages. That whole long string is considered to be one language name because there isn't a comma separator.
{{Cite web/new | title = Stubb Defends Father and Consulate in Custody Battle | url = http://www.yle.fi/uutiset/news/2009/05/stubb_defends_father_and_consulate_in_custody_battle_740836.html | publisher = [[YLE]] | date = 15 May 2008 | accessdate = 2009-05-16 | language = English ([http://yle.fi/uutiset/kotimaa/2009/05/stubb_puolustaa_antonin_isaa_ja_konsulaatin_tyontekijaa_740524.html Finnish])}}
- →"Stubb Defends Father and Consulate in Custody Battle" (in English (Finnish)). YLE. 15 May 2008. Retrieved 2009-05-16.
{{cite web}}
: External link in
(help)CS1 maint: unrecognized language (link)|language=
- The bug is fixed in the sandbox.
A discussion at Module_talk:Citation/CS1#Language_parameter has me wondering if we should adopt something similar to what is done at fr:WP. There, when |language=français
or |language=fr
, they simply don't display the language annotation. We could do the same thing here when |language=English
or |language=en
.
Should we?
—Trappist the monk (talk) 15:07, 1 May 2015 (UTC)
If we do this, it has been proposed at Module_talk:Citation/CS1#Language_parameter that the practice of deleting |language=en
and |language=English
be stopped. If we are to hide English language annotation and leave |language=
in the templates then use of Category:CS1 maint: English language specified should be discontinued and instead, we should create a new subcategory of Category:CS1 properties that is not a subcategory of Category:CS1 foreign language sources. Perhaps Category:CS1 English language sources. I don't know to what purpose we could put such a category because use of |language=English
will not be universal and it would be inappropriate for the module to assume that a source is English unless specified otherwise.
Without someone speaks up and tells me unequivocally not to, I think that I shall proceed.
—Trappist the monk (talk) 17:21, 6 May 2015 (UTC)
- Why is a category necessary? It should be a simple matter to test for either
|language=en
or|language=English
, and do nothing - no output, no category. --Redrose64 (talk) 22:33, 6 May 2015 (UTC)- Because it's there if someone thinks of a use for such incomplete information? Of course if that happens, it is easy enough to add the category later.
Ok, English is not displayed when used alone but is displayed when listed with other languages. The middle example to show that I didn't break single language rendering. No categories.
Wikitext | {{cite book
|
---|---|
Live | Title (in French and English). |
Sandbox | Title (in French and English). |
Wikitext | {{cite book
|
---|---|
Live | Title (in French). |
Sandbox | Title (in French). |
Wikitext | {{cite book
|
---|---|
Live | Title. |
Sandbox | Title. |
—Trappist the monk (talk) 00:10, 7 May 2015 (UTC)
- That last bit seems reasonable. If there's an odd case where you really need people to know it's in English (e.g. because there are two different-language editions with precisely the same, untranslated title), you can do
|Eng<nowiki />lish=
, right? — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 12:19, 13 June 2015 (UTC)
Problems with "cite episode" template?
I've been editing on Wikipedia for a while, but I'm new to attempting to clean-up CS1 errors that appear. Lately, dozens of "cite episode" templates appear to be generating a CS1 error because the editor included a "writers" parameter. Is this a parameter that used to appear in the template? Has it been eliminated? And can someone suggest an alternate method for including the information (which is critical in television and radio episodes), especially when other parameters are being used for the episode's director(s).JimVC3 (talk) 20:11, 30 April 2015 (UTC)
- I had this same question, so I looked in the history of the documentation for {{cite episode}}.
- It looks like the
|writers=
parameter was added to the template on 7 March 2006 and then marked as deprecated on 12 June 2006. It was officially deprecated but displayed in the template from that point until 25 May 2009, when it began to be silently ignored (and not displayed) with this major change to the template code. I found no discussion in the {{cite episode}} talk page archives about this|writers=
parameter. - On 18 April 2015, with the change of the template to use the CS1 Lua module, the parameter's presence started to generate an error message, as do all unsupported (and deprecated) parameters.
- The previous documentation recommended using
|credits=
for all credited people associated with the episode, so I would write something like|credits=Joe Smith (producer); Ellen Brown (director); Jane Doe (writer)
. – Jonesey95 (talk) 20:44, 30 April 2015 (UTC)- I suspected this is what happened. Thanks so much for your research and verifying the situation. Eliminating the parameter probably deserved more discussion. Anyway, your work-around looks like a very good alternative. Thanks again. JimVC3 (talk) 17:32, 1 May 2015 (UTC)
- Far better to have separate parameters for each role, for improved data granularity. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:59, 4 May 2015 (UTC)
- Yep. Also, it wasn't a process failure to remove an undiscussed parameter 3 months after someone slapped it in, back in 2006. And 9 years is plenty of time for someone to have objected (and for the deprecated parameter to have been cleaned up after). Sometimes the only way thing get fixed is when they start throwing errors. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 12:15, 13 June 2015 (UTC)
- Far better to have separate parameters for each role, for improved data granularity. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:59, 4 May 2015 (UTC)
- I suspected this is what happened. Thanks so much for your research and verifying the situation. Eliminating the parameter probably deserved more discussion. Anyway, your work-around looks like a very good alternative. Thanks again. JimVC3 (talk) 17:32, 1 May 2015 (UTC)
Cite episode - bogus error
The instance of {{Cite episode}} in Lisa Lynch is giving a "missing title" error, even though the title parameter has content. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:56, 4 May 2015 (UTC)
- Not bogus, but yeah, confusing. As
{{cite journal}}
uses|title=
to name an article, so{{cite episode}}
uses|title=
to name an episode. What is missing from that citation is|series=
.- "The C Word". <series name goes here>. 3 May 2015. BBC. Retrieved 3 May 2015.
{{cite episode}}
: Cite has empty unknown parameter:|transcripturl=
(help)
- "The C Word". <series name goes here>. 3 May 2015. BBC. Retrieved 3 May 2015.
- —Trappist the monk (talk) 12:27, 4 May 2015 (UTC)
- Confusing indeed. I modified the help documentation a couple of weeks ago after figuring out this quirk. – Jonesey95 (talk) 14:32, 4 May 2015 (UTC)
- Should have used {{Cite serial}} AManWithNoPlan (talk) 14:35, 4 May 2015 (UTC)
- Why, given that, it's not a serial? And why have you removed the date of first transmission from that reference? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:54, 4 May 2015 (UTC)
- Should have used {{Cite serial}} AManWithNoPlan (talk) 14:35, 4 May 2015 (UTC)
- Confusing indeed. I modified the help documentation a couple of weeks ago after figuring out this quirk. – Jonesey95 (talk) 14:32, 4 May 2015 (UTC)
- Saying there is no title, when there is a title, is bogus. The error should presumably say "Missing series name". However, there is no series name, as the programme was a one-off. I note that its documentation says "This Citation Style 1 template is used to create citations for television or radio programs and episodes." Why is the parameter required? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:05, 4 May 2015 (UTC)
@Trappist the monk and AManWithNoPlan:. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:31, 10 May 2015 (UTC)
- If it's a one-off, then the title should be in
|work=
, since it's a single work, not an episode (|title=
) is a series. I agree the error message needs fixing, as it's misleading. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 12:12, 13 June 2015 (UTC)
Citing newspaper insert
I think I've asked this one previously, but I cannot find the old discussion. I would like to cite a weekly insert (i.e. Time Out) that appears in a newspaper (i.e. The Ledger). Which parameter should I use for the insert? Unlike Parade, the insert is published by and only for the main newspaper it appears in. Thanks! - Location (talk) 16:37, 4 May 2015 (UTC)
- I think you want
|department=
. Documentation here. – Jonesey95 (talk) 20:04, 4 May 2015 (UTC)- That's what I would use, too. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 12:05, 13 June 2015 (UTC)
Link to ISBN
I noticed an inconsistency in display when ISBN is given via |isbn=
and when given in plain text. For example:
- A Whited, Lana (2004). The Ivory Tower and Harry Potter. University of Missouri Press. ISBN 978-0-8262-1549-9.
- A Whited, Lana (2004). The Ivory Tower and Harry Potter. University of Missouri Press. ISBN 978-0-8262-1549-9
The first one (use of |isbn=
) contains an extra link to ISBN. The second one is given in plain text. I think this link is unnecessary. Moreover, it's overlinking. -- Magioladitis (talk) 06:50, 6 May 2015 (UTC)
- All of the identifier parameters, PMC, doi, zbl, issn are linked to their Wikipedia articles. Why should ISBN render differently?
- —Trappist the monk (talk) 10:29, 6 May 2015 (UTC)
- ISBN 978-0-8262-1549-9 in plaintext is just autoformatted by the wiki (one of those legacys; RFC 1918 is another that is similar) to provide the link in question, whereas we override that functionality by deliberately inserting a link in the template, per Trappist. --Izno (talk) 15:58, 6 May 2015 (UTC)
Trappist the monk I mean we could just unlink all of PMC, doi, zbl, issn as common links and instead of having a wikilink followed by an (almost) external link just inherit the behaviour of ISBN 978-0-8262-1549-9 (plaintext, autoformatted by mediawki). I am just saying my opinion and underlying an inconsistency for viewers. -- Magioladitis (talk) 11:01, 21 May 2015 (UTC)
- I tend to agree it's overlinking. If it only did it with the first citation on the page that used it, maybe not, but it seems like "ISBN" (or whatever) may appear linked 100 times in the same long article. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 12:07, 13 June 2015 (UTC)
- I don't believe it is overlinking. The internal link serves a useful purpose (it answers the question of what the heck is a doi, isbn, pmid, etc.). Boghog (talk) 16:27, 20 June 2015 (UTC)
- I disagree that having a link to ISBN or the others in overlinking. I'm guessing there are plenty of people who have no idea what "zb", PMC", etc. mean. Even if you believe it to be in contradiction with WP:OVERLINK, it is irrelevant in that having such links does aid readers, and there always comes a time when guidelines are not actually helpful. If a guideline causes problems, it can be overlooked in certain specific situations. Dustin (talk) 16:38, 20 June 2015 (UTC)
- Linking to the article "ISBN" breaks the consistency of formatting of ISBN links between different methods of displaying and ISBN, and should never have been introduced. The ISBN special page provides sufficient information, directly or indirectly, about what an ISBN is. Readers reasonably expect that clicking on any part of ISBN 978-0-471-21495-3 to talk them to the special page. If we want to change the behaviour we should propose a change to the MediaWiki software. Otherwise we should maintain consistency. All the best: Rich Farmbrough, 19:19, 20 June 2015 (UTC).
Journal article titles
I've always assumed that the titles of both journal articles and book chapters should be in 'sentence case' (rather than in 'title case') but I cannot find any guidance on the wiki MOS pages. Have I missed it? If there is a recommended style, perhaps it would be useful to include guidelines in the cite journal documentation. Aa77zz (talk) 12:06, 18 May 2015 (UTC)
- Title case, I think. See: Wikipedia:Manual of Style#Titles of works.
- —Trappist the monk (talk) 12:12, 18 May 2015 (UTC)
- I disagree with the concept that CS1 follows the MOS. Only certain specific guidance has been adopted; the only guidance I know of adopted from MOS was date format, and that was a problem, because MOSNUM date guidance was being changed faster than the templates could be edited to keep up. As far as I know, there is no guidance whether to use sentence case or title case for journal article titles in citations. Jc3s5h (talk) 12:50, 18 May 2015 (UTC)
- Absent any declaration of specific style to the contrary, it is appropriate to fall back on MOS: for style guidance. Style for titles is not defined for cs1|2 templates because there is no provision to detect deviation from a defined style and so enforce adherence to that style. As an aside, I have been wondering of late, about detecting and categorizing templates that have titles and other information in all capital letters.
- —Trappist the monk (talk) 14:09, 18 May 2015 (UTC)
- I disagree with the whole concept that only style matters that can be checked by programming language in a template are defined for CS1. If CS1 is a citation style in its own right, then style matters can be prescribed in the documentation even though they are not enforceable with software. Likewise, style prescriptions can be made in the documentation that, for the time being, are incorrectly implemented in the software (February 29, 1700, Julian calendar). In such cases it is the software that is faulty, not the editor who filled out the template. Jc3s5h (talk) 19:08, 19 May 2015 (UTC)
- Of course, but cs1|2, if it is a style, does not have documentation that defines that style. You will recall that I have previously asked both you and the community if we aught not create a style guide for cs1|2. Those suggestions have been met with ambivalence. So that leaves the cs1|2 'style definition' in the code or, as in the case for dates, a mention that dates for the most part comply with WP:DATESNO. Template documentation describes what the tempate parameters mean and how the contents are rendered, but that is not a style guide.
- At present, cs1|2 has no defined title style except that, de facto, it accords with MOS:TITLE: chapter titles and article titles are quoted; book, journal, encyclopedia titles are italicized. cs1|2 does, to an extent, check certain components of style: dates, of course, but also Vancouver system author and editor names (when
|name-list-format=vanc
and in future with|vauthors=
). - The documentation for cs1|2 dates says "Module:Citation/CS1 cannot know if a date is Julian or Gregorian; assumes Gregorian" which is both correct and incorrect. In fact, dates before 1582 are Julian and dates from 1582 are Gregorian and the module knows this:
{{cite book |title=Title |date=29 February 1500}}
- →Title. 29 February 1500.
- I'll tweak that documentation.
- I did a quick search for Julian leap day dates in years 1700, 1800, and 1900 using these insource: search strings:
insource:/February *29 *, *1[7-9]00/
– 3 results, none of which were dates in references (all about Microsoft Excel)insource:/29 *February *1[7-9]00/
– 3 results, one is a free-form reference where the date 29 February 1900 is mentionedinsource:/1[7-9]00-02-29/
– this search produced nothing
- It would seem then that there is not much call for cs1|2 to support Julian leap days in the overlap period of 1582 – c. 1923. To do so would require some sort of mechanism to specifically identify those three dates as Julian dates; which can be done if there is ever a need.
- —Trappist the monk (talk) 22:22, 19 May 2015 (UTC)
- I disagree with the whole concept that only style matters that can be checked by programming language in a template are defined for CS1. If CS1 is a citation style in its own right, then style matters can be prescribed in the documentation even though they are not enforceable with software. Likewise, style prescriptions can be made in the documentation that, for the time being, are incorrectly implemented in the software (February 29, 1700, Julian calendar). In such cases it is the software that is faulty, not the editor who filled out the template. Jc3s5h (talk) 19:08, 19 May 2015 (UTC)
- I disagree with the concept that CS1 follows the MOS. Only certain specific guidance has been adopted; the only guidance I know of adopted from MOS was date format, and that was a problem, because MOSNUM date guidance was being changed faster than the templates could be edited to keep up. As far as I know, there is no guidance whether to use sentence case or title case for journal article titles in citations. Jc3s5h (talk) 12:50, 18 May 2015 (UTC)
- I usually tend to sentence case for journal entry/article titles since these seem to have uncommon capitalization (Or Use Capital Letters For Obvious Emphasis, something which is on the Do Not Do list at Wikipedia:Manual of Style/Capital letters#Do not use for emphasis; WP:BADEMPHASIS is also relevant).
Regardless, I would recommend asking this question at WT:MOS with a note to that discussion from WT:Citing sources or similar (or vice versa as desired), since I don't think this is a question particularly specific to CS1. --Izno (talk) 14:58, 18 May 2015 (UTC)
- Many thanks for your help. I've taken Izno's advice and asked the question at WT:MOS. Aa77zz (talk) 17:13, 18 May 2015 (UTC)
- I think everyone is missing the point here. MOS applies to text, not citations. MOS is irrelevant to this discussion. Journal article titles and journal names typically use title case, not sentence case. We should follow the case that is used in the original sources, not the MOS. Boghog (talk) 19:19, 19 May 2015 (UTC)
- In my experience, citations to journal article titles generally use sentence case, regardless of how the journal formatted the title. This is also how the titles are represented in some databases, for example MathSciNet. —David Eppstein (talk) 19:53, 19 May 2015 (UTC)
- I agee that MOS applies to text, not citations. WP:CITE applies; it allows the style to be determined on an article-by-article basis, but "citations within any given article should follow a consistent style." This consistency requirement agrees with every printed style guide and every university instructor I have ever encountered. So it would be wrong to change from sentence case to title case from one entry to the next, depending on how the title was printed in the source. Jc3s5h (talk) 19:56, 19 May 2015 (UTC)
- APA says use sentence case.I think that is stupid, but that is what they say. AManWithNoPlan (talk) 20:03, 19 May 2015 (UTC)
- I think everyone is missing the point here. MOS applies to text, not citations. MOS is irrelevant to this discussion. Journal article titles and journal names typically use title case, not sentence case. We should follow the case that is used in the original sources, not the MOS. Boghog (talk) 19:19, 19 May 2015 (UTC)
- Many thanks for your help. I've taken Izno's advice and asked the question at WT:MOS. Aa77zz (talk) 17:13, 18 May 2015 (UTC)
- As Aa77zz noted above at 17:13, 18 May 2015, a new thread was started at Wikipedia talk:Manual of Style#Formatting titles of journal articles and book chapters in references and is continuing there. Beginning at 19:08, 19 May 2015 we have had six further comments here, so we now have a split discussion, which goes against WP:MULTI. Please could Jc3s5h, Trappist the monk, Boghog, David Eppstein and AManWithNoPlan consider moving their later comments to the MOS thread? --Redrose64 (talk) 08:01, 20 May 2015 (UTC)
- This whole "ignore MOS for citations because ... no real reason" stuff is causing more problems than it solves. As far as I can tell the only "problem" it "solves" at all is "I like to do citations my way, so to Hell with the MOS." This seems to be worse than useless. It's leading to some really wretched stuff, like more and more articles littered with citations like: Cordell, Ann S. (1993). "CHRONOLOGICAL VARIABILITY IN CERAMIC PASTE: A COMPARISON OF DEPTFORD AND SAVANNAH PERIOD POTTERY IN THE ST. MARYS RIVER REGION OF NORTHEAST FLORIDA AND SOUTHEAST GEORGIA". Southeastern Archaeology. 12 (1): 33–58.. And worse - I at least used
{{cite journal}}
for that, when many do not, and thus do all kinds of other crap like leave the title unitalicized. I'm also seeing an increasing amount of "Chronological Variability ..." which is not much better than ALLCAPS. Something detrimental has happened, presumably on one of my wikibreaks, so I didn't notice it until after the fact. WP:CITEVAR went from a reasonable "don't change an existing, acceptable citation style in an article" idea, to being aggressively interpreted as meaning "every citation style you can imagine is acceptable, so no matter how awful it is for readers, it will be set in stone forever by whoever makes the first major edit". This really needs to be undone. I have no problem at all with people pasting in citations in weird formats – at least they're working on citing sources for content at all. But the backward notion that no one is ever permitted to clean them up any more is unacceptable.To move back toward the earlier gist of the thread: There's no defensible rationale for WP's own internal styles, e.g. CS1/2, to diverge from MOS, our own internal style guide, on anything. It's like supposing that some random class of citizens, e.g., dog catchers or plumbers, are exempt from their country's laws other than the ones they write themselves. I fully agree with Jc3s5h's point, "style matters can be prescribed in the documentation even though they are not enforceable with software". I simply add that there's no reason to deviate from MOS when it already prescribes a relevant style. NB: This also means WP doesn't care if APA says to use sentence case for titles. It's weird enough that WP does this for its own titles, for a technical reason that should have been fixed a long time ago, but we don't do that for titles in the encyclopedia content. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 10:54, 13 June 2015 (UTC)
- Update: See #Simple way to resolve MOS and citation discrepancies, below, for totally painless solution (other than to whether we should permit externally-derived cite styles that do smallcaps and such; I'm just giving up on that for now). — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 02:22, 18 June 2015 (UTC)
Foreign author name
If the author's name uses a non-Latin script, should it be romanized? Where should the original form and romanization go? --Djadjko (talk) 01:33, 22 May 2015 (UTC)
- It would be preferable to use the Latin-alphabet spellings plus the other language in parentheses brackets, perhaps as in "author=Plato (Greek: Πλάτων Plátōn)" but ideally, we wanted translation parameters to hold the translated author name, similar to trans_title for the title parameter.
• Example: {cite book |title=Demos |trans_title=People |author=Plato (Greek: Πλάτων Plátōn) |year=370 BCE}}
• Result: Plato (Greek: Πλάτων Plátōn) (370 BCE). Demos.{{cite book}}
: Check date values in:|year=
(help); Unknown parameter|trans_title=
ignored (|trans-title=
suggested) (help)CS1 maint: year (link)
The idea is to focus on the English-speaking readership. -Wikid77 (talk) 15:52, 23 May 2015 (UTC)- I've manage to do it the following way for Russian:
Книжка [Book] (in Russian). Moscow: Издательство. 2010. ISBN 000.{{cite book}}
: Check|isbn=
value: length (help); Unknown parameter|authors=
ignored (help)
({{Cite book|ref={{sfnref|Ivanov|2010}}|title=Книжка|trans-title=Book|language=ru|authors=И. И. Иванов [I. I. Ivanov]|date=2010|publisher=Издательство|place=Moscow|isbn=000}}). --Djadjko (talk) 01:35, 25 May 2015 (UTC)- Citation Style 1 is based on APA style with a dose of The Chicago Manual of Style thrown in along with our own innovations. So looking at the APA style for advice, they say to transliterate the names in the source to produce the final citation. CMOS says that for sources with titles in non-Latin alphabets to use the transliterated names/titles first and optionally follow them with the non-Latin versions second.
- Wikid77's example, using our existing template parameters would be:
- Note, there's really no reason to give the Greek translation of an author so well known in English.
- For Djadjko's example:
|script-title=ru:Книжка
will add the non-transliterated title, and where necessary, it handles right-to-left coding (Hebrew, Arabic, etc). Imzadi 1979 → 03:10, 25 May 2015 (UTC)
- I've manage to do it the following way for Russian:
|script-chapter= ?
We have |script-title=, but not |script-chapter=. Can we get it? Curly Turkey ¡gobble! 02:35, 29 May 2015 (UTC)
- Makes sense to me. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 01:48, 14 June 2015 (UTC)
Parameter order for cite conference
Hi. I'm using Template: Cite conference in the Gateway Protection Programme article. The template documentation states "If authors: Authors are first, followed by the included work, then "In" and the editors, then the main work", but the order it's displaying in is author name, editor name, title, main work (see footnote 17, for instance). Any ideas what I'm doing wrong? Cordless Larry (talk) 14:42, 30 May 2015 (UTC)
- Here's that reference, so you don't have to look for it in the article:
- van Selm, Joanne (6 February 2003). Gelsthorpe, Verity; Herlitz, Lauren (eds.). Lessons on resettlement from the US and Canada (PDF). Listening to the evidence: The future of UK resettlement, Victoria Park Plaza. London: Home Office. p. 35. ISBN 1-84473-122-7. Retrieved 16 October 2009.
- Cordless Larry (talk) 16:27, 30 May 2015 (UTC)
- Ah, it's because I didn't use the "book-title" parameter. Any ideas what I should do when the book title is the same as the conference title? Cordless Larry (talk) 16:32, 30 May 2015 (UTC)
Date error
I was surprised to get a date error when I copy and pasted a Date from a New York Times article
- Revkin, Andrew (OCTOBER 20, 2011). "Skeptic Talking Point Melts Away as an Inconvenient Physicist Confirms Warming". New York Times. Retrieved 1 Jun 2015.
{{cite news}}
: Check date values in:|date=
(help)
I believe the problem is that it doesn't like all caps for the month. Given the ubiquity of the New York Times (surely one of the most cited sources) I am surprised this issue hasn't arisen before, in fact, so surprised, I wonder if I am missing something.--S Philbrick(Talk) 16:49, 1 June 2015 (UTC)
- The issue is not with the templates but with the Wikipedia manual of style. All-caps is not one of the date styles listed as acceptable in MOS:DATEFORMAT. The citation templates check for that, and prevent you from using dates that are not in compliance with the MOS. The solution is to properly capitalize the date. —David Eppstein (talk) 17:33, 1 June 2015 (UTC)
- The help link in the date error leads directly to a list of common errors, including "improper capitalization".
- If you are patient, BattyBot's task 25 will fix this kind of error (along with dozens of other bot-fixable formats) during its periodic sweep of the date error category (roughly once a month). – Jonesey95 (talk) 01:48, 2 June 2015 (UTC)
Feature request: condense archive-date and access-date when they are identical
Where any citation has been both retrieved and archived on the same day (i.e. accessdate = archivedate), the footnote in the References section and the pop-up footnote display should be customized for that circumstance. Rather than the cumbersome:
… Archived from the original on June 2, 2015. Retrieved June 2, 2015.
a more succinct version should automatically be used; perhaps:
… Retrieved and archived on June 2, 2015.
which would become something like:
… Retrieved and archived from the original on June 2, 2015.
once |deadurl=yes
was true.
This would make the References section, on pages where all the external articles are archived and properly defined in the ‘Cite’ templates, much cleaner looking and easier for users to read. — Who R you? Talk 17:06, 2 June 2015 (UTC)
- Who R you?, I have retitled this section and removed the protected edit request template, because you have not specifically provided code changes for the code that generates {{cite web}} and other templates. This means that a specification would have to be developed here first.
- Thank you for starting this conversation about a feature request. Some thoughts:
- Interesting idea. It doesn't seem like it would be that hard to implement, though I am not a programmer.
- Right now, we have "Archived" before "Retrieved". You have "Retrieved" before "Archived". Is that change intentional? If so, is there a reason for it? – Jonesey95 (talk) 02:25, 3 June 2015 (UTC)
- Putting "Retrieved" before "Archived" would actually be useful for references using {{cite archives}} after a cite template, so that all the archives are grouped together at the end of the reference - Evad37 [talk] 02:34, 3 June 2015 (UTC)
- Works for me. I like it when our templates do smart things. I'm working on something very similar to this (for a non-citation context). If there are more than two things to test for and possibly combine, the complexity becomes multiplicatively, not additively, greater for each test you add, due to wikitemplate and parser function language being so crude. It would be much more efficient in Lua, but I'm building it for infoboxes that aren't in Lua (yet?) If I'm pinged, I'll point you to the code when I'm done with it; should be easy to adapt if you have a use for it (though I think these cite templates are also in Lua, so it won't help with this particular feature request). — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 10:20, 13 June 2015 (UTC)
- Putting "Retrieved" before "Archived" would actually be useful for references using {{cite archives}} after a cite template, so that all the archives are grouped together at the end of the reference - Evad37 [talk] 02:34, 3 June 2015 (UTC)
- @Jonesey95: Thanks for the rename. The sequence change was simply focusing on improving user experience; presumably the average reader is primarily concerned with how current the link is (or isn't); the wikipedian is typically more concerned with link rot, so it seems appropriate that archive information be provided second.
- In contemplation on your second question, I came up with an alternative: Instead of using "Archived" text at all, should archiving just be reduced to an icon in the citation line (incorporated into the {{ cite web }} template), such that:
- "CBC reports…". CBC News. Retrieved 2015-06-16.
{{cite web}}
:|archive-url=
is malformed: timestamp (help); Unknown parameter|deadurl=
ignored (|url-status=
suggested) (help) “|deadurl=no”
- "CBC reports…". CBC News. Retrieved 2015-06-16.
- and
- "CBC reports…". CBC News. Retrieved 2015-06-16.
{{cite web}}
:|archive-url=
is malformed: timestamp (help); Unknown parameter|deadurl=
ignored (|url-status=
suggested) (help) “|deadurl=yes”
- "CBC reports…". CBC News. Retrieved 2015-06-16.
- become
- "CBC reports…". CBC News. Retrieved 2015-06-16. “|deadurl=no”
- "CBC reports…". CBC News. Retrieved 2015-06-16. “|deadurl=yes”
- Only problem is that this version really needs more advanced programming to use a pop-up window (like footnotes within articles) to list links to multiple archives; otherwise it wouldn't look proper if something like “” appeared at the end of a reference where many pages were individually archived.
- Thoughts?
- Cheers — Who R you? Talk 02:42, 17 June 2015 (UTC)
Quote translation
How should we use quote
when it is displayed in a foreign language? Copy text in foreign language or translate it? SLBedit (talk) 13:02, 4 June 2015 (UTC)
- I would provide the foreign text with a translation in [brackets] following it if you want. – Jonesey95 (talk) 14:47, 4 June 2015 (UTC)
- That's what I did days ago. :) SLBedit (talk) 15:38, 4 June 2015 (UTC)
- Because the template inserts its own opening and closing quotation marks around the value provided in the parameter, the best approach is:
-
|quote=''{{lang|es|Mi casa es su casa.}}''" English: "My house is your house.
- (or whatever in place of "English:", like "Tr.:" or "Approximate translation:", yadda yadda. This is used to good effect at, e.g., Van cat, with some Armenia quotations. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 10:11, 13 June 2015 (UTC)
- PS: It's a pretty ugly kluge though, and we should probably have a real parameter for this. It's going to come up more and more as we (oh so) slowly narrow the WP:BIAS chasm. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 02:19, 18 June 2015 (UTC)
- Because the template inserts its own opening and closing quotation marks around the value provided in the parameter, the best approach is:
- That's what I did days ago. :) SLBedit (talk) 15:38, 4 June 2015 (UTC)
Citing a section of a newspaper
I would like to use this article from the Chicago Tribune. This far I have this...
- {{cite news |last=Clark |first=William |date=September 17, 1960 |title=Rome's Trade Center—How It Came to Be |url=http://archives.chicagotribune.com/1960/09/17/page/25/article/romes-trade-center-how-it-came-to-be |newspaper=Chicago Tribune |volume=CXIX |issue=224 |page=5 |location=Chicago |access-date=June 9, 2015}}
...which gives this...
- Clark, William (September 17, 1960). "Rome's Trade Center—How It Came to Be". Chicago Tribune. Vol. CXIX, no. 224. Chicago. p. 5. Retrieved June 9, 2015.
Unfortunately for me, there is a "page 5" for each of the five sections of the paper. I would like to cite page 5 in "Part 2" or "Sports/Finance", also abbreviated "SPTS—BUS" at the top of each page. I was going to use |at=
to note the section, however, Template:Cite news states that I cannot use |at=
AND |page=
together. Ideas? Thanks! - Location (talk) 04:17, 10 June 2015 (UTC)
- What's wrong with
|department=Sports/Finance
|page=5
? If you don't like that, you could use|at=part 2, p. 5
or|at=Sports/Finance, p. 5
. --Redrose64 (talk) 11:35, 10 June 2015 (UTC)- I've used the latter of Redrose64's two suggestions a number of times. As another suggestion, you can drop the volume and issue number; the date is the key item for finding an issue of a newspaper on microfilm or in bound volumes. Also, the location of "Chicago" is superfluous when the city name is contained within the newspaper name.
- Clark, William (September 17, 1960). "Rome's Trade Center—How It Came to Be". Chicago Tribune. part 2, p. 5. Retrieved June 9, 2015.
- should be sufficient to cite the article. Imzadi 1979 → 12:11, 10 June 2015 (UTC)
- I feel silly for not even trying to put the section and page in the same parameter. Thanks again! - Location (talk) 13:28, 10 June 2015 (UTC)
- Agreed either of those are acceptable solutions. So is
|page=5 (Sports/Finance)
. I'd keep the volume and issue. More information is better than less (as long as it's not directly redundant, as with "Chicago" in that case) and consistent formatting is a virtue. Omission of vol. & issue for one kind of periodical inspires omission of it for all. We can't depend on editors already having memorized citation "etiquette" and necessarily knowing it should always be included for academic journals. I think it should also always be included for magazines not likely to be found in digitized or microfiche form. Frequently, if I want to verify something from an old magazine, I have to find it on eBay, and I can't depend on sellers to use both dates and vol./no. in their listings. Taken to an extreme, the "don't include parameters not absolutely required to identify the source" would mean citing nothing but an ISBN, ISSN or OCLC number. >;-) — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 09:43, 13 June 2015 (UTC)
- I've used the latter of Redrose64's two suggestions a number of times. As another suggestion, you can drop the volume and issue number; the date is the key item for finding an issue of a newspaper on microfilm or in bound volumes. Also, the location of "Chicago" is superfluous when the city name is contained within the newspaper name.
Cite report – type
I am attempting to cite a report which contains the word "report" in its title. Is there any way of removing the word "(Report)" from {{cite report}}? Using the type parameter, I seem to be able to replace the word but not to remove it. Graham (talk) 22:20, 12 June 2015 (UTC)
{{cite report|title=Title of Big Report}}
→ Title of Big Report (Report).{{cite report|title=Title of Big Report|type=none}}
→ Title of Big Report.- —Trappist the monk (talk) 23:36, 12 June 2015 (UTC)
Proposed |Vol & |Vol. aliases for |volume, etc.
It would greatly speed up formatting of copy-pasted citation details, and reduce error rates, if |volume=
had two added aliases, |Vol=
and |Vol.=
, while |issue=
had corresponding |No=
and |No.=
aliases. A bot could swap them out for the canonical versions at its robotic leisure. I would really, really love to have back all the time I've had waste meticulously futzing with these parameters when there's no real need for it. Same goes for |ISBN=
and |ISSN=
aliases; no one should have to manually lower-case those. Ergonomic/efficiency/pain-in-the-ass problems like this are why many editors are resistant to using our citation templates. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 12:29, 13 June 2015 (UTC)
Vol / Vol. and No / No.
- All of our parameters except those that are initialisms (e.g. ISBN) start with lower-case letters, for consistency. See Module:Citation/CS1/Whitelist. So
|vol=
. I'm skeptical of|no=
because it is ambiguous. – Jonesey95 (talk) 12:55, 13 June 2015 (UTC)- I know that "all of our parameters except those that are initialisms (e.g. ISBN) start with lower-case letters"; I'm obviously objecting to lack of initial-upper-case alternatives in two particular cases. I'm not suggesting that these should be the real, main names of the parameters, or even necessarily advertised. They should just silently work so we can get on with building an encyclopedia instead of being mired in pointless template-formatting nit-picks that make people want to abandon the templates. "No" isn't ambiguous in this context, as a parameter name. There are probably 1000+ templates on WP that have parameter names that, in other contexts and treated as stand-alone words, could be taken to mean something else. It's not an issue. The lack of these aliases definitely is approaching a WP:IAR / WP:JUSTFIXIT problem in my view, but these templates are easily broken, so I'm taking the long way. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 01:40, 14 June 2015 (UTC)
- We have been actively deprecating and removing versions of citation template parameters that start with upper-case letters. All parameters, as far as I can tell by looking manually at the whitelist, are available in all-lower-case. This makes the citation templates consistent from one to the other and makes it very easy to remember the parameters' name styling.
- I know that "all of our parameters except those that are initialisms (e.g. ISBN) start with lower-case letters"; I'm obviously objecting to lack of initial-upper-case alternatives in two particular cases. I'm not suggesting that these should be the real, main names of the parameters, or even necessarily advertised. They should just silently work so we can get on with building an encyclopedia instead of being mired in pointless template-formatting nit-picks that make people want to abandon the templates. "No" isn't ambiguous in this context, as a parameter name. There are probably 1000+ templates on WP that have parameter names that, in other contexts and treated as stand-alone words, could be taken to mean something else. It's not an issue. The lack of these aliases definitely is approaching a WP:IAR / WP:JUSTFIXIT problem in my view, but these templates are easily broken, so I'm taking the long way. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 01:40, 14 June 2015 (UTC)
- I support
|vol=
. It is clear and unambiguous, and editors often use it, thinking that it is a valid parameter.
- I support
- I object to
|no=
because it is confusing. We already have|number=
as an alias for|issue=
.|no=
is confusing because it leads to the question "no what?" Also, many multi-word parameters already exist in this template, and the words used in these multi-word parameters, like "last" and "date" mean the same thing in each parameter. In the case of "no", we already have|no-pp=
and|no-tracking=
, so it is clear that in the context of citation template parameters, "no" means "no" (i.e. "negation"), not "number". Introducing another meaning for a word that is already used in parameter names is not good design. – Jonesey95 (talk) 03:36, 14 June 2015 (UTC)- It doesn't lead to that question if it's documented. Do you mean that
|Vol=12|No=7
won't be understood? I give our editors more intelligence-credit. It's something that can be replaced by bot. The point is making it faster and easier to input citations from pasted text so people actually use the templates more. It's not a parameter to advertise, just to silently work if it's used. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 17:43, 17 June 2015 (UTC)- As someone who spends considerable time fixing "unsupported parameter" and other types of citation errors, all of which are documented and produce red error messages, the argument that something will work fine because it is documented holds no water with me. Here are some example edits where I have fixed citations that were broken despite the documentation being clear: 1, 2, 3, 4, 5. I fix a dozen or two of these on a typical day. You are welcome to look through my contributions for thousands of examples of edits in which I fixed citation errors that could have been avoided by editors' following existing documentation.
- It doesn't lead to that question if it's documented. Do you mean that
- I object to
- You also appear to say that this parameter would be documented but that it would not be advertised. I don't understand the nuance there.
- I am open to other lines of reasoning. – Jonesey95 (talk) 04:48, 18 June 2015 (UTC)
ISBN / ISSN
- @SMcCandlish: You don't need to manually lowercase either
|ISBN=
or|ISSN=
. {{cite book |last=Marles |first=R.J. |title=Collectors Coins Great Britain 1995 |edition=22nd |year=1995 |publisher=Rotographic |location=Torquay |ISBN=0-948964-22-7 |ISSN=0262-9712 }}
→ Marles, R.J. (1995). Collectors Coins Great Britain 1995 (22nd ed.). Torquay: Rotographic. ISBN 0-948964-22-7. ISSN 0262-9712.- As shown here, you can use them uppercase, and no error is thrown; at some point, I expect that a bot will lowercase them. --Redrose64 (talk) 22:30, 13 June 2015 (UTC)
- Good. Not sure when that was introduced, but I like it. Is it also the case for the rest of them (DOI, OCLC, etc.)? — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 01:40, 14 June 2015 (UTC)
- Yes. Look at the Whitelist, linked above. All parameters marked as "true" work fine. – Jonesey95 (talk) 03:27, 14 June 2015 (UTC)
- Good. Not sure when that was introduced, but I like it. Is it also the case for the rest of them (DOI, OCLC, etc.)? — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 01:40, 14 June 2015 (UTC)
- @SMcCandlish: You don't need to manually lowercase either
Any interest in checking for "edition" in |edition=?
|edition=
automatically adds "ed.", but many citations contain text like |edition=2nd ed.
.
Is there any interest in having the citation module check for and flag redundant text of this sort? It could look for edition/ed/ed. and possibly other variants. I expect that a bot or a script would be able to clean up these errors readily.
Is there a potential for false positives? I can't think of any, but they crop up. – Jonesey95 (talk) 17:51, 15 June 2015 (UTC)
- I see a potential problem for the template as it is, because "ed." is automatically added. Sometimes it may be necessary to provide a more complete description of the edition, and the work or abbreviation for "edition" should appear in the middle of the description. Example:
- {{cite book| title = Astronomical Algorithms | first = Jean | last = Meeus | date = August 10, 2009 | orid-date = 1998 | edition = 2nd ed., corrected printing}}
- Meeus, Jean (August 10, 2009) [1998]. Astronomical Algorithms (2nd ed, corrected printing ed.).
- Maybe the solution is to have a parameter such as
|ed-no-abbr=
which will not append "ed." and it will be up to the Wikipedia editor to describe the edition in a suitable way. Jc3s5h (talk) 19:23, 15 June 2015 (UTC)- Maybe, but I've also recast things slightly so that the "ed." fits at the end because of this, and if we didn't add a parameter,
|edition=Corrected printing of 2nd
would resolve the issue. P.S., please don't use {{para}} or similar in the heading as it breaks the automatic link to the section in the edit summary. Imzadi 1979 → 04:08, 16 June 2015 (UTC)
- Maybe, but I've also recast things slightly so that the "ed." fits at the end because of this, and if we didn't add a parameter,
archive-url requires archive-date
archive-date is a pre-requisite for archive-url, but is not listed as such in the table. This should be fixed. Kendall-K1 (talk) 23:42, 15 June 2015 (UTC)
- Which page does this table appear on? I'll be happy to fix it. – Jonesey95 (talk) 01:04, 16 June 2015 (UTC)
- Template:Cite web, "Usage" section, "Full parameter set in vertical format" table. Sorry, I didn't realize that page's talk link came here, even though this is obviously where I ended up, and it says right at the top "This talk page is a centralized discussion for many other talk pages. When starting a new discussion, please note the exact page in question." Just not paying attention today. Kendall-K1 (talk) 10:37, 16 June 2015 (UTC)
- Fixed. – Jonesey95 (talk) 13:00, 16 June 2015 (UTC)
- Template:Cite web, "Usage" section, "Full parameter set in vertical format" table. Sorry, I didn't realize that page's talk link came here, even though this is obviously where I ended up, and it says right at the top "This talk page is a centralized discussion for many other talk pages. When starting a new discussion, please note the exact page in question." Just not paying attention today. Kendall-K1 (talk) 10:37, 16 June 2015 (UTC)
Italization of publications that are neither magazines nor newspapers or books
Websites are not italicized (see for example Facebook, Wikipedia or Amazon.com), yet if you insert the title of a website in the "website" parameter of {{Cite web}} or the "work" parameter of {{Cite news}}, it is automatically italicized. The same goes for radio stations and possibly other types of sources as well. Shouldn't this be fixed? Littlecarmen (talk) 09:14, 17 June 2015 (UTC)
- Radio and TV stations are publishers, so they should be in the
|publisher=
parameter. Some TV stations' websites may have their own names; the site for WLUC-TV is named Upper Michigan's Source, while the other local stations, lack names for their websites. Wikipedia, if being cited, should be italicized. It's an online encyclopedia, and encyclopedia titles are italicized. As for your other two examples. since those are both the names of the websites and their respective companies, you can put them in|publisher=
as well. Imzadi 1979 → 10:54, 17 June 2015 (UTC)- Thank you for the fast response! Littlecarmen (talk) 12:02, 17 June 2015 (UTC)
For context, the question relates to a Featured List candidate and whether the name of a website should be placed in the "publisher" parameter if it is not a newspaper or magazine so that it is not displayed in italics. Websites are not among the works that should be italicized per MOS:ITALICS. This would mean, for example, that "BBC News" in the "website" parameter would need to be moved to the "publisher" parameter so that it doesn't display in italics (although, in this case, the correct publisher would be "British Broadcasting Corporation"). My reasoning against the requested move is that there is no consensus on style to apply to all articles (WP:CITEVAR) and per WP:CITECONSENSUS, "If citation templates are used in an article, the parameters should be accurate. It is inappropriate to set parameters to false values in order that the template will be rendered to the reader as if it were written in some style other than the style normally produced by the template (e.g., MLA style)." A couple days ago, I spent a couple hours going through the article to make sure that all of the references used the appropriate CS1 template (News, Web, Journal), but I don't think adjusting the references to ensure that only major works (eg. newspapers & magazines) are italicized is necessary. Italicization of works in CS1 references has been discussed numerous times:
- Italicisation of websites in references
- Italicized work parameter
- Non-italicized news sources
- Help with template: website?
The article is internally consistent in that it uses the CS1 formatting style and that it what I believe is relevant to the FL review, not changing the way CS1 style templates display paramaters or adjusting which parameters are included so that a particular style is created. AHeneen (talk) 19:46, 17 June 2015 (UTC)
- Note: I've also started a discussion here to propose amending the MOS to except citation templates. AHeneen (talk) 21:39, 17 June 2015 (UTC)
- In the context of a reference citation, a website is the title of a published major work, so should be italicized. When you refer to a website more generally ("I like using Facebook", "I'm the webmaster of foobarbazzketball.com") you're referring to an entity of another kind, a service (or a piece of advertising or a digital business card). Also, keep in mind that many websites have formal titles, and we only use the hostname when they don't, since our only evidence is that the hostname is in fact the title (this can often be confirmed by other text on the site). If I publish a book, through a reputable publisher, Juggling Cats, and it has an online version/adjunct called JugglingCatsOnline (in camelcase), at jugglingcats.houghton-mifflin.com or whatever, the proper parameter for the site is
|work=JugglingCatsOnline
, and it should be italicized in the reference citation. I would also italicize it in running prose if it was referred to as a published work, but not if it was referred to as a service, server, business, etc. (but that's an MOS matter, and I don't even remember if we make that distinction. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 01:24, 18 June 2015 (UTC)
- In the context of a reference citation, a website is the title of a published major work, so should be italicized. When you refer to a website more generally ("I like using Facebook", "I'm the webmaster of foobarbazzketball.com") you're referring to an entity of another kind, a service (or a piece of advertising or a digital business card). Also, keep in mind that many websites have formal titles, and we only use the hostname when they don't, since our only evidence is that the hostname is in fact the title (this can often be confirmed by other text on the site). If I publish a book, through a reputable publisher, Juggling Cats, and it has an online version/adjunct called JugglingCatsOnline (in camelcase), at jugglingcats.houghton-mifflin.com or whatever, the proper parameter for the site is
Simple way to resolve MOS and citation discrepancies
When CS1/CS2 are used in their default "native" Wikipedia citation style mode (i.e., not being used to generate an externally-derived citation style like Vancouver), they should entirely comply with MOS (but that doesn't mean what it sounds like). If there is some way in which they do not, then either they need to change, or a variance needs to be accounted for in the fine print over at MOS:TEXT, and it will probably be the latter (though there have been some exceptions, I think).
What would be undesirable is addition of a rule exception for citation templates across the board at MOS:TEXT, because that would allow later divergence of CS1/CS2 in "native" mode from MOS for no reason (raising WP:LOCALCONSENSUS issues, people fighting about it). Our own internal citation styles should always be in agreement with our own internal style guide (even that mostly means MOS makes a variance for CS1/CS2). As long as we only add a rule in MOS:TEXT saying "does not apply to externally-derived citation styles like Vancouver, ..." or something to this effect (to keep people from stripping smallcaps or whatever), this should basically mean that MOS and the internal citation style are never out of synch for more than a brief time in which a simple discussion will resolve the newly arisen discrepancy. Easy-peasy. Certainly would resolve my MOS "vs." CS1/CS2 concerns in earlier threads.
In some cases this conflict is actually illusory anyway: As mentioned above (I think; I'm forgetting which page I posted on about it earlier), we do not italicize the names of websites. But they are being italicized in {{Cite web}}
. It's not because it's an error or because CS1 is recalcitrant, it's because a different rule is being applied secondarily. The website name is being added without italics because it's a website (a default rule for that medium, as with application software). Then italicization is being added after the fact by a rule (italicize titles of major works) that is general and applies regardless of medium. So, in the specific context of a reference citation where the site is the |work=
, then it would be italicized, because it's being contextualized as a major published work, not as an online service, business enterprise, or any other kind of "thing". Illusory or not, it's liable to be confusing without clarification, so we should account for it as a variance (because the usage in the cite templates is correct), rather than de-italicize in the template, and certainly rather than declaring MOS and CS1 to be in some kind of conflict. I would strongly suggest that this same kind of analysis be applied to any other apparent conflicts between the cite templates (in native mode) and MOS. We just fix them.
With externally-derived citation styles, I guess it's just a lost cause. We do need to allow for the fact that some externally-derived citation styles do things not conscionable under MOS normally. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 02:16, 18 June 2015 (UTC)
- I proposed the following at WT:MOSTEXT, following on a first draft by AHeneen:
A specific rewording, addressing several needs at once, might run like this:
Text formatting in citations should follow, consistently within an article, an established citation style or system. Options include either of Wikipedia's own template-based Citation Style 1 and Citation Style 2, and any other well-recognized citation system . The formatting applied by citation templates should not be evaded.[fn] Parameters should be accurate, and should not be omitted if the formatting applied by the template is not in agreement with the text formatting guidelines above. Those guidelines do not apply to any non-Wikipedia citation style, which should not be changed to conform to them....
fn. In unusual cases the default formatting may need to be adjusted to conform to some other guideline, e.g. italicization of a non-English term in a title that would otherwise not be italicized.
[What footnote system is used doesn't matter, of course, or it could be done not as a footnote at all. Any way you like.]
This provides more information and links, reinforces consistency within the article, distinguishes between WP and off-WP cite styles, permits necessary adjustments, and warns against alteration of non-MOS styles in externally-derived cite styles (important because some of them are quite jarring and frequently inspire "correction", especially to remove smallcaps).
I think that should cover it. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 03:52, 18 June 2015 (UTC)
Print ISSN and Online ISSN
Sometimes two issn numbers are given - Print ISSN and Online ISSN. Darekk2 (talk) 10:07, 19 June 2015 (UTC)
- Give the ISSN for the edition which you used as a source. --Redrose64 (talk) 11:28, 19 June 2015 (UTC)
Extra checking of URL
Hi, as suggested by Jonesey95 (talk · contribs) I raise this here from original on Module talk:Citation/CS1/Feature requests.
I think that there should be some additional checking on the |url=
field and setting up a tracking category so that they can be looked at and fixed appropriately.
For the |url=
check if there is text in the field other than the URL, easiest way to do this would be to check for mid-string white space. This would pick up things such as this.
Keith D (talk) 13:49, 19 June 2015 (UTC)
Extra checking of Title
Hi, as suggested by Jonesey95 (talk · contribs) I raise this here from original on Module talk:Citation/CS1/Feature requests.
I think that there should be some additional checking on the |title=
field and setting up a tracking category so that they can be looked at and fixed appropriately.
A converse of the previous section would be to check for a URL in the |title=
field as you should not get URLs in the title. This would pick up the inclusion of unnecessary details such as this.
Jonesey95 (talk · contribs) indicated that this had been discussed previously but that nothing had been done about it so I am raising it again.
Keith D (talk) 13:49, 19 June 2015 (UTC)
"reprint" editions
*{{cite book|last=His|first=Rudoulf|year=1928 (1967 reprint)|publisher=Oldenbourg|title=Geschichte des deutschen Strafrechts bis zur Karolina|asin=B0000BRMK3}}
versus
*{{cite book|last=His|first=Rudoulf|year=1928|publisher=Oldenbourg|title=Geschichte des deutschen Strafrechts bis zur Karolina|asin=B0000BRMK3}}
are reprint editions identical?96.52.0.249 (talk) 05:05, 21 June 2015 (UTC)
- @96.52.0.249: cite the edition you've actually consulted. If you used the reprint, then that's what heeds to be cited, which can be done as:
- His, Rudoulf (1967) [1928]. Geschichte des deutschen Strafrechts bis zur Karolina (Reprint ed.). Oldenbourg. ASIN B0000BRMK3.
- using:
- {{cite book|last=His|first=Rudoulf|orig-year=1928 |year=1967 |edition= Reprint |publisher=Oldenbourg|title=Geschichte des deutschen Strafrechts bis zur Karolina|asin=B0000BRMK3}}
- In this case, the publisher and place of publication should be for the reprint, not the original. I hope that helps. Imzadi 1979 → 05:26, 21 June 2015 (UTC)
- Awesome, well I made the section Talk:Impalement#"reprint" editions in regards to the citation.96.52.0.249 (talk) 08:20, 21 June 2015 (UTC)
Feature request: "total_pages"
Could this optional parameter be added, especially to the "cite book" template? Editors sometimes want to indicate the total number of pages in a reference work, since this allows readers to distinguish short pamphlets from weightier tomes. This is particularly the case when the template is used in "Further reading" sections of Wikipedia articles.
The ambiguous "pages" parameter sometimes gets filled in with total page counts instead of page number references, as intended. I initially made this error myself, and I see other editors doing this fairly often, when adding reference works without specific page references. The "total_pages" parameter would divert editors away from making this error, and would also be helpful to interested readers trying to evaluate the size of reference works.
While I don't know how to program templates myself, I hope that adding this feature would be straightforward to an experienced template editor. Reify-tech (talk) 16:39, 3 June 2015 (UTC)
- Mild support: I, too, am tired of total page counts showing up in
|pages=
, but I'm skeptical that this would curtail that problem, since people would have to read the documentation anyway to know about this new|total_pages=
parameter, and if they were doing that they'd already know not to use|pages=
for that purpose. So, I think the only real case for this is that being able to list the total pages might be useful. I think 99% of the time it's not. If we did implement it, I'd want to see it labeled as something to not use except in the circumstance you illustrate, or people will add it all over the place. Wikipedia:Is not a bibliographic database. The only helpful uses I can think of right off-hand are, like you say, identifying unusually large or unusually small sources. For the average 150–350 page book, it's useless trivia. Even for those two cases of usefulness, this information can simply be added manually after the citation template, though, so .... — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 09:53, 13 June 2015 (UTC) - Support: I'd kind of like this, too, if only so I could do something useful with page counts improperly given as
|pages=
. Another thing to do might be to rename pages to something less confusing, and add a tracking category for pages that still use it. Of course, it'd take forever to sort it all out if we tried to actually go through the category page-by-page, but at least it'd clue in those editors who happen to glance at the hidden categories when a specific page could use a look. —SamB (talk) 16:18, 20 June 2015 (UTC) - I don't think this should be added, as this is not the sort of information usually found in a reference, and goes beyond the function of identifying the source. It will encourage people to copy cruft from Google books and the like into citations. As for misuse of pages, perhaps we could flag as an error cases where the value of pages contains only digits. Kanguole 14:22, 1 July 2015 (UTC)
Format parameter
For whatever reason, the "format" parameter capitalizes its value, and in some cases it creates red links. I recently met two of them, e.g., RealMedia was converted into REALMEDIA and it was redlink. I created redirects for the ones I saw, but it there may be more. Also, potentially it may create disamigiation problem. Did anybody give this a thought? -M.Altenmann >t 04:48, 24 June 2015 (UTC)
- This bug is fixed in the sandbox version of the Citation Style 1 module. See this discussion. Example:
Wikitext | {{cite book
|
---|---|
Live | Author. Title (RealMedia). {{cite book}} : |author= has generic name (help)
|
Sandbox | Author. Title (RealMedia). {{cite book}} : |author= has generic name (help)
|
- The sandbox code has typically been migrated to the production module code every few months. It has been two months since the last update. – Jonesey95 (talk) 05:21, 24 June 2015 (UTC)
Propose trans-work parameter
The name of the cited work may not be in English. It may even be rendered in a non-roman alphabet. We have trans-title and script-title when the title of the article (for periodicals) is not in English. We could use corressponding trans-work and script-work parameters. See Japan Chernobyl Foundation for a recent example where this would be helpful. DES (talk) 12:03, 25 June 2015 (UTC)
Date span
Sometimes two dates are provided. For example "Nov. - Dec., 1969" here: http://www.jstor.org/stable/2459036?seq=1#page_scan_tab_contents Darekk2 (talk) 13:16, 26 June 2015 (UTC)
- @Darekk2: That's not a problem. Use
|date=November–December 1969
--Redrose64 (talk) 14:14, 26 June 2015 (UTC)- yes, maybe I used wrong "-" characterDarekk2 (talk) 14:40, 26 June 2015 (UTC)
accessdate and named references used multiple times
A specific named reference may be used many times in the text of an article. Some points in the article may be supported by the reference and others not. If a fact checker finds a named reference, with an accessdate, used multiple times, with some uses supported by the reference and others not, what then? What if someone starts an article like this:
The Sun is pretty big.<ref name="Miller"/> == References == {{reflist|refs= <ref name="Miller">{{cite journal |author=Miller |title=The sun's size |url=http://sunjournal.com/MillerSunArticle.html |journal=Sun Journal |year=2005 |accessdate=January 1, 2015}}</ref> }}
Which would display as
The Sun is pretty big.[1]
- ^ Miller (2005). "The sun's size". Sun Journal. Retrieved January 1, 2015.
After a few edits the article says:
The Sun is pretty big.<ref name="Miller"/> The Sun is mostly boron.<ref name="Miller"/> The Sun is also quite hot.<ref name="Miller"/> == References == {{reflist|refs= <ref name="Miller">{{cite journal |author=Miller |title=The sun's size |url=http://sunjournal.com/MillerSunArticle.html |journal=Sun Journal |year=2005 |accessdate=January 1, 2015}}</ref> }}
Which would display as
The Sun is pretty big.[1] The Sun is mostly boron.[1] The Sun is also quite hot.[1]
- ^ a b c Miller (2005). "The sun's size". Sun Journal. Retrieved January 1, 2015.
Then a fact checker comes along and notices that the Miller article doesn't say anything about the Sun's composition or temperature. The fact checker can insert a {{failed verification}} after the second and third <ref>s, but what about the accessdate? From this thought experiment it should be apparent that it is illogical for accessdates, which can be associated with named references used multiple times, to signify anything more than "The referenced article really existed at this URL on this date."—Anomalocaris (talk) 19:38, 2 July 2015 (UTC)
- That's why we have
|archive-url=
and the Internet Archive. Check to see if there is a version of the page from close to the access date. If that version verifies the text, insert the archive-url and archive-date. – Jonesey95 (talk) 21:42, 2 July 2015 (UTC)- That might apply in cases where the URL points to a page that changes over time, and the external article at different times supported various different points in the Wikipedia article. But I'm thinking about journal and newspaper articles (which typically do not change), where a Wikipedia editor used an existing named reference to support a something the reference doesn't support. —Anomalocaris (talk) 22:32, 2 July 2015 (UTC)
- Whether or not this is the right approach, if a source has a date associated with it, like a newspaper article, I do not enter access-date; rather, I reserve use of access-date to those sources which lack any date associated with their publication (most cite-web references). In this case, the access-date should apply to both existence and support. I was told at one time a few years back that if you review/update/check a citation, you should verify whether or not all uses of the reference are valid in the context of the article. --User:Ceyockey (talk to me) 23:11, 2 July 2015 (UTC)
cite book: author vs. first/last
Hi there,
regularly I edit in deWP. There, in deWP, it is prefered to use de:Vorlage:Literatur instead of de:Vorlage:Cite book. So I am firm with Vorlage:Literatur but not with Template:Cite book.
I'd like to transfer some Vorlage:Literatur-Refs to Vorlage:Cite book-Refs. Problem: Vorlage:Literatur just uses "autor" where the author is placed like "autor=Peter Pan" ... an on the other side I do not really get through the descriptions provided on Template:Cite book:
- Given example1: "To cite a book with a credited author" -> just "first" / "last"
- Given example2: "To cite a book with no credited author" -> just "author"
- In the "Full parameter set in vertical format" there is no parameter "author" described ...
?hmm?
- What is the difference between a "credited" and a "no credited" author?
- Does the parameter "author" really exist? Even if its not described within "Full parameter set in vertical format"?
- Why is there such a strict separation between the different authors (first1, first2, and so on)?
I am asking this (beside the fact that i'd like to understand it ;-), because I'm thinking about using JavaScript to do the transformation-work automatically.
thx for your help
AKor4711 (talk) 17:39, 6 July 2015 (UTC)
- Try
{{Literatur}}
. It maps the Vorlage:Literatur parameters to{{citation}}
parameters using{{citation/core}}
. No JavaScript required. There is a caveat:{{citation}}
is Citation Style 2 so citation elements are separated with commas rather than the periods used by{{cite book}}
and other Citation Style 1 templates.
- the "no credited author" example is probably inappropriate in
{{cite book}}
(it is appropriate for a newspaper where an author's name may not be provided) |author=
is a legitimate parameter that is an alias of|last=
; see Template:Cite_book#Authors- because the code isn't smart enough to separate given names from surnames for use in the citation's COinS metadata
- the "no credited author" example is probably inappropriate in
- Notice that in the no credited author example, the author parameter is set to an HTML comment, so it does not appear in the rendered citation. The author parameter is best used for corporate authors. The documentation page says "For corporate authors, simply use last to include the same format as the source." I disagree with that instruction; whoever wrote that was thinking too much like a template coder and too little like an editor. Jc3s5h (talk) 20:50, 6 July 2015 (UTC)
Thanks a lot for your help ... the {{Literatur}}
shocks me: A german template within enWP? Wow ^^ ... anyway: that template does exactly what I wanted to do via JavaScript -> saves some work ... :-))) --AKor4711 (talk) 01:46, 8 July 2015 (UTC)
Hyphen conversion in cite book
At Template:Cite book#In-source locations, it states, "Hyphens are automatically converted to en dashes;...". This apparently is not working. See here and search for "15-52" Bgwhite (talk) 19:02, 10 July 2015 (UTC)
- @Bgwhite: is misreading the documentation;
|page=
is not|pages=
. Hyphens are converted in the later. See further debate at User talk:Bgwhite#hypenated pages. Glrx (talk) 19:15, 10 July 2015 (UTC)
Update to the live CS1 module weekend of 25–26 July 2015
On the weekend of 25–26 July I propose to update the live CS1 module files from the sandbox counterparts:
Changes to Module:Citation/CS1 are:
- in
{{cite arxiv}}
, concatenate|version=
onto|arxiv=
or|eprint=
; emit deprecated parameter error when|version
is used in{{cite arxiv}}
; discussion - bug fix in
style_format()
; discussion - bug fix in language_parameter(); discussion
- remove
Editors#
fromEditorList-Last
-|editorsn=
not an alias of|editor-last=
; discussion - bug fix in
list_people()
; discussion - add extra text maint category; discussion
- improve handling of
|authors=
containing "et al." or combined with|display-authors=etal
discussion - enhanced internal category handling;
- add support for
|vauthors=
and|veditors=
; discussion - Add ismn support; discussion
Changes to Module:Citation/CS1/Configuration are:
- add extra text maint category;
- remove
Editors#
fromEditorList-Last
-|editorsn=
not an alias of|editor-last=
; - add support for
|vauthors=
and|veditors=
; - Add ismn support;
Changes to Module:Citation/CS1/Whitelist are:
- add support for
|vauthors=
and|veditors=
; - Add ismn support;
It has been a while since I worked on any of this. Have I missed something that should be in these lists?
—Trappist the monk (talk) 16:11, 20 July 2015 (UTC)
- No support for
|collaboration=
(see discussion)? That is disappointing. I've been waiting for it for a while now.Headbomb {talk / contribs / physics / books} 18:30, 20 July 2015 (UTC)
- This group of changes, with the exception of ISMN support, were made before I went on wikibreak in May. Raise this topic again after I do the update. We can think about it then.
Unpublished/SPS/UGC sources and Template:Cite arXiv
Please see Wikipedia talk:Identifying reliable sources#Unpublished/SPS/UGC sources and Template:Cite arXiv. Of particular relevance to CS1 is the template's overlap with |arXiv=
, and prior deprecation of all identifier-based citation templates. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 21:23, 24 July 2015 (UTC)
|vauthors= bug
A bug exists in the |vauthors=
code. The bug also exists in {{vcite2 journal}}
. If the assigned value is |vauthors=Alberts AW, Majerus PW and Vagelos PR
then the 'and' is not detected.
- vcite2 journal:
- Alberts AW, Majerus PW and Vagelos PR (1969). "Acetyl-CoA acyl carrier protein transacylase". Methods Enzymol. Methods in Enzymology. 14: 50–53. doi:10.1016/S0076-6879(69)14009-4. ISBN 978-0-12-181871-5.
{{cite journal}}
: Vancouver style error: missing comma in name 2 (help)
- Alberts AW, Majerus PW and Vagelos PR (1969). "Acetyl-CoA acyl carrier protein transacylase". Methods Enzymol. Methods in Enzymology. 14: 50–53. doi:10.1016/S0076-6879(69)14009-4. ISBN 978-0-12-181871-5.
- cite journal:
- Alberts AW, Majerus PW and Vagelos PR (1969). "Acetyl-CoA acyl carrier protein transacylase". Methods Enzymol. Methods in Enzymology. 14: 50–53. doi:10.1016/S0076-6879(69)14009-4. ISBN 978-0-12-181871-5.
{{cite journal}}
: Vancouver style error: missing comma in name 2 (help)
- Alberts AW, Majerus PW and Vagelos PR (1969). "Acetyl-CoA acyl carrier protein transacylase". Methods Enzymol. Methods in Enzymology. 14: 50–53. doi:10.1016/S0076-6879(69)14009-4. ISBN 978-0-12-181871-5.
Here is the COinS for the second and third authors as a single author:
&rft.au=Majerus+PW+and+Vagelos%2C+PR
—Trappist the monk (talk) 14:15, 25 July 2015 (UTC)
parse_vauthors_veditors()
splits the value in |vauthors=
at each comma. Each component of the split should be one or more 'last' names and one or two uppercase initials: Last FM
When a comma is missing, then (in the example above) the last-name string is: Majerus PW and Vagelos. We can look at that string of characters and see if there is a pattern: mixed case letters then spaces then uppercase letters then spaces then mixed case. If we find such a pattern then can we not surmise that a comma is missing? I've tweaked Module:Citation/CS1/sandbox:
- Alberts AW, Majerus PW and Vagelos PR (1969). "Acetyl-CoA acyl carrier protein transacylase". Methods Enzymol. Methods in Enzymology. 14: 50–53. doi:10.1016/S0076-6879(69)14009-4. ISBN 978-0-12-181871-5.
{{cite journal}}
: Vancouver style error: missing comma in name 2 (help)
- Alberts AW, Majerus PW and Vagelos PR (1969). "Acetyl-CoA acyl carrier protein transacylase". Methods Enzymol. Methods in Enzymology. 14: 50–53. doi:10.1016/S0076-6879(69)14009-4. ISBN 978-0-12-181871-5.
This tweak seems to work. If Majerus PW and Vagelos PR is really a corporate name, then wrapping it in the doubled parentheses (|vauthors=Alberts AW, ((Majerus PW and Vagelos PR))
syntax skips the error check.
—Trappist the monk (talk) 15:34, 25 July 2015 (UTC)
"Revised" in edition parameter is triggering maintenance
This is confusing for editors: The cite templates have "Revised" as example for good edition information in their documentation, however that parameter triggers "CS1 maint: Extra text" (examples: 1638 in literature and [8]). I have added a short note to Category:CS1 maint: Extra text for now. But not really sure, what's the correct solution to improve this: Change the template documentation or change the trigger behaviour? Either way, it would be helpful to add a new section to Help:CS1 errors about the cause and possible solutions for this maintenance case in general. GermanJoe (talk) 17:22, 28 July 2015 (UTC)\
- This is a bug that is fixed in the sandbox (see §extra text in |edition= detection bug). For those citations with false detection it is probably best to do nothing with the false positives in the category; they will go away when the module is next updated.
- I've been wondering about this whole test anyway and will have more to say about it later.
- —Trappist the monk (talk) 19:24, 28 July 2015 (UTC)
- Thank you for the info. I have removed the category note for now (as the error will be fixed, it's kind of pointless). GermanJoe (talk) 20:14, 28 July 2015 (UTC)
- —Trappist the monk (talk) 19:24, 28 July 2015 (UTC)
- I'm also seeing similarly unnecessary maintenance categorization for citations with parameters like
|journal=Journal of Combinatorial Theory
|series=Series A
. FWIW, many journals and journal cites have separate series parameters (although maybe in this particular case you could argue that "Series A" is really part of the journal name), and omitting the "Series" text from the parameter causes them to be formatted in a very cryptic way that most readers are unlikely to understand, so I think spelling it out is preferable and should not be tagged as an error. —David Eppstein (talk) 18:13, 28 July 2015 (UTC)
- I don't understand this. I took this citation from Graph theory:
{{Citation|author=Robertson, N.; Sanders, D.; Seymour, P. and Thomas, R.|title=The four color theorem|journal=Journal of Combinatorial Theory Series B|volume=70|year=1997|pages=2–44|doi=10.1006/jctb.1997.1750|postscript=.}}
- Robertson, N.; Sanders, D.; Seymour, P. and Thomas, R. (1997), "The four color theorem", Journal of Combinatorial Theory Series B, 70: 2–44, doi:10.1006/jctb.1997.1750.
{{citation}}
: CS1 maint: multiple names: authors list (link)
- Robertson, N.; Sanders, D.; Seymour, P. and Thomas, R. (1997), "The four color theorem", Journal of Combinatorial Theory Series B, 70: 2–44, doi:10.1006/jctb.1997.1750.
- Adding
|series=
:{{Citation|author=Robertson, N.; Sanders, D.; Seymour, P. and Thomas, R.|title=The four color theorem|journal=Journal of Combinatorial Theory |series=Series B|volume=70|year=1997|pages=2–44|doi=10.1006/jctb.1997.1750|postscript=.}}
- Robertson, N.; Sanders, D.; Seymour, P. and Thomas, R. (1997), "The four color theorem", Journal of Combinatorial Theory, Series B, 70: 2–44, doi:10.1006/jctb.1997.1750.
{{citation}}
: CS1 maint: multiple names: authors list (link)
- Robertson, N.; Sanders, D.; Seymour, P. and Thomas, R. (1997), "The four color theorem", Journal of Combinatorial Theory, Series B, 70: 2–44, doi:10.1006/jctb.1997.1750.
- Changing to
{{cite journal}}
:{{cite journal|author=Robertson, N.; Sanders, D.; Seymour, P. and Thomas, R.|title=The four color theorem|journal=Journal of Combinatorial Theory |series=Series B|volume=70|year=1997|pages=2–44|doi=10.1006/jctb.1997.1750|postscript=.}}
- Robertson, N.; Sanders, D.; Seymour, P. and Thomas, R. (1997). "The four color theorem". Journal of Combinatorial Theory. Series B. 70: 2–44. doi:10.1006/jctb.1997.1750.
{{cite journal}}
: CS1 maint: multiple names: authors list (link) CS1 maint: postscript (link)
- Robertson, N.; Sanders, D.; Seymour, P. and Thomas, R. (1997). "The four color theorem". Journal of Combinatorial Theory. Series B. 70: 2–44. doi:10.1006/jctb.1997.1750.
- I'm not seeing any maintenance categorization in any of these. What am I not understanding about what it is that you wrote?
- I don't understand this. I took this citation from Graph theory:
- —Trappist the monk (talk) 19:24, 28 July 2015 (UTC)
- If series isn't generating this maintenance categorization, then there is no problem; sorry for the false alarm. I was seeing this maintenance category on an article that I couldn't find a different explanation for, and thought it was this parameter, but didn't do the experimentation needed to nail it down exactly, and now I don't remember which article it was. It must have been one of the other parameters causing the issue, quite likely legitimately. —David Eppstein (talk) 20:47, 28 July 2015 (UTC)
- —Trappist the monk (talk) 19:24, 28 July 2015 (UTC)
Chapter ignored message
Where is the problem with chapter=ignored message, like in Apricot oil ? Following are the parameters given (striped away one { and } to freeze template from interpreting):
{cite web |url=http://www.botanical.com/botanical/mgmh/a/apric050.html |title=A Modern Herbal |chapter=Apricot |publisher=Botanical.com |author=Mrs. M. Grieve |accessdate=2008-08-20 |archiveurl= https://web.archive.org/web/20080809232203/http://www.botanical.com/botanical/mgmh/a/apric050.html |archivedate= 9 August 2008 |deadurl= no}
What is wrong ? I see here that there are more than 4700 ... --Robertiki (talk) 04:57, 30 June 2015 (UTC)
- Try using:
- Mrs. M. Grieve. "Apricot". A Modern Herbal. Botanical.com. Archived from the original on 9 August 2008. Retrieved 2008-08-20.
{{cite web}}
: Unknown parameter|deadurl=
ignored (|url-status=
suggested) (help) - I don't think
|chapter=
is valid for {{cite web}}. What is the|chapter=
in your citation is the|title=
of an individual web page, and what is the|title=
is the name of a|work=
hosted on that web site. Imzadi 1979 → 05:06, 30 June 2015 (UTC)- Or, alternatively, since this is a book hosted online, use {{cite book |...}}. Peter coxhead (talk) 05:54, 30 June 2015 (UTC)
- I am non interested about the article Apricot oil, I could also have made the Aval example or any other of the 4,700 articles that unexpectedly now signal this error. The problem is that in the example I don't see any chapter parameter, so what ? --Robertiki (talk) 02:36, 1 July 2015 (UTC)
- Sorry, now I see it. --Robertiki (talk) 02:37, 1 July 2015 (UTC)
- I am non interested about the article Apricot oil, I could also have made the Aval example or any other of the 4,700 articles that unexpectedly now signal this error. The problem is that in the example I don't see any chapter parameter, so what ? --Robertiki (talk) 02:36, 1 July 2015 (UTC)
- Or, alternatively, since this is a book hosted online, use {{cite book |...}}. Peter coxhead (talk) 05:54, 30 June 2015 (UTC)
- Let us change example, in article Aval:
{Cite journal | last =Badr | first = Gamal Moursi | contribution =Islamic Law: Its Relation to Other Legal Systems | journal= American Journal of Comparative Law | volume=26 | issue=2 | title = Proceedings of an International Conference on Comparative Law, Salt Lake City, UT, February 24–25, 1977] | date=Spring 1978 | pages=187–98 | doi = 10.2307/839667 | ref=harv | jstor= 839667}
Where is the "chapter" parameter ? Sorry for the false start. Maybe I don't understand how it works. --Robertiki (talk) 02:40, 1 July 2015 (UTC)
- What's wrong here is the reference itself. Either this is a journal article, in which case the required parameters are
|title=
and|journal=
, or it's a book in which the proceedings of a conference were published, in which case the required parameters are|chapter=
and|title=
. If the proceedings of the conference were published as a journal volume, then it should be treated as a set of journal articles. Peter coxhead (talk) 06:49, 1 July 2015 (UTC)- What's wrong is that we have no parameter to indicate that this issue of the journal is a special issue with its own title. The closest one can get is to pretend that, instead of a journal, it's a book series (and then italicize it manually):
- {{Cite book | last =Badr | first = Gamal Moursi | contribution =Islamic Law: Its Relation to Other Legal Systems | series= ''[[American Journal of Comparative Law]]'' | volume=26 | issue=2 | title = Proceedings of an International Conference on Comparative Law, Salt Lake City, [[Utah|UT]], February 24–25, 1977 | date=Spring 1978 | pages=187–98 | doi = 10.2307/839667 | ref=harv | jstor= 839667}}
- Badr, Gamal Moursi (Spring 1978). "Islamic Law: Its Relation to Other Legal Systems". Proceedings of an International Conference on Comparative Law, Salt Lake City, UT, February 24–25, 1977. American Journal of Comparative Law. Vol. 26. pp. 187–98. doi:10.2307/839667. JSTOR 839667.
{{cite book}}
: Invalid|ref=harv
(help)
- —David Eppstein (talk) 07:34, 1 July 2015 (UTC)
- What's wrong is that we have no parameter to indicate that this issue of the journal is a special issue with its own title. The closest one can get is to pretend that, instead of a journal, it's a book series (and then italicize it manually):
|contribution=
is an alias of|chapter=
.{{cite journal}}
does not support|chapter=
and so does not support|contribution=
. The thing that throws the spanner in the works is the conference information. If you rewrite the citation as{{cite conference}}
you get this:{{Cite conference | last =Badr | first = Gamal Moursi | title=Islamic Law: Its Relation to Other Legal Systems | journal= [[American Journal of Comparative Law]] | volume=26 | issue=2 | conference= Proceedings of an International Conference on Comparative Law, Salt Lake City, [[Utah|UT]], February 24–25, 1977 | date=Spring 1978 | pages=187–98 | doi = 10.2307/839667 | ref=harv | jstor= 839667}}
- Badr, Gamal Moursi (Spring 1978). Islamic Law: Its Relation to Other Legal Systems. Proceedings of an International Conference on Comparative Law, Salt Lake City, UT, February 24–25, 1977. American Journal of Comparative Law. Vol. 26, no. 2. pp. 187–98. doi:10.2307/839667. JSTOR 839667.
{{cite conference}}
: Invalid|ref=harv
(help)
- The code supporting
{{cite conference}}
should probably be tweaked so that the article title is rendered quoted and not italicized when|journal=
(or an alias) is part of the template.
- —Trappist the monk (talk) 11:14, 1 July 2015 (UTC)
- With the fix to quote the article title, I guess this is ok, but the question remains: why do editors want to include the conference information in this case? The purpose of a citation is not to tell you all about the source (if it was, why not include the number of pages in a book, the number of illustrations, and so on?), but to give sufficient information to locate the source. The title of the published entity (here the journal) is sufficient. {{Cite conference}} should be used when the proceedings are published as an independent entity, i.e. a book. Peter coxhead (talk) 14:05, 1 July 2015 (UTC)
- In the case of some leading computer science cconferences (some of which are indeed published in journals in this way) the journal part of the citation tells you where to find the publication but the conference part tells you something about how important the paper was regarded at the time of publication, since the good conferences are typically much more selective than the journals. So both pieces are important parts of the citation. —David Eppstein (talk) 15:30, 1 July 2015 (UTC)
- Agreed. I also agree that display should be corrected to italicize the right title depending on the parameters in use. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:36, 30 July 2015 (UTC)
- In the case of some leading computer science cconferences (some of which are indeed published in journals in this way) the journal part of the citation tells you where to find the publication but the conference part tells you something about how important the paper was regarded at the time of publication, since the good conferences are typically much more selective than the journals. So both pieces are important parts of the citation. —David Eppstein (talk) 15:30, 1 July 2015 (UTC)
- With the fix to quote the article title, I guess this is ok, but the question remains: why do editors want to include the conference information in this case? The purpose of a citation is not to tell you all about the source (if it was, why not include the number of pages in a book, the number of illustrations, and so on?), but to give sufficient information to locate the source. The title of the published entity (here the journal) is sufficient. {{Cite conference}} should be used when the proceedings are published as an independent entity, i.e. a book. Peter coxhead (talk) 14:05, 1 July 2015 (UTC)
accessdate when url changes
When a Wikipedia editor discovers that a URL has changed, I think it is good for the editor to update the url parameter. If there is an existing accessdate parameter, and the editor does not wish to take the time to verify that the reference supports the article text, that leaves a dilemma. Leaving accessdate unchanged falsely implies to most users that the displayed URL worked on that date. Removing the accessdate parameter removes the fact that some other editor claimed to have verified that the linked page supported the article text on that date. —Anomalocaris (talk) 17:52, 1 July 2015 (UTC)
- What use is the new URL if it does not support the text that it claims it support. When changing a URL it should obviously be checked to verify that it still supports the text that it is attached to. Keith D (talk) 21:37, 2 July 2015 (UTC)
- It may be obvious to you, but it is not obvious to me. Several newspaper websites, including The Jerusalem Post, Haaretz, and The Guardian have recently changed their URLs of existing articles. In some cases old URLs automatically redirect to new URLs; in other cases the old URL redirects to the home page, but the new URL can often be located by using the website's search feature and searching for the original article title. There is no doubt that it is the same article, because it has the same author, title, date, and publication. I should not have to re-verify that the article still supports the text, especially if the article is quite long and the subject abstruse. But I should update the link, as the new URL is more likely to be supported in the future. For example, when The Jerusalem Post changed from URLs of the form fr.jpost.com with numeric article names to URLs of the form www.jpost.com with friendly names, for awhile, the old URLs redirected to the new ones, but they don't any more. I believe that editors who update URLs are helping Wikipedia, and I don't believe they should be required to reread each external article so affected to assure that it still supports the text. Furthermore, there is the point in the next thread that a given reference may be cited many times in one article. Is the editor required to verify that each point used for a given reference is supported by the reference? And what if some are and some are not?—Anomalocaris (talk) 22:21, 2 July 2015 (UTC)
- There's no problem updating the accessdate along with the URL. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 01:56, 31 July 2015 (UTC)
- It may be obvious to you, but it is not obvious to me. Several newspaper websites, including The Jerusalem Post, Haaretz, and The Guardian have recently changed their URLs of existing articles. In some cases old URLs automatically redirect to new URLs; in other cases the old URL redirects to the home page, but the new URL can often be located by using the website's search feature and searching for the original article title. There is no doubt that it is the same article, because it has the same author, title, date, and publication. I should not have to re-verify that the article still supports the text, especially if the article is quite long and the subject abstruse. But I should update the link, as the new URL is more likely to be supported in the future. For example, when The Jerusalem Post changed from URLs of the form fr.jpost.com with numeric article names to URLs of the form www.jpost.com with friendly names, for awhile, the old URLs redirected to the new ones, but they don't any more. I believe that editors who update URLs are helping Wikipedia, and I don't believe they should be required to reread each external article so affected to assure that it still supports the text. Furthermore, there is the point in the next thread that a given reference may be cited many times in one article. Is the editor required to verify that each point used for a given reference is supported by the reference? And what if some are and some are not?—Anomalocaris (talk) 22:21, 2 July 2015 (UTC)
Add column and day of week parameters?
Hello. Over at Template talk:Cite newspaper The Times I've been asking why that template can't redirect to {{cite news}}. The key reasons seem to be the lack of a column parameter, as well as a 'day of week' parameter, in this template. Reasons for why these parameters are useful are given there. Would it be possible to add those parameters to cite news, or are there good reasons for not doing so? Thanks. Mike Peel (talk) 08:18, 7 July 2015 (UTC)
- Should be supported in the general template, since the rationales for them pertain to any newspaper with columns and/or with multiple daily editions. The templates should be merged. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:22, 30 July 2015 (UTC)
Allow "Quarter" dates in Date parameter?
To my recollection, reference templates such as {{cite journal}} used to allow entries such as "First Quarter 2005" in the 'date' parameter up until several months back. Now I realize that "Winter 2005"- and "January–March 2005"-type entries are still allowed, but I was wondering if "First Quarter"-type entries in the 'date' parameter were ever likely to be allowed again? There are definitely journals that publish by "First Quarter" dates rather than "Winter" or "January–March" dates, so it would be desirable if "Quarterly" dates would be allowed in these reference templates' 'date' parameters again. --IJBall (contribs • talk) 21:12, 9 July 2015 (UTC)
- This topic has been discussed before. cs1|2 take date format guidance from MOS:DATEFORMAT which is mute on quarterly dates (there is a brief mention at WP:SEASON but that date style is not listed in the Acceptable date formats table).
- —Trappist the monk (talk) 21:48, 9 July 2015 (UTC)
- In that previous discussion, I commented that this should be allowed. The MOS might be silent on this, but we cannot while still providing the facilities to faithfully render the publication information for sources in CS1/CS2. We already override the MOS to capitalize season names when used in citation dates, and I agree with that as it promotes consistency between "January 2005" and "Winter 2005". Since my comments last October, I think that the word "quarter" should also be capitalized in citations for the same consistency reasons. I would also whitelist "Q1 2005" as a standard abbreviation analogous to the abbreviations for month names. This abbreviation convention is already quite common in corporate financial documents, among other places. Imzadi 1979 → 22:30, 9 July 2015 (UTC)
- Yes, "Quarter"-type publication dates are definitely common in some of the official documents I run across from organizations and businesses when looking for references. I absolutely agree that the by "Quarter" dates should probably be included in the 'date' parameters again, esp. as the MOS is actually silent on "disallowing" their use. --IJBall (contribs • talk) 22:40, 9 July 2015 (UTC)
- In that previous discussion, I commented that this should be allowed. The MOS might be silent on this, but we cannot while still providing the facilities to faithfully render the publication information for sources in CS1/CS2. We already override the MOS to capitalize season names when used in citation dates, and I agree with that as it promotes consistency between "January 2005" and "Winter 2005". Since my comments last October, I think that the word "quarter" should also be capitalized in citations for the same consistency reasons. I would also whitelist "Q1 2005" as a standard abbreviation analogous to the abbreviations for month names. This abbreviation convention is already quite common in corporate financial documents, among other places. Imzadi 1979 → 22:30, 9 July 2015 (UTC)
- Support allowing quarters (and seasons), but question whether this should be directly mingled with, rather than juxtaposed against, date data. For one thing, mingling them could break various tools. For another, many publications use both; the quarter or season is at least as much akin to title data as date data: Journal of Chicken Lips, June/July 2015 (Summer issue), etc. For a third, they can span multiple quarters or seasons, which spans themselves can cross a year boundary (Winter 2014/2015, 4Q 2014 / 1Q 2015, etc.) — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:25, 30 July 2015 (UTC)
Author’s initials only
This news article is credited only to “C.R.”. How should this be handled? (I note that
author
is deprecated.)
|author=<!-- C.R. -->
?|author=C.R.
?|first=C. |last=R.
?
—80.192.177.23 (talk) 00:38, 13 July 2015 (UTC)
- Until you discover who C.R. is, and can provide a complete name,
|author=C.R.
works. Can you show where it is written that|author=
is deprecated? That assertion is not true so anyplace saying otherwise needs to be corrected.
- Thanks. I misread: it's
|coauthor=
that's deprecated, not|author=
. —80.192.177.23 (talk) 03:17, 13 July 2015 (UTC)
- Thanks. I misread: it's
- FWIW, I always put these in scare-quotes, e.g. "C. R.", and include a note (another good use for the
|note=
parameter I've proposed) that a more complete name for the author is not presently available. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:18, 30 July 2015 (UTC)
In Template:Cite episode, network = publisher?
Shouldn't |network=
be documented as an alias of |publisher=
? — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 01:24, 22 July 2015 (UTC)
{{cite episode |title=Title |series=Series |network=Network |publisher=Publisher}}
- →"Title". Series. Publisher. Network.
- As can be seen in my crude example,
|network=
is not an alias of|publisher=
, so in answer to your question, no,|network=
should not be documented as a strict alias of|publisher=
. But that raises the question: should|publisher=
be valid for use in{{cite episode}}
?
- I guess it could be in some cases, when the production is attributed to one entity, and it retains rights to it, syndicates it later on other networks, reissues it on DVD, etc., all without involvement of the original network. Will definitely need documentation clarification. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 08:04, 22 July 2015 (UTC)
Definite error in same template
No idea how this is happening: |series=
is not italicizing, but it's clearly intended as a replacement for |work=
(which is absent from this template's documentation). The only way to get a properly italicized series name with this template is to use |work=
, which suggests that it's not actually coded as an alias of |work=
for some reason, but as a separate parameter. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 08:08, 22 July 2015 (UTC)
- Series is italicised in Trappist's example above... - Evad37 [talk] 08:51, 22 July 2015 (UTC)
- It appears that the
|series=
parameter is being repurposed. When I started six years ago, it was used in{{cite journal}}
to resolve duplication when the same volume/issue numbers were used for two different issues. --Redrose64 (talk) 13:16, 22 July 2015 (UTC)- Well, as with
|title=
doing something different in different templates, this one needs to as well. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:21, 22 July 2015 (UTC)Template:Cite journal has had
|series=
since 26 October 2008 [9]. Template:Cite episode has had it since its creation on 4 March 2006 [10]. It may have been around in some other template even longer; not sure. Was added to{{Cite book}}
in 2007, for example. Anyway, it's highly desirable that it italicize in{{Cite episode}}
. I would just go fix it, but I can't due to full protection on the module. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 21:47, 24 July 2015 (UTC)
- Well, as with
- It appears that the
Test: Onie-Maus, Ann (19 July 2015). "Athena's Earlobes". Cracksmokin' Buttmonkeys. Season 2. Episode 6 (in Gaelic). Weed, New Mexico. 48 minutes in. Insipid Broadcasting Network. KBLARGH. This parameter seems to serve no purpose. Retrieved 20 July 2015. My chicken has bigger nuggets than yours!
{{cite episode}}
: CS1 maint: unrecognized language (link)
Hmm. OK, it's italicizing now.
But note that the |city=
parameter is not working, though it has been documented at this template for a long time (the |location=
version works, and I'll go change the template's documentation, but it should probably have city
as an alias). But its value is misplaced in the sequence. It should immediately precede the |station=
value, if present, e.g. Weed, New Mexico: KBLARGH, fallback to preceding the network in same format, and finally to appearing alone, with no colon, as in the above display, if neither are present, in which case it should be just before the accessdate. It's really weird that it is inserted into episode-specific data, between transcript info and timecode info.
It has another problem, too: The misfeature that it always throws an error if there is no |title=
value, even though some TV show's episodes do not have titles. It should detect some specific string, e.g. [none]
and suppress display of that value or of the error in that case. This would also allow it be used to cite one-off programs (TV specials, either stand-alone or of a regular series), without having to use some other template like {{cite video}}
or {{cite film}}
.
Next, the |transcript=
parameter verges on useless, unless the transcript has a special, unique title. If you leave it out/blank, then |transcript-url=
throws an error. Instead |transcript=Transcript
should simply be the default value. If a value is provided, it should appear as Transcript: "value of transcript parameter here".
— SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 00:07, 31 July 2015 (UTC)
{{cite episode}}
: the Module:Citation/CS1 version very closely follows, and in some cases improves upon,{{cite episode}}
: the{{citation/core}}
version as can be seen by comparing your example citation rendered here by both:
Wikitext | {{cite episode
|
---|---|
Live | Onie-Maus, Ann (19 July 2015). "Athena's Earlobes". Cracksmokin' Buttmonkeys. Season 2. Episode 6 (in Gaelic). Weed, New Mexico. 48 minutes in. Insipid Broadcasting Network. KBLARGH. This parameter seems to serve no purpose. Retrieved 20 July 2015. My chicken has bigger nuggets than yours! {{cite episode}} : CS1 maint: unrecognized language (link)
|
Sandbox | Onie-Maus, Ann (19 July 2015). "Athena's Earlobes". Cracksmokin' Buttmonkeys. Season 2. Episode 6 (in Gaelic). Weed, New Mexico. 48 minutes in. Insipid Broadcasting Network. KBLARGH. This parameter seems to serve no purpose. Retrieved 20 July 2015. My chicken has bigger nuggets than yours! {{cite episode}} : CS1 maint: unrecognized language (link)
|
|city=
doesn't work in the Module version because it doesn't work in the{{citation/core}}
version.
- So shouldn't it have that as an alias, given that it was deployed for a long time with
|city=
as the parameter name? PS: Just to be clear my sample test code is to play with swapping stuff in and out. It mostly doesn't directly illustrate the problems I talked about, or I would have had to use it numerous times in the same post. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 01:53, 31 July 2015 (UTC)
- So shouldn't it have that as an alias, given that it was deployed for a long time with
and others is a synonym of et al.
There aren't that many but editors have used |author=and others
(some of these are the result of Monkbot making author parameters from |coauthors=
). These author parameters aren't currently detected by name_has_etal ()
in Module:Citation/CS1. I have tweaked the sand box so that they are:
Wikitext | {{cite book
|
---|---|
Live | First author; et al. Title. {{cite book}} : |author= has generic name (help); Explicit use of et al. in: |author2= (help)
|
Sandbox | First author; et al. Title. {{cite book}} : |author= has generic name (help); Explicit use of et al. in: |author2= (help)
|
Such citations will be added to Category:CS1 maint: Explicit use of et al..
Editors have also used |author=others
but there were (according to an insource: search) only a dozen of them so I just fixed them instead of adding a test to the module.
—Trappist the monk (talk) 18:56, 26 July 2015 (UTC)
- Support. – Jonesey95 (talk) 08:47, 29 July 2015 (UTC)
- Oppose, just change them to "et al". Also best to keep coauthors and an option. -- PBS (talk) 21:27, 30 July 2015 (UTC)
Bug
Please see Emi Takei, footnote #2, where it says that there is no "title" parameter, even though it does exist. Debresser (talk) 16:27, 26 June 2015 (UTC)
- From the help
{{cite episode}} will show this error if
|series=
is blank (even if a|title=
is provided).
- Keith D (talk) 16:35, 26 June 2015 (UTC)
- That should be fixed then to read "Missing or empty |series=" instead of "Missing or empty |title=" Debresser (talk) 21:46, 27 June 2015 (UTC)
Fixed in the sandbox:
{{cite episode/new |title=Title |series=Series}}
- "Title". Series.
{{cite episode/new |title=Title |series=}}
- "Title".
{{cite episode}}
: Missing or empty|series=
(help)
- "Title".
and to prove that I haven't broken the missing title error message for other templates:
{{cite book/new |title= |series=Series}}
{{citation/new |title= |series=Series}}
—Trappist the monk (talk) 10:30, 4 August 2015 (UTC)
separator preceding et al. static text
See this discussion. (I have taken-up that conversation up here so that Module talk:Citation/CS1 can be archived and then redirected here per this discussion.)
I have tweaked Module:Citation/CS1/sandbox to insert the name-list separator character and a space between the end of the trailing author/editor name and the 'et al.' static text. The code uses the separator character that is associated wwith the particular name-list format: a semicolon for generic cs1|2 |lastn=
/ |firstn=
/ |authorn=
names list (the same for the editor versions of these), and a comma for Vancouver system author and editor name lists: |vauthors=
, |veditors=
, and the last/first/author (and editor) lists when |name-list-format=vanc
.
{{cite book/new |title=Title |last=Last |first=First |display-authors=etal}}
- Last, First; et al. Title.
{{cite book/new |title=Title |editor-last=Last |name-list-style=vanc |editor-first=First |display-editors=etal}}
- Last F, et al. Title.
{{cite book/new |title=Title |editor-last=Last |editor-first=First |display-editors=etal}}
- Last, First; et al. (eds.). Title.
{{cite book/new |title=Title |vauthors=Last F |display-authors=etal}}
- Last F, et al. Title.
{{cite book/new |title=Title |vauthors=Last F et al.}}
- Last F, et al. Title.
{{cite book/new |title=Title |veditors=Last F |display-editors=etal}}
- Last F, et al. (eds.). Title.
{{cite book/new |title=Title |veditors=Last F et al.}}
- Last F, et al. (eds.). Title.
I don't think that there is a solution for the free-form author and editor parameters |authors=
and |editors=
so for these, the static 'et al.' text is appended without a separator character (this is the same as the current live version:
{{cite book/new |title=Title |authors=Last, First and Last2, First2 M. |display-authors=etal}}
{{cite book/new |title=Title |editors=Last, First and Last2, First2 M. |display-editors=etal}}
—Trappist the monk (talk) 16:34, 4 August 2015 (UTC)
Merging Template:Cite ArXiv
After a discussion at Wikipedia talk:Identifying reliable sources#Unpublished/SPS/UGC sources and Template:Cite arXiv, to make sure that we should ever be citing arXiv for anything but a convenience link, it's become clear that there are only two use cases for this template:
- Citing an arXiv paper that has also been published in a journal, where the arXiv URL is a convenience link, in which case it can be replaced with
It can actually just be swapped with:{{Cite journal|url=URL of published copy at journal or indexing service, if one is available |arXiv=URL of the preprint at arXiv |at=value that would have been in the arXiv "class" parameter |...}}
{{Cite journal|url=URL of published copy at journal or indexing service, if one is available |eprint=URL of the preprint at arXiv |...}}
and can be done with just swapping in{{Cite journal}}
with no adjustments at all if there's no non-arXiv URL to put in. - Citing (rarely) an arXiv paper that has not yet been reputably published but is being cited as a primary source for some reason, and for which there is no other URL, in which case it can be replaced with
It can actually just be swapped with:{{Cite web|url=URL at arXiv |at=value that would have been in the arXiv "class" parameter |...}}
{{Cite web}}
with no adjustments at all.
The one and only thing that this template does "special" is provide an optional |class=
that gives the arXiv category the paper is in, and this is only "needed" for certain arXiv URLs that don't already include it. It's not actually required at all, since it does not aid in identifying and retrieving the source anyway; it's just a categorization identified that is sometimes in arXiv URLs, sometimes not, but which some like to include. If as I suspect we want to retain it:
- The template can be replaced with a call to
{{Cite web}}
,that mapsand passes all the other standard parameters for the template; or|class=
to|at=
, - The template can just redirect to
{{Cite web}}
,after aliasing.|class=
to|at=
Either way, for cases where the paper has subsequently been journal-published (case #1, the vast majority of legitimate citations using this template), the proper template to use, even if we did nothing else at all, is {{Cite journal}}
. It, too, should probably support Never mind: All the CS1 and CS2 templates already handle |class=
as an alias of |at=
, just to preserve that tidbit of information. (It's not quite as trivial as some other info we discard, like total number of pages and arXiv.org prefers that it being included in citations to papers it hosts.)|class=
directly.
The {{Cite arXiv}}
template serves no purpose at all as a stand-alone template, and it's standard operating procedure, both site-wide and with regard to citation templates specifically, to merge redundant ones. Instances of this template cannot be "upgraded" with additional details after journal publication without replacing the template anyway, because it does not support |doi=
, |volume=
, etc., while both {{Cite journal}}
and {{Cite web}}
don't have this problem. And the use of this identifier-based, site-specific template hampers the ability to do source verification, because it mix-and-matches completely different (for WP purposes) kinds of sources – peer-reviewed publications vs. unpublished materials – solely on the criterion of what website they're hosted at. Yet we already deprecated and merged the entire little family of {{Cite doi}}
and related templates, for the same reason, that they were identifier-based. This arxiv-specific template is foolhardy for the additional reason in that it effectively encourages citation of unpublished arXiv papers as if they were equivalent to peer-reviewed journal papers as a class; it lends false reliability to what amounts to self-published/user-contributed content. While arXiv is arguably better than various other sites that allow people to publish papers on their own, this fact that it's essentially a papers-wiki for original academic research cannot be avoided. Many instances of case #2 should probably be deleted, as failing WP:V's basic requirements, but that's probably only determinable on a case-by-case basis – specifically because of this template's commingling of the two source types as undistinguished.
It's my impression that WT:CS1 prefers collectively to handle merge discussions here than take them to WP:TFD, so here we are. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 02:44, 31 July 2015 (UTC)
- Two points:
- You have completely misrepresented the content of the discussion, instead putting forward your minority opinion as the consensus. None of the other participants said anything in favor of merging or deleting {{cite arxiv}}
- {{cite arxiv}} and {{arxiv}} serve completely different purposes, and merging them makes no sense. One of them is for formatting citations. The other is for formatting links to the arxiv, within citations (usually but not always redundant with the
|arxiv=
parameters of the various citation templates and/or with direct wikilink syntax [[arxiv:...]]).
- I see no valid justification for this merge proposal. —David Eppstein (talk) 02:49, 31 July 2015 (UTC)
- A clear case of WP:IDIDNTHEARTHAT by SMcCandlish here. As for his two scenarios, they manage to be both gross oversimplifications and bad practice as the same time. Headbomb {talk / contribs / physics / books} 03:10, 31 July 2015 (UTC)
- I see no reason to merge Template:ArXiv with any other template, as proposed in the section header, based on the confusing narrative above. ArXiv, Cite arxiv? What templates are we talking about here?
- A clear case of WP:IDIDNTHEARTHAT by SMcCandlish here. As for his two scenarios, they manage to be both gross oversimplifications and bad practice as the same time. Headbomb {talk / contribs / physics / books} 03:10, 31 July 2015 (UTC)
- I have looked at the original discussion. There is no consensus there, and a lot of misunderstanding and failure to communicate effectively. I disagree with the OP's suggestion that on that page, "it's become clear that...."
- I suggest that this discussion continue at the original location, per WP:MULTI. – Jonesey95 (talk) 04:12, 31 July 2015 (UTC)
- It's no longer relevant to or at WP:RS; I moved it for a reason. I made no claims about any consensus in either direction, BTW. I simply stated the fact that only two kinds of use-case for
{{Cite journal}}
had been outlined. Go read the discussion, and you'll see that this is entirely factual. Still is, even factoring in this discussion. All this hand wave activity isn't going to change that. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 11:21, 1 August 2015 (UTC)
- It's no longer relevant to or at WP:RS; I moved it for a reason. I made no claims about any consensus in either direction, BTW. I simply stated the fact that only two kinds of use-case for
- I suggest that this discussion continue at the original location, per WP:MULTI. – Jonesey95 (talk) 04:12, 31 July 2015 (UTC)
- The value assigned to
|class=
in{{cite arxiv}}
should not be mapped to|at=
because|at=
is an in-source location parameter which|class=
is not.
|class=
is part of the|arxiv=
identifier handling code in Module:Citation/CS1. If|class=
is set, its value is concatenated with the value assigned to|arxiv=
at rendering. Because it is one of the predefined identifiers,|arxiv=
is available to all cs1|2 templates;|class=
is ignored if|arxiv=
is not set.
- Converting
{{cite arxiv}}
to{{cite journal}}
is a simple matter of changing the name of the template and adding the appropriate journal parameters, typically|journal=
,|volume=
,|issue=
,|pages=
plus perhaps|doi=
,|bibcode=
, etc:{{cite arxiv |last=Lodders |first=K. |date = 2008 |title=The solar argon abundance |arxiv=0710.4523v1 |class=astro-ph}}
- Lodders, K. (2008). "The solar argon abundance". arXiv:0710.4523v1 [astro-ph].
- becomes
{{cite journal |last=Lodders |first=K. |date = 2008 |title=The solar argon abundance |arxiv=0710.4523v1 |class=astro-ph |journal=[[Astrophysical Journal]] |volume=674 |pages=607 |doi=10.1086/524725 |bibcode=2008ApJ...674..607L}}
- Lodders, K. (2008). "The solar argon abundance". Astrophysical Journal. 674: 607. arXiv:0710.4523v1. Bibcode:2008ApJ...674..607L. doi:10.1086/524725.
{{cite journal}}
: Unknown parameter|class=
ignored (help)
- Lodders, K. (2008). "The solar argon abundance". Astrophysical Journal. 674: 607. arXiv:0710.4523v1. Bibcode:2008ApJ...674..607L. doi:10.1086/524725.
- —Trappist the monk (talk) 11:11, 31 July 2015 (UTC)
- Moot point about
|at=
, since|class=
is supported anyway (but I would have disagreed; the|at=
parameter is for location within the source|work=
, not necessarily within the|title=
object. One of the most frequent uses of|at=
is identifying named sections of websites, periodicals, etc., in which the|title=
article is located. But who cares? It doesn't matter anyway: The|class=
value, as you say, is already part of all the cs1|2 templates. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 11:21, 1 August 2015 (UTC)
- Moot point about
- I never said that
|at=
was anything but an in-source location parameter. That was my reasoning for why|class=
should not be mapped to|at=
. At arXiv, class is akin to Wikipedia's categories.
- I never said that
- —Trappist the monk (talk) 14:06, 1 August 2015 (UTC)
- OK. Not worth arguing about since it's doesn't matter anyway;
|class=
is directly supported. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:48, 5 August 2015 (UTC)
- OK. Not worth arguing about since it's doesn't matter anyway;
- —Trappist the monk (talk) 14:06, 1 August 2015 (UTC)
- Two editors who cannot provide a rationale to keep this template, nor refute arguments to merge it, but just rant at me about it with a lot of heat, do not magically make a consensus. The fact that
|class=
is already handled by{{Cite journal}}
(I hadn't noticed, and thought it might need to be added) just proves that the one thing that maybe, kinda-sorta made this template possibly not redundant, is actually irrelevant. This template is totally redundant. There is nothing I am "not hearing". I moved the discussion here because it was no longer relevant at its original location (no RS question is open any longer). But you can move it where ever you want; there doesn't appear to be anything left to discuss: There is literally no rationale for keeping this template at all. I decline to get worked up about it. The level of emotional invective being spewed about this is entirely out of proportion. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 11:14, 1 August 2015 (UTC)PS: @David Eppstein: We not talking about merging
{{arxiv}}
with anything (I see there was one typographical error in the previous discussion about this stuff that referred to{{arxiv}}
in passing instead of{{cite arxiv}}
, in a side discussion about{{cite doi}}
, but I would think the fact it was a typo would have been clear in the context, since the arguments about the latter do not pertain to the former, and none of that was central to the main thread to begin with.{{Arxiv}}
can be used to provide additional links if necessary to, e.g., multiple versions of the same paper, as someone else mentioned in the previous discussion. Is most of this angry verbiage simply generated because of a typo? This discussion is only about{{Cite arXiv}}
. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 11:34, 1 August 2015 (UTC)- I haven't seen a lot of emotion, just confusion and attempts by other editors to find a way through the confusion. I can explain our confusion about which template you are proposing to discuss. The header of this section refers to {{ArXiv}}, but the discussion appears to be about {{Cite ArXiv}}. – Jonesey95 (talk) 02:41, 3 August 2015 (UTC)
- Fixed! It doesn't explain the vitriol about this at Wikipedia talk:Identifying reliable sources#Unpublished/SPS/UGC sources and Template:Cite arXiv, which is entirely about Template:Cite arXiv. It all boils down to a defense of citing self-published claptrap at arXiv that isn't permissible under WP:SPS / WP:UGC. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:48, 5 August 2015 (UTC)
- I haven't seen a lot of emotion, just confusion and attempts by other editors to find a way through the confusion. I can explain our confusion about which template you are proposing to discuss. The header of this section refers to {{ArXiv}}, but the discussion appears to be about {{Cite ArXiv}}. – Jonesey95 (talk) 02:41, 3 August 2015 (UTC)
Missing author without error message
I found the following citation in ¡Vivan los niños!, which was in Category:CS1 errors: missing author or editor:
Wikitext | {{cite news
|
---|---|
Live | "Vivan los niños llega a su fin". Online edition (in Spanish). El Siglo de Torréon. 2003-03-15. Retrieved 2009-10-21. {{cite news}} : |first= missing |last= (help)
|
Sandbox | "Vivan los niños llega a su fin". Online edition (in Spanish). El Siglo de Torréon. 2003-03-15. Retrieved 2009-10-21. {{cite news}} : |first= missing |last= (help)
|
As of this writing, the above citation does not emit a red error message (for me, at least), but I think it should. It has a first name with no last name. – Jonesey95 (talk) 04:26, 5 August 2015 (UTC)
- Yep, and I am perplexed.
- Ha! Found it! In the function
select_author_editor_source()
we select one of three possible name lists to use:|authorn=
/|lastn=
/|firstn=
or|vauthors=
or|authors=
. The code looks for|last=
,|last1=
and|last2=
(and aliases). If the code doesn't find any of these and also doesn't find|vauthors=
and|authors=
, then it returns a value indicating that there isn't an author list. That no-author-list return value causes the missing name check to be skipped. For now, I've set the code to assume that there is an|authorn=
/|lastn=
/|firstn=
list when no author-name-lists are defined so that the missing name test can catch a|first=
only error.
- Ha! Found it! In the function
Question about CS1 maint: Extra text
I have submitted Wikipedia:Bots/Requests for approval/BattyBot 46 to fix articles in Category:CS1 maint: Extra text. The category page states "This is a tracking category for CS1 citation parameters that have parameters that contain text that duplicates static text provided by the template. For example, |edition=2nd ed
will be rendered as (2nd ed ed.)."
However, there are articles in this category that do not meet this criteria.
Reference #72 in 1956 Winter Olympics is presumably in this category because of the |pages=
:
{{cite journal |title=IOC and OCOG Abbreviations for NOCs |last=Mallon |first=Bill |author2=[[Ove Karlsson (sports journalist)|Ove Karlsson]] |journal=[[Journal of Olympic History]] |volume=12 |issue=2 |date=May 2004 |pages=pp. 25–28 |url=http://www.la84foundation.org/SportsLibrary/JOH/JOHv12n2/johv12n2l.pdf |format=PDF |accessdate=2 March 2010}}
- Mallon, Bill; Ove Karlsson (May 2004). "IOC and OCOG Abbreviations for NOCs" (PDF). Journal of Olympic History. 12 (2): pp. 25–28. Retrieved 2 March 2010.
{{cite journal}}
:|pages=
has extra text (help)
However, if we remove "pp." from the parameter value, we see that "pp." is not static text provided by {{cite journal}}:
{{cite journal |title=IOC and OCOG Abbreviations for NOCs |last=Mallon |first=Bill |author2=[[Ove Karlsson (sports journalist)|Ove Karlsson]] |journal=[[Journal of Olympic History]] |volume=12 |issue=2 |date=May 2004 |pages=25–28 |url=http://www.la84foundation.org/SportsLibrary/JOH/JOHv12n2/johv12n2l.pdf |format=PDF |accessdate=2 March 2010}}
- Mallon, Bill; Ove Karlsson (May 2004). "IOC and OCOG Abbreviations for NOCs" (PDF). Journal of Olympic History. 12 (2): 25–28. Retrieved 2 March 2010.
How should we resolve this discrepancy?
- Change {{cite journal}} so that it always displays "pp."?
- Change {{cite journal}} so the maintenance category is not populated in this case?
- Change the category description to explain why it is inappropriate to put "pp." in
|pages=
in this case? - Something else?
Thanks! GoingBatty (talk) 15:51, 25 July 2015 (UTC)
- There has been discussion on these pages before about making
{{cite journal}}
render the 'p.' and 'pp.' prefixes when the citation does not use|volume=
and|issue=
- No
- In the case of
{{cite journal}}
, the 'p.' and 'pp.' prefixes duplicate the colon (which for this template is the static text):{{cite journal |title=Title |journal=Journal |page=100}}
- "Title". Journal: 100.
- perhaps. such as?
- —Trappist the monk (talk) 16:11, 25 July 2015 (UTC)
- The problem also appears when using {{citation}} where you end up with a meaningless number for the page number. Can we do something to always render the p. or pp. for page number as the colon is not intuitive and we are producing references which are not easily understood by the majority of readers. If this needs a wider discussion then we should set one up so that we can see if there is consensus for change. Keith D (talk) 18:49, 4 August 2015 (UTC)
- When citing scholarly journals,
{{cite journal}}
and{{citation}}
follow the model established and used by scholarly journals: volume (issue): page(s). Why should cs1|2 deviate from that standardized presentation? For example, PMID 11470414 cites the journal date; location this way: Curr Biol. 2001 Jul 10;11(13):1068-73. - —Trappist the monk (talk) 23:21, 4 August 2015 (UTC)
- Problem comes when you are not using the volume and issue fields but just a page number it just shown a number that has no context and which needs something to show its purpose. I would guess that most readers would not know what the number relates to. Keith D (talk) 23:32, 4 August 2015 (UTC)
- Why are you leaving out those rather important bits of information? Volume and issue are, pretty much, requisite elements of a proper journal cite, are they not?
- —Trappist the monk (talk) 23:51, 4 August 2015 (UTC)
- Because it is not a journal but a newspaper. Keith D (talk) 00:23, 5 August 2015 (UTC)
- Why are you not using {{cite news}}? Use the correct tool for the job. --Izno (talk) 00:38, 5 August 2015 (UTC)
- Argh! Why didn't you say you were citing a newspaper and not a journal?
{{citation}}
doesn't do a good job of citing newspapers. To get around that, do as Editor Izno suggested and also add|mode=cs2
so that you get a rendered citation that looks like it was made with{{citation}}
. - —Trappist the monk (talk) 00:59, 5 August 2015 (UTC)
- A better example would not be a newspaper but a magazine. The correct tool for the job would be
{{cite magazine}}
- but{{cite magazine}}
is a redirect to{{cite journal}}
, and not all magazines have volume or issue numbers. Some do: this one for instance, but by no means all. Some people refuse to add the issue number even if one exists, on the basis that the cover date is sufficient to identify the issue. So when{{cite journal}}
is used, there is actually a fair chance that no issue number has been provided. --Redrose64 (talk) 08:20, 5 August 2015 (UTC)- That would suggest that perhaps,
{{cite magazine}}
should redirect to{{cite news}}
instead of{{cite journal}}
because{{cite news}}
also supports|volume=
and|issue=
but uses p. and pp. prefixes:- "Cite news with volume and issue". Magazine. Vol. X, no. 23. pp. 50–76.
- Alternately, we might modify
|p-prefix=
and|pp-prefix=
handling within Module:Citation/CS1 to override the colon for journal cites. Then again, perhaps not. An insource search for 'p-prefix' and 'pp-prefix' finds no instances of either of the prefix parameters. If editors aren't using them is there any reason to keep them? - —Trappist the monk (talk) 10:13, 5 August 2015 (UTC)
- I have two ideas in this regard. The first is to possibly remove the compressed format for journals and use "vol. 1, no. 2, p. 3" or similar. CMOS16 uses "1, no. 2 (XXX): 3" (where the XXXX is the date or year of publication. This would have the advantage that page numbers would then always be preceded by the appropriate abbreviation, and readers who aren't familiar with the meaning of the bold-faced and bracketed numbers or the colon would have a more explicit frame of reference in the reference.
- The other idea is to emit the "p." or "pp." as appropriate unless a volume, an issue or both are also defined. So: "1 (2): 3", "1: 3", "(2):3" or just plain "p. 3" would be display options depending on what parameters are defined. The latter idea may be simpler to code, and bots could then strip manually inserted "p." or "pp." to avoid doubling up. Imzadi 1979 → 11:24, 5 August 2015 (UTC)
- I would favour the first option as that removes any ambiguity for the reader. Keith D (talk) 11:41, 5 August 2015 (UTC)
- @Trappist the monk: Altering Template:Cite magazine to point to
{{cite news}}
instead of{{cite journal}}
should not be undertaken lightly. It has been suggested before, several times, in different venues. For instance, at Wikipedia talk:WikiProject Academic Journals/Journals cited by Wikipedia#Unfortunate interaction between template and wikiproject. Notice in particular my comment of 14:02, 2 October 2011: whenever I have used{{cite magazine}}
, someone with AWB has popped by and altered it to{{cite journal}}
. So altering the redirect will not fix everything, but will cause a large number of magazine citations that directly use{{cite journal}}
to suddenly become "wrong". - As for the suggestions of Imzadi1979: I go with the second - in the absence of volume and issue, emit "p." or "pp." --Redrose64 (talk) 15:44, 5 August 2015 (UTC)
- If we right-this-minute stop AWB from doing its template rename thing as Editor John of Reading suggests,
{{cite magazine}}
is used in 1924 pages and{{cite journal}}
used in 419,414 pages. Clearly that latter number is big, but that's not the group we care about. The group we care about is the{{cite magazine}}
group and there, the work is to inspect those cites to see if they changed to{{cite journal}}
or to{{cite news}}
.
- If we right-this-minute stop AWB from doing its template rename thing as Editor John of Reading suggests,
-
- We could set up a maintenance category and have Module:Citation/CS1 populate it with pages that have
{{cite journal}}
templates that don't use a specified subset of the identifiers (arxiv, bibcode, doi, jfm, jstor, pmc, pmid, etc) which identifiers are commonly associated with academic journals. Based on the content of the category we could make a better decision on how to proceed with the{{cite magazine}}
question. - —Trappist the monk (talk) 19:07, 5 August 2015 (UTC)
- We could set up a maintenance category and have Module:Citation/CS1 populate it with pages that have
- @Redrose64: If this discussion does end up with an agreed edit to the redirect, you can instantly reconfigure AWB's behaviour by editing WP:AWB/TR. -- John of Reading (talk) 16:10, 5 August 2015 (UTC)
- That's not what I mean. My point is: who is going to go around undoing all the bypassing of redirects that AWB users have already done? --Redrose64 (talk) 16:22, 5 August 2015 (UTC)
- @John of Reading: For example, the edit I mentioned at 08:20, 5 August 2015, has now been redirect-bypassed by AWB to use
{{cite journal}}
instead of{{cite magazine}}
. --Redrose64 (talk) 11:01, 6 August 2015 (UTC)
- @Trappist the monk: Altering Template:Cite magazine to point to
- I would favour the first option as that removes any ambiguity for the reader. Keith D (talk) 11:41, 5 August 2015 (UTC)
- That would suggest that perhaps,
- Not using the {{cite news}} template so as to avoid mixing CS1 and CS2 style templates in the same article as that causes inconsistencies in the output of the information. Personally I tend to use CS1 templates and avoid CS2 where possible. Keith D (talk) 11:34, 5 August 2015 (UTC)
- The purpose of
|mode=
is to allow mixing cs1 and cs2 templates while retaining the characteristic display style of one. So, if an article uses{{citation}}
but needs to cite a newspaper and{{cite news}}
does a better job at that than{{citation}}
, use{{cite news}}
and set|mode=cs2
so that the rendered output is in the cs2 format: - To make
{{citation}}
render in the style of cs1, set|mode=cs1
- —Trappist the monk (talk) 11:53, 5 August 2015 (UTC)
- The purpose of
- A better example would not be a newspaper but a magazine. The correct tool for the job would be
- Because it is not a journal but a newspaper. Keith D (talk) 00:23, 5 August 2015 (UTC)
- Problem comes when you are not using the volume and issue fields but just a page number it just shown a number that has no context and which needs something to show its purpose. I would guess that most readers would not know what the number relates to. Keith D (talk) 23:32, 4 August 2015 (UTC)
- When citing scholarly journals,
- Related question - when editors add "p" or "pp" to the parameter value because it is not automatically displayed, does this mess up the COinS metadata? Thanks! GoingBatty (talk) 19:01, 4 August 2015 (UTC)
- Judging by the two examples which you provided at the start, yes. The first has &rft.pages=pp.+25-28 where the second has &rft.pages=25-28 --Redrose64 (talk) 20:05, 4 August 2015 (UTC)
- The problem also appears when using {{citation}} where you end up with a meaningless number for the page number. Can we do something to always render the p. or pp. for page number as the colon is not intuitive and we are producing references which are not easily understood by the majority of readers. If this needs a wider discussion then we should set one up so that we can see if there is consensus for change. Keith D (talk) 18:49, 4 August 2015 (UTC)
Non-URL not detected?
I came across this citation in ¿Dónde Están Mis Amigos?:
Wikitext | {{cite web
|
---|---|
Live | [Salaverri, Fernando. Sólo éxitos: año a año : 1959-2002. Iberautor Promociones Culturales, 2005. ISBN 84-8048-639-2 "Spanish album certifications – Extremoduro – ¿Dónde están mis amigos?"]. Promusicae (in Spanish). Retrieved 1999. {{cite web}} : Check |url= value (help); Check date values in: |accessdate= (help); Unknown parameter |sandbox= ignored (help); templatestyles stripmarker in |url= at position 98 (help)
|
Sandbox | [Salaverri, Fernando. Sólo éxitos: año a año : 1959-2002. Iberautor Promociones Culturales, 2005. ISBN 84-8048-639-2 "Spanish album certifications – Extremoduro – ¿Dónde están mis amigos?"]. Promusicae (in Spanish). Retrieved 1999. {{cite web}} : Check |url= value (help); Check date values in: |accessdate= (help); Unknown parameter |sandbox= ignored (help); templatestyles stripmarker in |url= at position 98 (help)
|
The 1999 access date properly throws an error, but the URL does not, even though it probably should. Can the module code be tweaked to detect the above URL value as an error? – Jonesey95 (talk) 11:52, 31 July 2015 (UTC)
- I suggested such a check here but there was no response. Keith D (talk) 12:34, 31 July 2015 (UTC)
- The extra stuff in
|url=
like that of your example citation is caught by the modified test described below:{{cite news/new| url=Read more: http://www.politico.com/story/2015/01/police-union-wants-protection-under-hate-crime-law-113976.html#ixzz3Y5B26xv1| title=Police union wants protection under hate crime law| publisher=Politico| date=January 5, 2015}}
- [Read more: http://www.politico.com/story/2015/01/police-union-wants-protection-under-hate-crime-law-113976.html#ixzz3Y5B26xv1 "Police union wants protection under hate crime law"]. Politico. January 5, 2015.
{{cite news}}
: Check|url=
value (help)
- [Read more: http://www.politico.com/story/2015/01/police-union-wants-protection-under-hate-crime-law-113976.html#ixzz3Y5B26xv1 "Police union wants protection under hate crime law"]. Politico. January 5, 2015.
- —Trappist the monk (talk) 13:04, 31 July 2015 (UTC)
- The extra stuff in
- The value in
|url=
is not determined to be bad because it contains one or more colons. To satisfy the one of the conditions of the test, a colon may be preceded by anything but a forward slash. I don't think that spaces are allowed in a uri so I've tweaked the test so that the test will fail if the uri has spaces. More research is required I think. I've tweaked your compare template. - —Trappist the monk (talk) 12:48, 31 July 2015 (UTC)
- Indeed, external links in Wikipedia cannot have a space since we cannot manipulate the href attribute of the a. However, they can have a character encoded space e.g. %20. --Izno (talk) 13:37, 31 July 2015 (UTC)
- External links in WP cannot contain white space, per Help:URL#Linking_to_URLs. I wanted to make sure that there was verification of this statement, and it looks like there is.
- I suspect that this new test will unearth a lot of faulty URL parameter values (I'm guessing between 1,000 and 10,000) that have previously gone undetected. More work for us gnomes.... – Jonesey95 (talk) 14:13, 31 July 2015 (UTC)
- The gnomes shall inherit... --Izno (talk) 14:43, 31 July 2015 (UTC)
- It's not just external links in Wikipedia. URLs anywhere cannot contain spaces (internal links in Wikipedia that contain spaces actually contain underscores when expressed as URLs) - they're not explicitly allowed by RFC 3986, therefore they are forbidden. Percent encoding is a way to workaround the problem that forbids the use of several characters (not just spaces) in URLs, see section 2.1. Percent-Encoding. Indeed, spaces can have a special meaning, see Appendix C. --Redrose64 (talk) 19:40, 31 July 2015 (UTC)
- The gnomes shall inherit... --Izno (talk) 14:43, 31 July 2015 (UTC)
- Indeed, external links in Wikipedia cannot have a space since we cannot manipulate the href attribute of the a. However, they can have a character encoded space e.g. %20. --Izno (talk) 13:37, 31 July 2015 (UTC)
- This added check does seem like an improvement to the templates. Have the templates also recently changed to turn newlines in article titles into spaces? I seem to remember that causing problems with links before, but now I can't get it to misbehave. —David Eppstein (talk) 20:39, 31 July 2015 (UTC)
I've tweaked the url test a bit. The first thing the sandbox does is look for space characters in the whole of the url. In the earlier fix the sandbox checked for space characters only in the scheme portion. Next the sandbox tests for protocol relative urls (those urls that begin with '//' – no scheme). And lastly sandbox looks at the composition of the scheme itself. The scheme must begin with a letter, may contain letters, digits, and the plus, period and hyphen ('+', '.', '-') characters and be terminated with a colon (':').
- [www.example.com "Fail: no scheme, not protocol relative"].
{{cite web}}
: Check|url=
value (help) - [http//www.example.com "Fail: no colon"].
{{cite web}}
: Check|url=
value (help) - [8http://www.example.com "Fail: scheme begins with a digit"].
{{cite web}}
: Check|url=
value (help) - [ht tp://www.example.com "Fail: space in scheme"].
{{cite web}}
: Check|url=
value (help) - ample.com "Fail: space in domain name".
{{cite web}}
: Check|url=
value (help) - [[11] "Fail: wikimarkup"].
{{cite web}}
: Check|url=
value (help)
We support scheme:path urls in {{cite newsgroup}}
so the url we create should look like news:comp.os.minix
- Tanenbaum, A. S. (January 29, 1992). "LINUX is obsolete". Newsgroup: comp.os.minix. Usenet: 12595@star.cs.vu.nl.
I am not unhappy with LINUX
And the usual suspects:
There is a list of official and semi-official uri schemes at URI scheme.
—Trappist the monk (talk) 23:13, 31 July 2015 (UTC)
- This seems suboptimal:
[www.example.com "Fail: no scheme, not protocol relative"]
. Anything that parses as a domain name should be treated by default as if preceded by http://, I would think. Or if that's hard to detect without false positives, anything of the formww*.*.*[.*[.*]]
should probably be treated that way (ww*.
to catch "ww2.", "www2.", etc.; and[.*[.*]]
to catch long university domain names, like worst case scenario: www2.phys.sci.ic.ac.uk, to make one up). — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 12:04, 1 August 2015 (UTC)- I disagree; one could set up an FTP server at www.example.com. Or any of a number of other schemes, such as mailto. --Izno (talk) 01:15, 3 August 2015 (UTC)
- So? I could name my cat www.feedme.com. It's not reasonable to expect non-web addresses in this field (unless someone very explicitly puts in something like "ftp://..."), any more than pet's names appearing here. We can't reasonably be expected to account for every PEBKAC situation. It is increasingly and very common for people to drop the "http://" from Web addresses, since there are [probably] zero extant browsers that don't do precisely what I'm suggesting here: Treat a URL without the protocol identifier as an http:// URL by default. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:58, 5 August 2015 (UTC)
- How do we positively identify a URL if it does not have http:// at the start? What pattern do we search for? For some real-life examples of what editors do to the
|url=
parameter, look through Category:Pages with URL errors. At least half of the ones I just looked at would not link to a source if we simply added "http://" to the front of the parameter's value. Those need to be tagged or investigated by a human, something that would not happen without the error message. – Jonesey95 (talk) 01:12, 6 August 2015 (UTC)- I already gave the pattern to look for (albeit not as a regexp). — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 17:16, 6 August 2015 (UTC)
Actually, there's a more trivial use case to consider: the odd website that does not serve content over HTTP but instead HTTPS. Like we do, these days. HTTP happens to redirect but that's a function of the particular website, not a global assumption that can be made. Regardless of what browsers do, I would prefer to see the error rather than gracefully permit an editor to leave off the scheme where it might be the case that the page in question does not use HTTP.
@Trappist the monk: I assume this is the case, but does
|archiveurl=
have these checks? --Izno (talk) 17:44, 6 August 2015 (UTC)
- How do we positively identify a URL if it does not have http:// at the start? What pattern do we search for? For some real-life examples of what editors do to the
- So? I could name my cat www.feedme.com. It's not reasonable to expect non-web addresses in this field (unless someone very explicitly puts in something like "ftp://..."), any more than pet's names appearing here. We can't reasonably be expected to account for every PEBKAC situation. It is increasingly and very common for people to drop the "http://" from Web addresses, since there are [probably] zero extant browsers that don't do precisely what I'm suggesting here: Treat a URL without the protocol identifier as an http:// URL by default. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:58, 5 August 2015 (UTC)
- I disagree; one could set up an FTP server at www.example.com. Or any of a number of other schemes, such as mailto. --Izno (talk) 01:15, 3 August 2015 (UTC)
- yes. It's part of the code that renders a wiki external link so applies to all external links made by the module:
- —Trappist the monk (talk) 18:01, 6 August 2015 (UTC)
HTML5 bait-and-switch: The cite element again
See MediaWiki talk:Common.css#The cite element needs to not auto-italicize any longer. Summary: After something of an HTML developer community revolt, the early HTML5 change of <cite>
element to only pertain to the title of the work has been abandoned since late 2013, and the published, non-draft version of HTML5 (issued in late 2014) has gone back to HTML 4.01's broader scope for this element (and this is maintained in the HTML5.1 draft). So, the auto-italicizing of this element needs to stop, its use at Template:Quote needs to shift back, and that may need to be done here in CS1, too, if we're making any use of it. The element, though commonly used with <blockquote>
; is not tied to it; rather, it generically represents any citation. Now that the title-only change has been abandoned, <cite>...</cite>
should surround the entire citation generated by CS1 (and the rest of the citation templates), but only after MW:Common.css stops italicizing its content. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 10:14, 1 August 2015 (UTC)
<cite>...</cite>
is not used in cs1|2.- —Trappist the monk (talk) 10:55, 1 August 2015 (UTC)
- But it could be. I'm not sure what Semantic HTML gold would be earned by doing so, but it's feasible (after the CSS tweak), and wouldn't seem to "cost" anything but a few characters. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 11:55, 1 August 2015 (UTC)
- Not even that. Right now we wrap the citation in a
<span>...</span>
which I think, could just as easily be<cite>...</cite>
. From this:{{cite book |title=Title |author=Author |location=Location |publisher=Publisher |date=1 August 2015}}
- Module:Citation/CS1 creates this:
<span class="citation book">Author (1 August 2015). ''Title''. Location: Publisher.</span>
- and could easily be changed create this:
<cite class="citation book">Author (1 August 2015). ''Title''. Location: Publisher.</cite>
- —Trappist the monk (talk) 14:25, 1 August 2015 (UTC)
- Well, one would need to move the full stop I think since that's not part of the title, but that's a minor issue. Maybe that's actually a bug in the current module? --Izno (talk) 16:05, 1 August 2015 (UTC)
- I understood Editor SMcCandlish's comment to mean wrapping the entire cs1|2 citation in
<cite>...</cite>
. Adding separate tags to each title part (chapter, title, work) and each name (author, editor, other) seems enormously redundant given that the citation is the sum of all of its various parts which, each taken separately, may or may not be recognizable as a citation. If mw:common.css is changed so that italic styling is no longer applied to<cite>...</cite>
then the change I illustrated, now expanded for clarity, can be made – assuming that w3c settles on a definition that isn't tied solely to titles or persons. - —Trappist the monk (talk) 16:47, 1 August 2015 (UTC)
- That was indeed his comment. I was commenting on the fact that your previous examples appeared to be outputting an incorrect span, but I see that's not the case now. --Izno (talk) 18:21, 1 August 2015 (UTC)
- Yes, I mean replace the entire
<span>...</span>
with<cite>...</cite>
. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:44, 5 August 2015 (UTC)
- Yes, I mean replace the entire
- That was indeed his comment. I was commenting on the fact that your previous examples appeared to be outputting an incorrect span, but I see that's not the case now. --Izno (talk) 18:21, 1 August 2015 (UTC)
- I understood Editor SMcCandlish's comment to mean wrapping the entire cs1|2 citation in
- Well, one would need to move the full stop I think since that's not part of the title, but that's a minor issue. Maybe that's actually a bug in the current module? --Izno (talk) 16:05, 1 August 2015 (UTC)
- Not even that. Right now we wrap the citation in a
- But it could be. I'm not sure what Semantic HTML gold would be earned by doing so, but it's feasible (after the CSS tweak), and wouldn't seem to "cost" anything but a few characters. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 11:55, 1 August 2015 (UTC)
- The discussion is at MediaWiki talk:Common.css#The cite element needs to not auto-italicize any longer. --Redrose64 (talk) 17:52, 1 August 2015 (UTC)
- We can actually just do this right now, using
<cite style="font-style: normal">...</cite>
, and not wait for the interminable WP:FILIBUSTER process at Mediawiki:Common.css, in which the self-appointed gatekeepers generally will stonewall anything that doesn't do precisely what the W3C default suggestions are. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:44, 5 August 2015 (UTC)filibuster[ing] gatekeepers
: Erm? --Izno (talk) 02:21, 6 August 2015 (UTC)- Don't need to get into it in detail here. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 17:14, 6 August 2015 (UTC)
- I was looking for a reason for the personal attacks. I agree you don't need to get into it here, and shouldn't have used the phrase at all.
That aside, I disagree with the assertion that
We can actually just do this right now
. Let's figure out whether we want to use cite that way first (there) and then we can make the change (here). --Izno (talk) 17:38, 6 August 2015 (UTC)- It's not up to the CSS page to determine what elements and classes are to be used in Wikipedia. It's up to implementors of templates, etc., to determine what elements and classes they need implemented at the CSS page! You're putting the cart before the horse. More like putting the horse in the driver's seat of the cart. Also, criticism of longstanding editing patterns isn't an "attack". — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 03:15, 7 August 2015 (UTC)
It's not up to the CSS page
I agree with. I disagree with[i]t's up to implementors of templates, etc.
My position is that you are, intentionally or otherwise, attempting to split discussion of what we should do with the element. Seeing as the discussion at MW:Common.css was opened prior to this one, my position is also that we should stop commenting here on that point.Also, criticism of longstanding editing patterns isn't an "attack".
Any comment not in accordance with NPA is on the wrong track. From that policy,Do not make personal attacks anywhere in Wikipedia. Comment on content, not on the contributor.
In this case, it is clear to me you have commented on the contributors, not the content. If you think that there are problems with the users at that page, ANI is -> that way. --Izno (talk) 04:21, 7 August 2015 (UTC)- @Izno: What we should do editorially with the element is entirely a matter for contextual discussion with regard to different templates and other situations, and across MW generally, not just at en.wp. I.e., those are automatically separate discussions. One thing that should be done with
<cite>
is, for example, to wrap users' signatures in it on talk pages (when used with~~~
and~~~~
, which is attribution, but not with~~~~~
, which is just a shorthand for date insertion). Something similar should be done around both parameters of{{Unsigned}}
, and the attributive parameter of{{Talkquote}}
. What should be done with it in the citation templates is wrap the entire output with it instead of with<span>
. What should be done with it at Template:Quote is put it around both the|author=
and|source=
parameters' output if one or both are used, and suppress it otherwise. And so on. I'm sure we can devise many distinct uses and implementations of this semantic metadata markup.What we should do technologically about the element at Mediawiki/common.css is obviously to stop force-italicizing it, because that's pointless, wrong for most uses we can put to the element, and it interferes with and prejudices decisions about what we should do editorially with the element. Except when it is essentially impossible to work around, technological considerations never dictate content editing matters here.
These are completely severable discussions, and should be split. The fact that it's virtually impossible to get the controllers of that interface page to do even simple, commonsense things means that the editorial, context specific discussions necessarily need to address "routing around" this processual "damage" to get the work done. It would be completely ridiculous if 6 months from now we're still not doing the more useful things with this element simply because undoing the forced italics was still being stonewalled at Mediawiki/common.css, a sadly predictable outcome, though I may try an RfC to get it done. I'll also take the matter up with the MW developers, since this italicization doesn't make sense as a MW default to begin with, just as it did not for
<dfn>
, but I'll have to bother to figure out the new-ish ticket tracking system. (Haven't filed a MW bug since they quit using Bugzilla.) — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 06:58, 7 August 2015 (UTC)
- @Izno: What we should do editorially with the element is entirely a matter for contextual discussion with regard to different templates and other situations, and across MW generally, not just at en.wp. I.e., those are automatically separate discussions. One thing that should be done with
- It's not up to the CSS page to determine what elements and classes are to be used in Wikipedia. It's up to implementors of templates, etc., to determine what elements and classes they need implemented at the CSS page! You're putting the cart before the horse. More like putting the horse in the driver's seat of the cart. Also, criticism of longstanding editing patterns isn't an "attack". — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 03:15, 7 August 2015 (UTC)
- I was looking for a reason for the personal attacks. I agree you don't need to get into it here, and shouldn't have used the phrase at all.
- Don't need to get into it in detail here. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 17:14, 6 August 2015 (UTC)
- We can actually just do this right now, using
discontinuing support for some deprecated parameters
There are several deprecated parameters that I have been weeding out of Category:Pages containing cite templates with deprecated parameters over the past few months. When I started that category had 23k+ articles. Because the parameters that I propose to kill are rarely used, those that still exist will show up in Category:Pages with citations using unsupported parameters, a relatively small category. There is the additional benefit that the unsupported parameter error messages are not hidden so that editors other than the usual gnomes might (yeah, might) help to fix them. Here is a list of the parameters that I propose to kill:
these will be added to Module:Citation/CS1/Suggestions:
|authorformat=
|author-format=
|began=
|editorformat=
|editor-format=
|ended=
|separator=
these not added to Module:Citation/CS1/Suggestions because lowercase versions will be automatically suggested by the code:
|Author=
|Authorn=
|Editor=
|Editorn=
|EditorGiven=
|EditorGivenn=
|EditorSurname=
|EditorSurnamen=
these not added to Module:Citation/CS1/Suggestions because there are no one-to-one replacements for them:
|author-name-separator=
|author-separator=
|chapter-link=
|editor-name-separator=
|editor-separator=
|name-separator=
Still deprecated then would be |coauthor=
, |coauthors=
, and |month=
.
—Trappist the monk (talk) 18:24, 3 August 2015 (UTC)
- I've rearranged the list above because of the module handles incorrect case without needing to consult the suggestion list.
- Support. I think we should remove support for
|month=
as well, but we might need to have a separate, well-advertised thread for that suggestion. It has been deprecated for a long time, and there are periods where there are no instances of|month=
at all, typically after one of us gnomes has used an insource search to find and fix a few dozen that have cropped up. – Jonesey95 (talk) 00:59, 4 August 2015 (UTC)
- Support. I think we should remove support for
- Yeah, I just ran Monkbot task 1 and it made so 60 edits so I agree that we can kill
|month=
. I don't know if we need a separate thread to advertise that|month=
is going to be killed. Certainly a post at User talk:ProveIt GT is in order – as I understand it, that tool is still emitting|month=
.
- Yeah, I just ran Monkbot task 1 and it made so 60 edits so I agree that we can kill
- Two requests have been posted at the ProveIt talk page in the past couple of years. A bug report has also been filed at its Github site. I went to the Github site and attempted to submit a code change proposal, but I don't really know what I'm doing there, so I don't know if it will work. That's probably enough notice for ProveIt. – Jonesey95 (talk) 13:39, 4 August 2015 (UTC)
- Some how, when we deprecated and removed the mixed case parameter names, we missed
|PPrefix=
. This parameter is, according to an insource search, not used so I will remove it.
I have deactivated the above named parameters. These citations are here to show that they are deactivated and that the changes necessary to deactivation did not break anything.
- Last, FM; Last2, FM. Title.
{{cite book}}
: Unknown parameter|authorformat=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM; Last2, FM. Title.
{{cite book}}
: Unknown parameter|author-format=
ignored (help)CS1 maint: numeric names: authors list (link) - Last2, FM. Last, FM (ed.). Title.
{{cite book}}
: Missing|author1=
(help); Unknown parameter|editorformat=
ignored (help)CS1 maint: numeric names: authors list (link) - Last2, FM. Last, FM (ed.). Title.
{{cite book}}
: Missing|author1=
(help); Unknown parameter|editor-format=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM; Last2, FM. Title.
{{cite book}}
: Unknown parameter|separator=
ignored (help)CS1 maint: numeric names: authors list (link) - Title.
{{cite book}}
: Unknown parameter|Author2=
ignored (|author2=
suggested) (help); Unknown parameter|Author=
ignored (|author=
suggested) (help) - Title.
{{cite book}}
: Unknown parameter|Editor2=
ignored (|editor2=
suggested) (help); Unknown parameter|Editor=
ignored (|editor=
suggested) (help) - Title.
{{cite book}}
: Unknown parameter|EditorGiven2=
ignored (help); Unknown parameter|EditorGiven=
ignored (|editor-given=
suggested) (help); Unknown parameter|EditorSurname2=
ignored (help); Unknown parameter|EditorSurname=
ignored (|editor-surname=
suggested) (help) - Last, FM; Last2, FM. Title.
{{cite book}}
: Unknown parameter|author-separator=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM; Last2, FM. Title.
{{cite book}}
: Unknown parameter|author-name-separator=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM; Last2, FM. Title.
{{cite book}}
: Unknown parameter|editor-separator=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM; Last2, FM. Title.
{{cite book}}
: Unknown parameter|editor-name-separator=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM; Last2, FM. Title.
{{cite book}}
: Unknown parameter|name-separator=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM; Last2, FM. Title.
{{cite book}}
: Unknown parameter|PPrefix=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM; Last2, FM. "Chapter". Title.
{{cite book}}
: Unknown parameter|chapterlink=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM; Last2, FM. "Chapter". Title.
{{cite book}}
: Unknown parameter|chapter-link=
ignored (help)CS1 maint: numeric names: authors list (link) - Last, FM (1963). Title.
{{cite book}}
: Unknown parameter|month=
ignored (help) - Last, FM. Title.
{{cite book}}
: Unknown parameter|began=
ignored (|date=
suggested) (help); Unknown parameter|ended=
ignored (|date=
suggested) (help)- tests to prove that removing
|began=
/|ended=
did not break these:- Last, FM (1963). Title (published 10 October 1963).
- Last, FM (10 October 1963). Title.
- Last, FM (1963). Title (published 10 October 1963).
- tests to prove that removing
While not a result of this deactivation, the tests for |EditorGiven2=
and |EditorSurname2=
do show that the suggestion code doesn't support enumerated parameters. I've added that to Feature requests.
—Trappist the monk (talk) 15:20, 6 August 2015 (UTC)
Erroneous maintenance warning
I'm afraid that the error checking is treating |edition=Updated
as an error. I imagine we need to check for /\b[Ee]d\W*$/
or whatever in the regular expression (or whatever). Please see this edit which showed the problem. --Mirokado (talk) 22:49, 5 August 2015 (UTC)
- This has been fixed in the sandbox. See Help_talk:Citation_Style_1#extra_text_in_.7Cedition.3D_detection_bug and Help_talk:Citation_Style_1#.22Revised.22_in_edition_parameter_is_triggering_maintenance.
- —Trappist the monk (talk) 23:00, 5 August 2015 (UTC)
- Thanks, I didn't notice the other sections. --Mirokado (talk) 12:47, 6 August 2015 (UTC)
Minor bug in Template:Cite book
It's no longer properly supporting the |work=
parameter:
Thor, A. U. (2015). "My First Chapter". {{cite book}}
: |work=
ignored (help); Missing or empty |title=
(help)
While it displays |work=
as an alias of |title=
, the missing title routine fails to do so.
This obviously impedes correction of misuse of {{Cite journal}}
and {{Cite web}}
for books. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 23:53, 5 August 2015 (UTC)
- Back in the old days of
{{citation/core}}
,|work=
and its aliases were ignored by{{cite book}}
.
|title=
has no aliases.
- Whatever content is contained in
|work=
in{{cite book}}
is not passed on to the metadata because there is no place for it
- Perhaps,
|work=
and its aliases should again be ignored for{{cite book}}
and perhaps other cs1 templates
- Need to do the opposite, since having
|work=
not function for this and some other templatesobviously impedes correction of misuse of
— SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 17:12, 6 August 2015 (UTC){{Cite journal}}
and{{Cite web}}
for books.- Use
{{cite encyclopedia}}
instead, with the same parameters: Thor, A. U. (2015). "My First Chapter".{{cite encyclopedia}}
:|work=
ignored (help); Missing or empty|title=
(help) --Redrose64 (talk) 19:10, 6 August 2015 (UTC)- Yet another "use the wrong template, which someone else will just revert later" non-solution. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 03:17, 7 August 2015 (UTC)
- Use
- Need to do the opposite, since having
another missed capitalized parameter
|Ref=
escaped the purge. Until now. I have deprecated it for reasons of non-standard capitalization.
—Trappist the monk (talk) 00:08, 8 August 2015 (UTC)
Suggestion to expand CS1 maint: Extra text to editor fields
Have you considered expanding Category:CS1 maint: Extra text to identify when some form of "ed." is in an |editor=
field? For an example, see Template:Animal Burnie. GoingBatty (talk) 02:15, 8 August 2015 (UTC)
- May also be worth looking in the
|author=
fields to track when the wrong field has been used for editors. Keith D (talk) 11:11, 8 August 2015 (UTC)
- Yes, but not enough to figure out how to do it. The addition of editor descriptor text is quite common in author parameters; I've found quite a lot of them while trolling through Category:Pages containing cite templates with deprecated parameters.
- The other 'extra' text in your example is the ampersand:
|editor=David Burnie & Don E. Wilson (eds)
- singular parameter name, multiple editors. There is a whole iceberg there in both
|author=
and|editor=
parameters.
- cs1|2 give conflicting instruction to editors. On the one hand they are instructed to leave out extraneous text but on the other hand to add extra text;
|credits=
and|others=
come to mind. It is the purpose of the templates to add standardized text to the rendering and pass the names to the metadata. It is very difficult to extract single names from a list of multiple names when the list has no rules – it's the rules that make|vauthors=
possible.
- Yeak, ok, I'm done ranting ...
extra text in |edition= detection bug
There is a bug in the extra text detector. The current detector was intended to find |edition=2nd ed.
which would render as
But, it also finds the 'ed' at the end of illustrated, revised, etc:
- Title (revised ed.).
So, I've adjusted the test:
- Title (2nd ed. ed.).
{{cite book}}
:|edition=
has extra text (help) – should find 'ed.' - Title (revised ed.). – should not find 'ed'
—Trappist the monk (talk) 11:38, 25 July 2015 (UTC)
- I'm still seeing the error raised with "revised":
{{Cite book|authorlink=Maynard Solomon|last=Solomon|first=Maynard|title=Beethoven|edition=2nd revised|location=New York|publisher=Schirmer Books|year=2001|isbn=0-8256-7268-6}}
:- Solomon, Maynard (2001). Beethoven (2nd revised ed.). New York: Schirmer Books. ISBN 0-8256-7268-6. <-- shows "CS1 maint: Extra text (link)"
- but not in {{Cite book/new}}:
- Solomon, Maynard (2001). Beethoven (2nd revised ed.). New York: Schirmer Books. ISBN 0-8256-7268-6.
- Any reason why {{Cite book/new}} cannot be deployed? -- Michael Bednarek (talk) 13:42, 9 August 2015 (UTC)
{{cite book/new}}
is the same as{{cite book}}
except that it uses the sandbox version of Module:Citation/CS1. Because every change to the live module dumps a couple of million articles on the job queue, we collect multiple changes in the sandbox before updating the live module.
AWB or bot opportunity to fix 1000+ missing author errors
There are over 1,000 (around 1,200, I think) articles on towns in India that have citations with a |first=
but no |last=
. I have changed a few hundred of these from |first=
to |publisher=
, but my fingers are getting tired. If someone with AWB or some nice bot code wants to have a go at them, do a search for this:
insource:/\|first=Registrar General...Census Commissioner, India/
Here is a sample change.
If it would help to have a list of these article titles, let me know, and I'll compile one. – Jonesey95 (talk) 20:10, 9 August 2015 (UTC)
- Note that since the most recent edit to the CS1 module, these citations with a
|first=
but no|last=
no longer generate a missing author error. The example article you give no longer shows a missing author error if you look at the revision[12] immediately before your edit. The count of articles populating Category:CS1 errors: missing author or editor has dropped precipitously since the recent edit to the CS1 module, from almost 9000 articles to a current count of roughly 1300. Stamptrader (talk) 00:22, 10 August 2015 (UTC)
- Fixed in the sandbox. See Missing author without error message
- —Trappist the monk (talk) 00:28, 10 August 2015 (UTC)
- True, but these are definitely errors, and they are all of the same type, so a script or bot should be able to fix them quickly and easily. – Jonesey95 (talk) 03:34, 10 August 2015 (UTC)
- —Trappist the monk (talk) 00:28, 10 August 2015 (UTC)
DOI throwing an error
The DOI found here is not accepted by the DOI checking code called by {{Cite journal}}
. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 16:54, 10 August 2015 (UTC)
- (Edit conflict: Trappist, you accidentally removed my earlier comment.)
- Looks ok to me: Pérez-García, Alejandro; Romero, Diego; Fernández-Ortuño, Dolores; López-Ruiz, Francisco; De Vicente, Antonio; Torés, Juan A. (2009). "The powdery mildew fungus Podosphaera fusca (synonym Podosphaera xanthii), a constant threat to cucurbits". Molecular Plant Pathology. 10 (2): 153–160. doi:10.1111/j.1364-3703.2008.00527.x. Maybe you're incorrectly including the period that pubmed puts after it? —David Eppstein (talk) 17:04, 10 August 2015 (UTC)
- Not intentionally.
- Don't include the terminal period that PubMed includes:
- "Title". Journal. doi:10.1111/j.1364-3703.2008.00527.x.
{{cite journal}}
: Check|doi=
value (help)
- "Title". Journal. doi:10.1111/j.1364-3703.2008.00527.x.
- The doi checking code looks for a terminal comma or period. If one of those is found, the code emits the error message. Was the help text insufficient to the task?
- @David: Ah, yeah, that would be it. Derp. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 17:07, 10 August 2015 (UTC)
- @Trappist: Yeah, it says "Check
|doi=
value (help)", and I looked at the help but somehow did not see "does not end with punctuation". Total PEBCAK on my part. Time for coffee. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 17:30, 10 August 2015 (UTC)
vancouver errors
From AKAP12 this cite:
{{cite journal | vauthors = Lin F, Wang Hy, Malbon CC | title = Gravin-mediated formation of signaling complexes in beta 2-adrenergic receptor desensitization and resensitization | journal = J. Biol. Chem. | volume = 275 | issue = 25 | pages = 19025–34 | year = 2000 | pmid = 10858453 | doi = 10.1074/jbc.275.25.19025 }}
- Lin F, Wang Hy, Malbon CH (2000). "Gravin-mediated formation of signaling complexes in beta 2-adrenergic receptor desensitization and resensitization". J. Biol. Chem. 275 (25): 19025–34. doi:10.1074/jbc.275.25.19025. PMID 10858453.
{{cite journal}}
: Vancouver style error: name in name 2 (help)CS1 maint: unflagged free DOI (link)
- Lin F, Wang Hy, Malbon CH (2000). "Gravin-mediated formation of signaling complexes in beta 2-adrenergic receptor desensitization and resensitization". J. Biol. Chem. 275 (25): 19025–34. doi:10.1074/jbc.275.25.19025. PMID 10858453.
The error occurs because the second author includes a lowercase initial. The author's name, according to the doi link is Hsien-yu Wang.
According to Citing Medicine: The NLM Style Guide for Authors, Editors, and Publishers surnames are listed first followed by one or two uppercase initials. In this case, because the author is Asian, Hsien-yu is the surname and Wang the given name. Has PubMed got it wrong?
What advice should be given at Vancouver style error to editors who encounter this sort of error?
—Trappist the monk (talk) 15:37, 10 August 2015 (UTC)
- Few editors follow this page. You might to better to ask at the humanities reference desk about how asian authors shorten their name when using the Roman alphabet. Then there is the additional problem of how journals that use Vancouver style shorten the names of asian authors, which could be different. Jc3s5h (talk) 16:19, 10 August 2015 (UTC)
@Trappist the monk: It's also unlikely that the order given is wrong. Chinese names in the form Foo-bar are usually given names, so a Western source would be likely to call this person Hsien-yu Wang, who would be Wang Hsien-yu at home, and the proper family-name-first version in the Western bibliographic style is Wang, Hsien-yu. The "Foo-bar" convention is not universal, and the same name will often be rendered "Foo-Bar", and sometimes "Foo Bar" or even "Foobar", depending on how sources treat Chinese names in latin script. I encounter this issue a lot in cue sports writing, since China fields many players of pool, snooker, and carom billiards. "Foo-bar" seems to be something of a spreading convention, but it may vary geographically (you have Taiwan, Hong Kong, Macau, and Singapore to factor in, plus Chinese diaspora in the US, etc., and it's highly unlikely they're all converging on exactly the same format). Anyway, the point being you can get away with "Wang HY". — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 17:05, 10 August 2015 (UTC)
- Even western authors with hyphenated names should sometimes have the second part of the name included in the initials. And sometimes the correct initials really do include lower-case letters. I have a Belgian co-author named Jean-Claude who insists that the correct abbreviation of his name is J.-Cl. On the other hand I know a Japanese author named Ken-ichi who wants his name abbreviated K. rather than K.-I. or K.-i. My general feeling is that any attempt to automatically deduce how to rearrange human names is doomed to at least occasional failure (as usual, see "Falsehoods Programmers Believe About Names") so it is essential that there be some workaround that we can use when the machines get it wrong. In this case, "Hy" is the correct Vancouver initialization and there should be some way of persuading the template to allow it. —David Eppstein (talk) 17:21, 10 August 2015 (UTC)
- Agreed. – S.McC.
PS: I wasn't meaning to imply "do the wrong thing to make the template happy", but rather that since the name is a transliteration anyway, in a style that's not used consistently, that it might not matter in this case. There are Europeans who abbreviate names like Christophe as "Ch.", so my lackadaisicalness on this wouldn't help them. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 17:37, 10 August 2015 (UTC)
- Agreed. – S.McC.
- The rules for Vancouver system author name lists prohibit hyphens in the given name initials, see: Given names containing punctuation, a prefix, a preposition, or particle. The error mentioned at the start of this conversation is not the result of an
attempt to automatically deduce how to rearrange [a] human name
, but arises because Module:Citation/CS1 cannot know if the lowercase 'y' is intentionally lowercase (cases like this or as the result of Romanization: Θ → Th) or a typo. The error can be suppressed after review by treating the name as an institutional name:|vauthors=Lin F, ((Wang Hy)), Malbon CC
- The rules for Vancouver system author name lists prohibit hyphens in the given name initials, see: Given names containing punctuation, a prefix, a preposition, or particle. The error mentioned at the start of this conversation is not the result of an
How to cite letter in CS1?
I would like to cite the letter found here. The hard copy of the letter appears to be held by the National Archives and Records Administration (NARA) in a box titled "HSCA Segregated CIA Collection, Box 19", and they appear to refer to the letter as "NARA Record Number: 1993.08.02.09:31:14:370053". If I use {{cite letter}}
, then...
- {{cite letter |first=Sturgis |last=Frank |recipient=Gene Wilson |subject=Pre-freedom of information request notice of charges |date=May 7, 1976 |url=http://www.maryferrell.org/showDoc.html?docId=76999 |accessdate=August 11, 2015}}
...gives me...
- Frank, Sturgis (May 7, 1976). "Pre-freedom of information request notice of charges". Letter to Gene Wilson. Retrieved August 11, 2015.
Unfortunately, with the above template I don't believe I am able to note additional information about where this original document may be found, such as the |id=
noted above. Is there something similar in CS1 that I can use? If so, what is the equivalent of |recipient=
in CS1? Also, should |title=
be "Letter from Frank Sturgis to Gene Wilson" or the subject noted by the author, and NARA, as "Pre-freedom of information request notice of charges"? Sorry for so many questions. Thanks! - Location (talk) 20:29, 12 August 2015 (UTC)
- Try:
- {{cite letter |first=Sturgis |last=Frank |recipient=Gene Wilson |subject=Pre-freedom of information request notice of charges |date=May 7, 1976 |url=http://www.maryferrell.org/showDoc.html?docId=76999 |accessdate=August 11, 2015 |via= National Archives and Records Administration (HSCA Segregated CIA Collection, Box 19) |id= NARA Record Number 1993.08.02.09:31:14:370053 }}
- which gives:
- Frank, Sturgis (May 7, 1976). "Pre-freedom of information request notice of charges". Letter to Gene Wilson. NARA Record Number 1993.08.02.09:31:14:370053. Retrieved August 11, 2015 – via National Archives and Records Administration (HSCA Segregated CIA Collection, Box 19).
- I just added
|id=
to the template, and|via=
was already there. Imzadi 1979 → 20:51, 12 August 2015 (UTC)
- Are you citing the hard copy? Have you actually seen the hard copy? If not, and you are citing the copy at the Mary Ferrell Foundation website, then the direct cs1 equivalent to
{{cite letter}}
would be{{cite web}}
(WP:SAYWHEREYOUGOTIT applies). It should be noted that{{cite letter}}
is a meta-template of{{cite news}}
. Such a citation might look like this:
{{cite web |last=Sturgis |first=Frank |title=Pre-freedom of information request notice of charges |type=Letter to Gene Wilson |website=Mary Ferrell Foundation |date=May 7, 1976 |url=http://www.maryferrell.org/showDoc.html?docId=76999 |accessdate=August 11, 2015}}
- Sturgis, Frank (May 7, 1976). "Pre-freedom of information request notice of charges". Mary Ferrell Foundation (Letter to Gene Wilson). Retrieved August 11, 2015.
- In your example,
|last=
and|first=
are swapped; the writer's name if 'Frank Sturgis'.
- —Trappist the monk (talk) 21:01, 12 August 2015 (UTC)
- Imzadi1979, Trappist the monk: Thanks for the feedback! - Location (talk) 22:49, 13 August 2015 (UTC)
I think the advice to use {{cite web}} instead of a more specific citation type for a source found on the web rather than through hardcopy is wrongheaded. When we find books online through Google books, we should use {{cite book}}, not {{cite web}}. When we find academic journal articles online at their official publisher's online repository, we should use {{cite journal}}, not {{cite web}}, even for journals that have no print edition and are only online. And for the same reason, if we are viewing a facsimile of a written letter, we should still use {{cite letter}}. —David Eppstein (talk) 23:51, 13 August 2015 (UTC)
- Yes, this is why the
|url=
parameter is not confined to{{cite web}}
but is included in all the others. --Redrose64 (talk) 12:12, 14 August 2015 (UTC)
error handling for parameters with defined values
As the result of a conversation elsewhere, I have added a function is_valid_parameter_value()
that checks a parameter's value against a list of accepted values. If the parameter value is not a member of the accepted list, the function emits an invalid parameter error. There is code in the current live module that detects these kinds of errors for |mde=
and |name-list-format=
. This new code extends that functionality to several other parameters.
|nopp=
- accepted values are 'yes', 'true', 'y'
- Title: nopp=y. pp. 45-46.
{{cite book}}
:|page=
has extra text (help); Unknown parameter|nopp=
ignored (|no-pp=
suggested) (help) - Title: nopp=true. pp. 45-46.
{{cite book}}
:|page=
has extra text (help); Unknown parameter|nopp=
ignored (|no-pp=
suggested) (help) - Title: nopp=yes. pp. 45-46.
{{cite book}}
:|page=
has extra text (help); Unknown parameter|nopp=
ignored (|no-pp=
suggested) (help) - Title: nopp=1. p. pp. 45-46.
{{cite book}}
:|page=
has extra text (help); Invalid|nopp=1
(help); Unknown parameter|nopp=
ignored (|no-pp=
suggested) (help)
- Title: nopp=y. pp. 45-46.
|name-list-format=
- accepted value is 'vanc'
|mode=
– accepted values are 'cs1', 'cs2'-
- Last, Fred George; Laster, A. B.; Lastest, First. Title: mode=cs1.
{{citation}}
: Missing pipe in:|title=
(help) - Last, Fred George; Laster, A. B.; Lastest, First, Title: mode=cs2
{{cite book}}
: Missing pipe in:|title=
(help) - Last, Fred George; Laster, A. B.; Lastest, First. Title: mode=cs3.
{{cite book}}
: Invalid|mode=cs3
(help); Missing pipe in:|title=
(help)
- Last, Fred George; Laster, A. B.; Lastest, First. Title: mode=cs1.
|dead-url=
- accepted values are 'yes', 'true', 'y', 'no'
- "Title: dead-url=y". Archived from the original on 2015-08-07.
{{cite web}}
: Unknown parameter|dead-url=
ignored (|url-status=
suggested) (help) - "Title: dead-url=true". Archived from the original on 2015-08-07.
{{cite web}}
: Unknown parameter|dead-url=
ignored (|url-status=
suggested) (help) - "Title: dead-url=yes". Archived from the original on 2015-08-07.
{{cite web}}
: Unknown parameter|dead-url=
ignored (|url-status=
suggested) (help) - "Title: dead-url=no". Archived from the original on 2015-08-07.
{{cite web}}
: Unknown parameter|dead-url=
ignored (|url-status=
suggested) (help) - "Title: dead-url=f". Archived from the original on 2015-08-07.
{{cite web}}
: Unknown parameter|dead-url=
ignored (|url-status=
suggested) (help)
- "Title: dead-url=y". Archived from the original on 2015-08-07.
|subscription=
- accepted values are 'yes', 'true', 'y'
- Title: subscription=y.
{{cite book}}
: Unknown parameter|subscription=
ignored (|url-access=
suggested) (help) - Title: subscription=true.
{{cite book}}
: Unknown parameter|subscription=
ignored (|url-access=
suggested) (help) - Title: subscription=yes.
{{cite book}}
: Unknown parameter|subscription=
ignored (|url-access=
suggested) (help) - Title: subscription=1.
{{cite book}}
: Unknown parameter|subscription=
ignored (|url-access=
suggested) (help)
- Title: subscription=y.
|registration=
- accepted values are 'yes', 'true', 'y'
- Title: registration=y.
{{cite book}}
: Unknown parameter|registration=
ignored (|url-access=
suggested) (help) - Title: registration=true.
{{cite book}}
: Unknown parameter|registration=
ignored (|url-access=
suggested) (help) - Title: registration=yes.
{{cite book}}
: Unknown parameter|registration=
ignored (|url-access=
suggested) (help) - Title: registration=1.
{{cite book}}
: Unknown parameter|registration=
ignored (|url-access=
suggested) (help)
- Title: registration=y.
Have I missed any others? —Trappist the monk (talk) 17:11, 7 August 2015 (UTC)
- I did:
|ignore-isbn-error=
- accepted values are 'yes', 'true', 'y'
- Title: ignore-isbn-error=y. ISBN 1234567890.
{{cite book}}
: Check|isbn=
value: checksum (help); Unknown parameter|ignore-isbn-error=
ignored (|isbn=
suggested) (help) - Title: ignore-isbn-error=true. ISBN 1234567890.
{{cite book}}
: Check|isbn=
value: checksum (help); Unknown parameter|ignore-isbn-error=
ignored (|isbn=
suggested) (help) - Title: ignore-isbn-error=yes. ISBN 1234567890.
{{cite book}}
: Check|isbn=
value: checksum (help); Unknown parameter|ignore-isbn-error=
ignored (|isbn=
suggested) (help) - Title: ignore-isbn-error=1. ISBN 1234567890.
{{cite book}}
: Check|isbn=
value: checksum (help); Unknown parameter|ignore-isbn-error=
ignored (|isbn=
suggested) (help)
- Title: ignore-isbn-error=y. ISBN 1234567890.
|no-tracking=
- accepted values are 'yes', 'true', 'y'
- Title: no-tracking=y.
{{cite book}}
: Missing pipe in:|title=
(help) - Title: no-tracking=true.
{{cite book}}
: Missing pipe in:|title=
(help) - Title: no-tracking=yes.
{{cite book}}
: Missing pipe in:|title=
(help) - Title: no-tracking=1.
{{cite book}}
: Invalid|no-tracking=1
(help); Missing pipe in:|title=
(help)
- Title: no-tracking=y.
- —Trappist the monk (talk) 17:43, 7 August 2015 (UTC)
- and another:
|last-author-amp=
- accepted values are 'yes', 'true', 'y'
- Title: last-author-amp=y.
- Title: last-author-amp=true.
- Title: last-author-amp=yes.
- Title: last-author-amp=1.
- —Trappist the monk (talk) 14:46, 10 August 2015 (UTC)
- I've created a table of keywords in Module:Citation/CS1/Configuration/sandbox so that the keywords can be defined and the same reused; 'yes, true, y' is used for several parameters – no need to keep separate lists.
- —Trappist the monk (talk) 17:19, 15 August 2015 (UTC)
- Why reinvent the wheel, when we have
{{yesno}}
? --Redrose64 (talk) 17:34, 15 August 2015 (UTC)- template vs module.
- —Trappist the monk (talk) 17:39, 15 August 2015 (UTC)
- Module:Yesno does exist. My concern using it in general would be that in a number of cases we don't have a boolean consideration (e.g. yes v. no) but instead an enumerated comparison. --Izno (talk) 19:02, 15 August 2015 (UTC)
- Why reinvent the wheel, when we have
|script-chapter=
Following up on this conversation, I've added |script-chapter=
. Styling and order of rendered chapter parts follows the same rules as |script-title=
:
{{cite book/new |title=Tōkyō tawā |script-title=ja:東京タワー |trans-title=Tokyo Tower}}
- Tōkyō tawā 東京タワー [Tokyo Tower].
Here are those same parameter values moved to their chapter equivalents:
{{cite book/new |title=Title |chapter=Tōkyō tawā |script-chapter=ja:東京タワー |trans-chapter=Tokyo Tower}}
- "Tōkyō tawā" 東京タワー [Tokyo Tower]. Title.
and with a link:
{{cite book/new |title=Title |chapter=Tōkyō tawā |script-chapter=ja:東京タワー |trans-chapter=Tokyo Tower |chapter-url=//example.com}}
- "Tōkyō tawā" 東京タワー [Tokyo Tower]. Title.
I wonder if the |script-chapter=
value should be quoted when rendered especially in the case where the template also has |script-title=
without |title=
:
{{cite book/new |script-title=ja:東京タワー |script-chapter=ja:東京タワー}}
- 東京タワー. 東京タワー.
Still to do: include |script-chapter=
value in the metadata; support |script-title=
and |script-chapter=
in {{cite encyclopedia}}
and {{cite episode}}
.
—Trappist the monk (talk) 11:37, 15 August 2015 (UTC)
- Metadata support added,
{{cite episode}}
code tweaked which resolves this issue, and{{cite encyclopedia}}
code tweaked which resolves this issue.
time to abandon protocol relative urls for the predefined identifiers?
There is a move afoot to replace http:// and relative protocol (//) with https: for certain urls in article space and in |url=
in citations. These replacements mostly involve Google, YouTube, and Internet Archive. In September 2013, Module:Citation/CS1 converted all of the identifier urls that could be converted to relative protocol. That was a time when logged-in users used https: but users who weren't logged in used http:. Since then, Wikimedia has migrated everyone to using https:. Part of the reason for the module's switch to protocol relative urls was to prevent switching back and forth from secure (at Wikipedia) to not-secure (the identifier's site).
It appears that all but two of the predefined identifiers supported by the module and that use external links can be accessed using https:. The two that cannot be accessed are bibcode and LCCN. Here is a list of the identifiers with the various flavors of url:
- ARXIV :
- ASIN :
- BIBCODE :
- DOI :
- ISSN :
- JFM :
- JSTOR :
- LCCN :
- http://lccn.loc.gov/sn2006058112
- https://lccn.loc.gov/sn2006058112 – does not work
- //lccn.loc.gov/sn2006058112 – does not work
- MR :
- OCLC :
- OL
- OSTI :
- PMC :
- PMID :
- RFC :
- SSRN :
- ZBL :
Is there any need to continue to support protocol relative urls for these identifiers?
—Trappist the monk (talk) 22:41, 15 August 2015 (UTC)
- If everyone is using https, then protocol-relative links would use https also. Why change
//
tohttps://
? It seems like another source of potential typos and errors. – Jonesey95 (talk) 00:34, 16 August 2015 (UTC) - Then for bibcode and lccn, we make sure that all links are explicitly http: - since the rest are all working in each available method, we leave these links alone. --Redrose64 (talk) 08:04, 16 August 2015 (UTC)
- You can't be here (on Wikipedia) without your browser supports an https: connection. If the identifier sites support an https: connection (and all do except bibcode and LCCN) then there is no need for us to support the protocol relative scheme. For identifiers, editors don't have to type a url so I'm not clear on how this change would be a source of typos and errors. Can you expand on that?
- —Trappist the monk (talk) 12:45, 17 August 2015 (UTC)
- So the "https:" would be added by the module only for the identifiers linked above? In that case, I'm fine with that. The first sentence of this section made it sound like we were going to go around replacing "//" with "https:", which sounded unnecessary and potentially harmful.
- —Trappist the monk (talk) 12:45, 17 August 2015 (UTC)
- Again, though, if it's not currently broken, I don't see why we should fix it. If it is broken in some way that I do not understand, I'll go along with it. – Jonesey95 (talk) 14:47, 17 August 2015 (UTC)
- One conversation about changing http: to https: is here. We change lots of stuff that isn't 'broken' for a variety of reasons. This is just another of those.