Help talk:Citation Style 1/Archive 69
Cite book Harv warning
Initial conversationCite book has started giving a harv error message even when ref=harv has not been added. E.g.
It only did this before with the citation template. Many articles use this template without ref=harv, and they are all suddenly giving error messages, which is ugly and distracting. If it carries on I will have to turn off the harv warnings, but then I will not be warned when I am using ref=harv and I make a mistake. What is the position? Dudley Miles (talk) 21:54, 18 April 2020 (UTC)
Sorry I'm late, I posted the following at Template talk:Citation, and I appreciate much of this has been said and argued over already: "This week, for the first time ever that I know of, ordinary {{cite web| ... and {{cite new| ... and probably other such templates are suddenly displaying warnings like
This type of message used to occur, helpfully, only when there was an explicit Harvard parameter indicating that links were expected: ... |ref=harv }] That was useful as one normally only put the harv indicator in when the plan was to insert inline citations in the text, and missing one was obviously a problem. Now, however, the error occurs WITHOUT the ref=harv parameter! This makes no sense: it causes an error if any citation is listed in a bibliography or further reading, and worse, if citations are listed inside an inline ref tag --- it seems to happen from the third citation onwards --- there is a fine specimen at K. Pattabhi Jois, and there is no visible means of suppressing the errors. This makes checking for ACTUAL errors much more difficult, as false positive "errors" are displayed all over. Would be glad if the status quo could be resumed, please." Chiswick Chap (talk) 12:18, 21 April 2020 (UTC)
Sorry to join in with this late. Looking at this from a different angle, automatically adding harv anchors to every cite template not immediately proceeded by a <ref> tag is adding unnecessary html to the page when parsed. Whilst this isn't a problem with only a few instances on the page, on certain pages with maybe 50 "Further reading" links, this will add a significant overhead to the html (which could be problematic on older mobiles). When the page is parsed to html, the harv anchors become html anchors with an id equal to the CITEREF anchor. In html, id's must be unique. When we had to add anchors manually, where we cite the same author with several publications in the same year we differentiate the anchors eg Smith 1990a; Smith 1990b; Smith 1990c; etc. Automatically adding the anchors, would in the above case give 3 anchors with an id of "Smith 1990", causing non-compliant html. This probably isn't a problem most of the time, but the worst case scenario would be the browser going into "quirks mode", stop rendering the page and then redraw the page once the html, css, javascript etc has finished downloading. Again, this is more likely to happen on mobiles. As 40 - 70% (dependent on who's figures you look at) of internet access is from mobiles, then how the site behaves on mobiles needs to be considered. Putting aside "errors" being shown up by scripts, we should be adding |ref=none to unused anchors to prevent html problems. --John B123 (talk) 16:05, 15 June 2020 (UTC)
Break@Trappist the monk:, can you point to where consensus was reached for this change? This was the situation before the change. When writing an article, we compile a list of long citations under "Works cited" and use short citations (sfn or harvnb) throughout the text. The short links to the long. If we include a long citation but don't use it, we see a red error message. This is very useful. What we might do at that point is move the unused reference into Further reading, and remove ref=harv. We do the same when compiling "Selected works" lists of publications. Then if we want to use the same long citation as a source again, we move it back into "Works cited" and add ref=harv; that allows us to restore an sfn citation. That flexibility has now disappeared, it seems. Either we get ugly error messages all the time in Further reading and Selected works, or we turn them off and don't get the ones we need. SarahSV (talk) 03:00, 21 April 2020 (UTC)
These two discussions—here and here—don't amount to consensus. The second is from 2018; the first is more recent but hardly anyone commented. You need strong consensus for a change that affects so many people. Can you explain about the broken anchors? (Your last point about equal footing means we've lost functionality/flexibility because CS1 and CS2 are now the same; that's not a benefit.) SarahSV (talk) 04:53, 21 April 2020 (UTC)
![]()
For the broken anchors, see Help talk:Citation Style 1/Archive 46#broken anchors, I've updated the archive to reflect the old behaviour. For consensus, it's a pretty strong one. This fixes tens of thousands of broken anchors, putting CS1 and CS2 on par with each other, thus allowing for greater flexibility in the choice of CS1 and CS2 styles with an increased user-friendliness. That this reduces the usefulness of an opt-in, optional script used by about 200 active editors is not much of an argument compared to the benefits this brings to everyone else. Headbomb {t · c · p · b} 05:28, 21 April 2020 (UTC)
Re. "You could also ask ... at WP:SCRIPTREQ ..." – anyhow, I posted a place-holder request there (WP:SCRIPTREQ#HarvErrors.js), that is: inviting script-writing co-editors to come here to help determine what is feasible. I was thinking about placing an RfC at WP:VPT to determine whether the " ![]() This is what I see now in "Selected works" and "Further reading" sections that use {{cite book}}, {{cite news}}, etc. Dudley and Gerda, have you been able to find a solution yet? SarahSV (talk) 18:28, 21 April 2020 (UTC)
The addition of ref=harv to cite book was the way linked and unlinked sources were distinguished. Now that ref=harv has been made non-functional, there is no way a script can distinguish between cases where cite book is being used with anchors or intentionally without. Dudley Miles (talk) 20:00, 21 April 2020 (UTC)
Bot task related ideasCombining with Headbomb's suggestion at User talk:Citation bot/Archive_20#remove ref=harv, I see (for the time being) some possible tasks (please add more ideas worth considering if you think of any):
Ideas related to getting the HarvErrors script back on trackTwo solutions work for me to stop the wrong error message when cite book is used without harv referencing. 1. Adding "window.checkLinksToCitations = false;" to "importScript('User:Ucucha/HarvErrors.js');" 2. Replacing "importScript('User:Ucucha/HarvErrors.js');" with "importScript(David Eppstein/HarvErrors.js);". However, I have found a new problem. When cite book is used with ref=harv, I am getting an error message "CS1 maint: ref=harv (link)". Based on the comment of Trappist the monk above, this appears to be because CS1 has been changed to make harv referencing the default for cite templates, and give an error message for ref=harv on the ground that it is now redundant. Can I get rid of the wrong "CS1 maint: ref=harv (link)" error message by changing from CS1 to CS2, and if so how do I do that? Dudley Miles (talk) 09:30, 19 April 2020 (UTC)
Let's link this to policy: a WP:COSMETICBOT task, i.e. a bot performing cosmetic edits, is usually allowed if the WP:COSMETICBOT task is performed, in the same edit, with a substantial task. That does not make a WP:COSMETICBOT task a substantial task. Aligning citations with core content policies are, in contrast, substantial edits. A script that significantly assists with that is more important than whether or not a substantial edit has an appended cosmetic edit. The loss of perspective seems complete if you think that a cosmetic edit appended to a substantial edit is remotely as substantial as getting a script which has proven its usefulness for articles' WP:V compliance back on track. Trying to make policies say what they don't say is further illustration of that loss of perspective. --Francis Schonken (talk) 13:16, 20 April 2020 (UTC)
I have checked the three solutions suggested and I see that they all work, but with reduced functionality as they do not highlight unused sources. This is an important issue as in some cases citations have been deleted because the sources are not reliable, and in other cases the book should be in further reading to signal to readers that it may contain additional information not covered in the article. I hope this deficiency will be resolved in the future. Dudley Miles (talk) 14:58, 20 April 2020 (UTC)
"Ideas related to getting the HarvErrors script back on track" - how about putting it back how it was before the changes which were plainly made without consensus, and are certainly (judging by all the above) against consensus now? The hundreds of thousands of article-problems created would be seen from any rational standpoint as a powerful argument for reversion. Chiswick Chap (talk) 13:19, 21 April 2020 (UTC)
The cite book functionality has not be degraded, it has been upgraded. You can now use harvard/snf templates with it without having to worry about explicitly declaring
This fixed tens of thousand of broken footnotes everywhere on Wikipedia. It also makes the conversion of "manual" footnotes like
ExampleI never used HarvErrors.js. I do it all manually. Which can be a painstaking endeavour. Maybe if I'd used the script I'd have addressed this train-wreck of a "References" section (qualifying it WP:OVERREF is an understatement) a long time ago. CITEVAR issues regarding the article have been discussed on its talk page, e.g. here. So, anyone to take up this challenge, that is the challenge of cleaning up "References", "Further reading" etc of that article, with or without script assistance? I would like to get some feedback on how much difference the script (in its original and/or patched versions) makes in tackling such complex cases, and whether the task would have been easier before the "
Do we have a resolution to this issue yet? If a source is in the reference/bibliography/etc. section, it ought to be cited in the text, and the presence of warnings there that an anchor is not being used is a useful way to highlight the fact that the source either needs to be removed or shifted to a further reading section. Parsecboy (talk) 11:58, 24 April 2020 (UTC)
Removal of ref=harvThere was a discussion at User talk:Citation bot/Archive 20#remove ref=harv about removing "ref=harv", and there was no consensus. Despite this, Headbomb continues to do it with AWB, first from templates now from drafts. This makes it a Wikipedia:Fait accompli, and ignores that retaining ref=harv makes it less of a nuisance to add ref=none (assuming this change to the templates sticks). It concerns me how these discussions have been split across multiple pages. When I tried to open a central discussion at the PUMP, Kees08 closed it down; see the archived discussion. It means no one is keeping track of the objections and Headbomb can continue as if there is consensus. SarahSV (talk) 22:33, 29 April 2020 (UTC)
Headbomb continues to remove ref=harv. [1] Pinging RexxS because I don't know what else to do at this point. SarahSV (talk) 21:44, 7 May 2020 (UTC)
Problem
EpisodeWhen, and why, did
Request: Please make it so |
Wikitext | {{cite book
|
---|---|
Live | Fiennes, Celia (1888). Through England on a Side Saddle in the Time of William and Mary. London: Leadenhall Press. {{cite book}} : Check |author-link= value (help)
|
Sandbox | Fiennes, Celia (1888). Through England on a Side Saddle in the Time of William and Mary. London: Leadenhall Press. {{cite book}} : Check |author-link= value (help)
|
fixed in the sandbox;
—Trappist the monk (talk) 12:53, 22 July 2020 (UTC)
others prerequisites
In the Usage section is a table of parameters with some having prerequisites. It notes that the others parameter has a prerequisite of title, but it fails to note that the others parameter also has a prerequisite of last or author. I would fix it myself but I can't figure out where this is stored. —Anomalocaris (talk) 07:12, 22 July 2020 (UTC)
|others=
doesn't have that prerequisite, and shouldn't anyway, because some sources (such as signs and very short magazine articles) only credit certain roles such as illustrators or editors. In cases like those, the templates should absolutely not force editors to choose between guessing who wrote the material and not including any names at all. Glades12 (talk) 11:09, 22 July 2020 (UTC)- It indeed has (essentially) that prerequisite as indicated by the existence of Category:CS1 maint: others. --Izno (talk) 13:03, 22 July 2020 (UTC)
- I didn't know about that tracking category, but my point (that not all sources include their authors) still stands. Glades12 (talk) 14:35, 22 July 2020 (UTC)
- Sorry. I was commenting on Template:Cite AV media notes, and from that page I clicked "talk" and I assumed I was on Template talk:Cite AV media notes, but I'm actually here at Help talk:Citation Style 1. My comments relate to Template:Cite AV media notes, which really does have a table as I described. Glades12: Izno is correct. Using any of these templates with the others parameter without last or author parameter causes the article to be automatically placed in Category:CS1 maint: others, which is an error category. In the case of Template:Cite AV media notes, the intent is that the authoring parameter is for the author of the notes, not for the composer or the lyricist or librettist or musical performer. If someone does put the performing musician's name in the authoring parameter, the display looks OK but it's supplying incorrect metadata. A lot of phonograph records, cassettes and CDs come with media notes with no apparent author. For example, I'm looking now at the notes that came with a CBS Records 1987 CD, Mozart: The Flute Quartets (Jean-Pierre Rampal, Flute; Isaac Stern, Violin; Salvatore Accardo, Viola/Alto; Mstislav Rostroprovich, Cello). The notes are in English, German and French, without author, although the German does list the Übersetzung (translator). Most other record and CD notes also don't have a listed author. A page using the others parameter (for the four musicians, for example) would be placed in the error Category:CS1 maint: others. This is a mess that should be fixed somehow. —Anomalocaris (talk) 06:22, 23 July 2020 (UTC)
- "Using any of these templates with the others parameter without last or author parameter causes the article to be automatically placed in Category:CS1 maint: others, which is an error category." Nope. There's a distinction between CS1 tracking categories (prefixed with "CS1 maint") and error categories (prefixed with "CS1 errors"). Pages in the tracking categories may need to be edited for possible errors, while ones in the error categories certainly contain errors and should be edited in any case. Also, there was literally no way to know that you were talking about Cite AV media notes specifically; everything here implied that you were talking about all CS1 templates. Glades12 (talk) 06:39, 23 July 2020 (UTC)
- Sorry. I was commenting on Template:Cite AV media notes, and from that page I clicked "talk" and I assumed I was on Template talk:Cite AV media notes, but I'm actually here at Help talk:Citation Style 1. My comments relate to Template:Cite AV media notes, which really does have a table as I described. Glades12: Izno is correct. Using any of these templates with the others parameter without last or author parameter causes the article to be automatically placed in Category:CS1 maint: others, which is an error category. In the case of Template:Cite AV media notes, the intent is that the authoring parameter is for the author of the notes, not for the composer or the lyricist or librettist or musical performer. If someone does put the performing musician's name in the authoring parameter, the display looks OK but it's supplying incorrect metadata. A lot of phonograph records, cassettes and CDs come with media notes with no apparent author. For example, I'm looking now at the notes that came with a CBS Records 1987 CD, Mozart: The Flute Quartets (Jean-Pierre Rampal, Flute; Isaac Stern, Violin; Salvatore Accardo, Viola/Alto; Mstislav Rostroprovich, Cello). The notes are in English, German and French, without author, although the German does list the Übersetzung (translator). Most other record and CD notes also don't have a listed author. A page using the others parameter (for the four musicians, for example) would be placed in the error Category:CS1 maint: others. This is a mess that should be fixed somehow. —Anomalocaris (talk) 06:22, 23 July 2020 (UTC)
- I didn't know about that tracking category, but my point (that not all sources include their authors) still stands. Glades12 (talk) 14:35, 22 July 2020 (UTC)
- It indeed has (essentially) that prerequisite as indicated by the existence of Category:CS1 maint: others. --Izno (talk) 13:03, 22 July 2020 (UTC)
|title-link=
prerequisite at{{cite AV media notes}}
was misplaced; fixed now.- —Trappist the monk (talk) 09:59, 23 July 2020 (UTC)
- Glades12: You're right, there was no way to know I was talking about Template:Cite AV media notes. As I explained, when I made my initial post here, I didn't realize I wasn't on Template talk:Cite AV media notes. I apologize for failing to note in my initial posting that I was talking about Template:Cite AV media notes. That's why I noted it as soon as I realized the issue.
- Trappist the monk: You have removed all prerequisites from the others parameter, was this intentional?
- Anyone interested: The subcategories of Category:CS1 maintenance may not be error categories, but many if not most of them seem to be de facto error categories. For example, Category:CS1 maint: archived copy as title and Category:CS1 maint: ASIN uses ISBN are de facto error categories. I don't believe I am the only Wikipedian who has assumed that if an a page is listed in any subcategory of Category:CS1 maintenance, it should be edited to coax the page out of the subcategory. I know there are Wikipedians who comb through these categories and fix things; within the past week or so, Category:CS1 maint: unrecognized language had about 350 articles, and over the course of about two days, I saw the number drop to 42, and I checked the history of some articles that had been in the category and I saw that one or more editors were fixing the language parameter. Let us compare the error category Category:CS1 errors: URL–wikilink conflict to the non-error category Category:CS1 maint: others.
-
- Category:CS1 errors: URL–wikilink conflict: This is a tracking category for CS1 citations that have wikilinks embedded in
|title=
,|chapter=
,|article=
, or|booktitle=
, etc. while also specifying a URL for that element. - Category:CS1 maint: others: This is a tracking category for CS1 citations that use
|others=
without also using|author=
or|editor=
or any of their aliases.|others=
is provided to record other (secondary) contributors to the cited source. Articles are listed in this category when Module:Citation/CS1 identifies a template that does not identify primary contributors....
- Category:CS1 errors: URL–wikilink conflict: This is a tracking category for CS1 citations that have wikilinks embedded in
- So both categories claim to be tracking categories, but to the Wikipedia priesthood, one of them is an an error category and the other is not. I have been editing Wikipedia for over 15 years and I am in the top 1,300 Wikipedians by number of edits, but despite my status as a "senior editor", this distinction is becoming apparent to me only now. If Category:CS1 maintenance is not a collection of error category pages, I believe it and its member pages should
mebe modified to make the distinction clearer. Perhaps something like, "This is not an error category and pages listed listed here do not necessarily need to be 'fixed'." But we need to be careful, since any page in, for example, Category:CS1 maint: archived copy as title, does need to be fixed. —Anomalocaris (talk) 22:00, 23 July 2020 (UTC)- The entire citation area is a mess and has been for the last three or four years. A small group of people are making decisions that massively impact the functioning of the project and they're doing so in an out-of-the-way enclave. It has become so confusing anf frustrating that, frankly, I am on the verge of giving up. - Sitush (talk) 22:19, 23 July 2020 (UTC)
- My intent was realignment of
|title-link=
with its prerequisite|title=
because, as it was, it was so obviously wrong and because, at the time, I had other stuff on my mind. The incorrect alignment has been in place since I made this edit – I guess it wasn't so obvious at the time... Unless someone beats me to it, I'll add|lastn=
,|authorn=
,|editor-lastn=
, and|editorn=
as prerequisites for|author=
(probably tomorrow). - —Trappist the monk (talk) 00:04, 24 July 2020 (UTC)
Rendering page number in book-length computer files
We need a way to handle page numbers in computer files and eBooks that are not absolute page numbers. Google has their own way of identifying such pages, and we should decide how we want to handle it in the general case, Google or otherwise. I'm hoping for a discussion to see, in the first instance, whether there's interest in establishing a conventional method of doing this (achievable via /doc changes alone), or if something more robust is required.
Checked the archives, and didn't see anything about this; please add a link if I missed something. More and more, books are being "printed" online only, and exist purely as digital files. Or as both, but the accessible one is digital. Especially in the former case, there may not be an absolute "page number", depending on the format (i.e., not pdf or other fixed format) and on the rendering engine. In particular, Google will render these without visible page numbers in their page view mode. They do have an identifier they use in their url to distinguish the two cases. As near as I can determine from generalizing from a few dozen examples, the url param |pg=
is used for both cases, but the value differs depending on the source; for example: |pg=PA35
for printed, absolute page number visible in printed version, and |pg=PT35
for a page number on a digital resource. Note that in book search results, the Google result snippet will be slightly different: the boxed contextual snippet will say found inside – page 35 in the latter case, and found inside in the former.
For starters, I think this could be a doc-only change, by way of some additional text at the section on page, recommending what to do in this case, without any need for software changes. For example, something like:
For computer files where no fixed page number is present, code the page number a
|page=X99
, where the 'X' prefix is replaced by an identifier ('G' for Google books, 'I' for internet archive, ...) and the '99' represents the page identifier given by that display provider. The following table provides the identifiers for some common eBook providers: <table>...
That's just a first cut, and I'm sure I failed to consider lots of things. But the point is, I think we can initiate something useful without a software change, which would be a lot easier to get going, n'est-ce pas?
An example of using a conventional approach, as proposed
|
---|
By June, the different branches of Free France, led by de Gaulle out of London, and by Giraud out of Algeria, merged into one, creating the French Committee of National Liberation.<ref name="Davis-2018">{{cite book |lang=en |last=Brunet |first=Luc-Andre |editor-last1=Davis |editor-first1=Muriam Haleh |editor-last2=Serres |editor-first2=Thomas |title=North Africa and the Making of Europe: Governance, Institutions and Culture |chapter=1. The Role of Algeria in Debates over Post-War Europe within the French Resistance |url=https://books.google.com/books?id=tP5DDwAAQBAJ&pg=PT35 |accessdate=23 July 2020 |date=22 February 2018 |publisher=Bloomsbury |isbn=978-1-350-02184-6 |oclc=1037916970 |type=computer file |page=G35–36}}</ref> |
Going forward, maybe we do want more control of this, so maybe there's a new param to explain who the rendering engine is:(e.g., |epager=Google
, |epager=Internet Archive
, etc.). You would think that the value of the |url=
field would be enough to imply the latter, but in the real world, the multiplicity of CS1 params not infrequently don't all remain in sync, so I wouldn't trust that method; you'd end up with page numbers corresponding to some mystery provider. That might even be a reason to keep the original suggestion (i.e., use |pg=G35
for Google efile) because the page number and the method are kept together in one param value. Your thoughts appreciated. Mathglot (talk) 01:10, 24 July 2020 (UTC)
- I recommend citing the chapter, and if you have the energy, provide a quotation supporting the claim in the article. We have never required page numbers, and some sources, like web sites, have never had page numbers. I don't think it should be our job to make up nonexistent location designations for documents that do not have them. – Jonesey95 (talk) 03:15, 24 July 2020 (UTC)
- There's a similar issue in scanned documents. There is a page within the PDF and there is the number that was printed on the original physical page; those are often different. Shmuel (Seymour J.) Metz Username:Chatul (talk) 04:29, 24 July 2020 (UTC)
- Page numbers are used to help a reader discover the information that supports the wikitext. They are not necessarily pertinent in digital formats, which may use electronic bookmarks or other similar tagging as locators. Assuming that one can link that exact location (it is increasingly possible), the point of pagination is moot: the reader will be immediately directed to the verifying information. What may perhaps become useful in the future is better handling of such locators. Right now the only such specific locator used in CS1/CS2 is
|chapter-url=
and its aliases. Other than that, I don't think any special system is warranted. In scanned works, what is actually cited is the scan image, not its source. Different considerations apply, imo. 98.0.246.242 (talk) 01:37, 25 July 2020 (UTC)
|subject-link= and |subject-mask=
The other day, I noticed that we don't have |subject-mask=
or any of its enumerated forms. I have added |subject-mask=
, |subjectn-mask=
, and |subject-maskn=
{{cite interview/new |title=Title |subject=Abraham Lincoln |subject-mask=2}}
- ——. "Title" (Interview).
{{cite interview/new |title=Title |subject=Abraham Lincoln |subject1-mask=2}}
- ——. "Title" (Interview).
{{cite interview/new |title=Title |subject=Abraham Lincoln |subject-mask1=2}}
- ——. "Title" (Interview).
The |subject=
and |interviewer=
arrays of parameters are used primarily in {{cite interview}}
. Because we don't have non-hyphenated forms of the |interviewer=
parameters and because the preferred form for parameter names is hyphenated, I have deprecated |subjectlink=
, |subjectlinkn=
, and |subjectnlink=
. Here are some simple searches that indicate usage of these parameters:
|subjectlink=
: ~860 hits|subjectlinkn=
: ~110 hits|subjectnlink=
: times out- constrained to
{{cite interview}}
:|subjectnlink=
0 hits
- constrained to
—Trappist the monk (talk) 22:48, 26 July 2020 (UTC)
auto-link bug fix
Wikitext | {{cite journal
|
---|---|
Live | Barry, R. G. (1978). "H.-B. de Saussure: The First Mountain Meteorologist". Bulletin of the American Meteorological Society. 59 (6): 702–705. Bibcode:1978BAMS...59..702B. doi:10.1175/1520-0477(1978)059<0702:hbdstf>2.0.co;2. ISSN 0003-0007. |
Sandbox | Barry, R. G. (1978). "H.-B. de Saussure: The First Mountain Meteorologist". Bulletin of the American Meteorological Society. 59 (6): 702–705. Bibcode:1978BAMS...59..702B. doi:10.1175/1520-0477(1978)059<0702:hbdstf>2.0.co;2. ISSN 0003-0007. |
Fixed in the sandbox.
—Trappist the monk (talk) 16:19, 29 July 2020 (UTC)
- Thank you! − Pintoch (talk) 20:04, 29 July 2020 (UTC)
Support contribution/section in cite journal and others.
{{Cite journal | first1 = Shana | last1 = Kusin | first2 = Teddy | last2 = Angert | first3 = Katie | last3 = von Derau | first4 = B. Zane | last4 = Horowitz | first5 = Sandy | last5 = Giffin | name-list-style = vanc | title= 2012 Annual Meeting of the North American Congress of Clinical Toxicology (NACCT) October 1–6, 2012 las Vegas, NV, USA | volume = 50 | issue = 7 | pages = 574–720 | url = http://www.ohsu.edu/emergency/about/news/2012/nacct/posters/squash.pdf | contribution= 189. Toxic Squash Syndrome: A case series of diarrheal illness following ingestion of bitter squash, 1999-2011 |journal=Clinical Toxicology | doi = 10.3109/15563650.2012.700015| year = 2012 }}
Gives
- Kusin S, Angert T, von Derau K, Horowitz BZ, Giffin S (2012). "2012 Annual Meeting of the North American Congress of Clinical Toxicology (NACCT) October 1–6, 2012 las Vegas, NV, USA" (PDF). Clinical Toxicology. 50 (7): 574–720. doi:10.3109/15563650.2012.700015.
{{cite journal}}
:|contribution=
ignored (help)
It should give something better, like
- Kusin S, Angert T, von Derau K, Horowitz BZ, Giffin S (2012). "189. Toxic Squash Syndrome: A case series of diarrheal illness following ingestion of bitter squash, 1999-2011" in "2012 Annual Meeting of the North American Congress of Clinical Toxicology (NACCT) October 1–6, 2012 las Vegas, NV, USA". Clinical Toxicology. 50 (7): 574–720. doi:10.3109/15563650.2012.700015.
Or maybe
- Kusin S, Angert T, von Derau K, Horowitz BZ, Giffin S (2012). "2012 Annual Meeting of the North American Congress of Clinical Toxicology (NACCT) October 1–6, 2012 las Vegas, NV, USA: 189. Toxic Squash Syndrome: A case series of diarrheal illness following ingestion of bitter squash, 1999-2011". Clinical Toxicology. 50 (7): 574–720. doi:10.3109/15563650.2012.700015.
Headbomb {t · c · p · b} 18:31, 27 July 2020 (UTC)
- Pinging @David Eppstein: since you have a lot of experience there with math citations to sections of journal articles/books. Headbomb {t · c · p · b} 18:33, 27 July 2020 (UTC)
- Use
|department=
:{{Cite journal | first1 = Shana | last1 = Kusin | first2 = Teddy | last2 = Angert | first3 = Katie | last3 = von Derau | first4 = B. Zane | last4 = Horowitz | first5 = Sandy | last5 = Giffin | name-list-style = vanc | department= 2012 Annual Meeting of the North American Congress of Clinical Toxicology (NACCT) October 1–6, 2012 las Vegas, NV, USA | volume = 50 | issue = 7 | pages = 574–720 | url = http://www.ohsu.edu/emergency/about/news/2012/nacct/posters/squash.pdf | title= 189. Toxic Squash Syndrome: A case series of diarrheal illness following ingestion of bitter squash, 1999-2011 |journal=Clinical Toxicology | doi = 10.3109/15563650.2012.700015| year = 2012 }}
- Kusin S, Angert T, von Derau K, Horowitz BZ, Giffin S (2012). "189. Toxic Squash Syndrome: A case series of diarrheal illness following ingestion of bitter squash, 1999-2011" (PDF). 2012 Annual Meeting of the North American Congress of Clinical Toxicology (NACCT) October 1–6, 2012 las Vegas, NV, USA. Clinical Toxicology. 50 (7): 574–720. doi:10.3109/15563650.2012.700015.
- —David Eppstein (talk) 18:40, 27 July 2020 (UTC)
- That is very hacky. Headbomb {t · c · p · b} 17:16, 30 July 2020 (UTC)
- It is, as far as I know, the only way to get three levels of titling (title/department/journal) within a journal cite. The other way is to use chapter/title/series or contribution/title/series but then you would have to call Clin.Tox. a series rather than a journal, and the volume/issue formatting would be for a book not a journal, so that's worse. The department is not included in the COinS metadata (and in particular is not coded wrongly in COinS as a department rather than as the title of a special issue). —David Eppstein (talk) 17:35, 30 July 2020 (UTC)
- That is very hacky. Headbomb {t · c · p · b} 17:16, 30 July 2020 (UTC)
- Use
Citing third-party sources embedded in document
I'm trying to cite a newspaper source, for which the paper (or its website) doesn't exist anymore, but copies of the relevant article are embedded in a council ordinance. Can I do that, and if so, what would be the syntax?
The full ordinance is here, and I would like to reference page 106: "Success or failure?", Sean Robinson, The News Tribune. Frescard (talk) 14:23, 29 July 2020 (UTC)
- If I understand correctly, you want to cite the newspaper article directly, as a sort of substitute stand-alone reference. If that is so, the answer is no, that is not correct. We must refer to sources as they are likely to be found. Here, the source is documentation of a local government ordinance. That is what should be cited. A location in the source is pertinent to the relevant wikitext. So the citation should be formatted exactly like that. Per your description, a reference to the particular news article cannot be sourced any other way. The answer was in the question. 172.254.241.58 (talk) 18:45, 30 July 2020 (UTC)
- You could cite it as one document in a couple of ways (probably making use of
|via=
), but if you think it is helpful, you can instead cite both in one <ref> statement; something like{{cite news |newspaper=The News Tribune |first=Sean |last=Robinson |title=Success or failure? Probing Prometa}} as in {{cite web |url=https://online.co.pierce.wa.us/cfapps/council/model/otDocDownload.cfm?id=1448900&fileName=2007-81s%20final%20Ord%20file%201.pdf |department=Today in the Trib |website=Pierce County, Washington |title=Ordinance No. 2007-81s: etc. |p=106}}
: Robinson, Sean. "Success or failure? Probing Prometa". The News Tribune. as in "Ordinance No. 2007-81s: etc" (PDF). Today in the Trib. Pierce County, Washington. p. 106. --Izno (talk) 02:18, 31 July 2020 (UTC)- The OP mentions that the original (the newspaper) is no longer in existence and cannot be found. If that is the case, citing the article directly is misleading and unverifiable. The use of
|via=
is I believe problematic: the source that includes the article is not an archive, repository, or other publisher. The article is included as supporting (incidental) documentation, as the OP described it, a source from a 3rd party. Tertiary sources should be referenced as such. 98.0.246.242 (talk) 02:16, 1 August 2020 (UTC)- He has stated a belief the web content cannot be accessed any longer directly. It may still be present in archives, digital or in fact physical. Giving the details of the document itself and stating that it can be found in the council minutes doesn't mislead whatsoever and may in fact aid someone to find it in one oc those other two contexts. Via is used to indicate a republisher. A republisher does not need to be one of those groups that you limited it to and in fact the council here is acting as a republisher of the original report. --Izno (talk) 03:00, 1 August 2020 (UTC)
- WP:SWYGT. Also, archives (not self-archiving services) and legitimate republishers are supposed to satisfy legal/copyright requirements and are liable. In those cases, use of
|via=
is justified. But even that case does not apply here. The relevant text is a fragment of the containing source. It should be cited as such. 65.88.88.57 (talk) 14:16, 2 August 2020 (UTC)
- WP:SWYGT. Also, archives (not self-archiving services) and legitimate republishers are supposed to satisfy legal/copyright requirements and are liable. In those cases, use of
- He has stated a belief the web content cannot be accessed any longer directly. It may still be present in archives, digital or in fact physical. Giving the details of the document itself and stating that it can be found in the council minutes doesn't mislead whatsoever and may in fact aid someone to find it in one oc those other two contexts. Via is used to indicate a republisher. A republisher does not need to be one of those groups that you limited it to and in fact the council here is acting as a republisher of the original report. --Izno (talk) 03:00, 1 August 2020 (UTC)
- The OP mentions that the original (the newspaper) is no longer in existence and cannot be found. If that is the case, citing the article directly is misleading and unverifiable. The use of
Newspaper Article on Two Pages
What is the standard, if any, for citing a newspaper article that is available online, that is split onto two webpages. This occurs a lot with Newspaper.com sources. Generally speaking, the article is one source, with one title, author, date, etc. However, to assist with verifiability and to be able to archive each page of the article, I have been splitting it into two separate references, adding "Part 1" and "Part 2" to the title. See an example below:
- Dow, Bill (January 11, 2002). "Mann pioneer player in NFL: Part 1". Detroit Free Press (clipping). p. 1D. Archived from the original on November 22, 2019. Retrieved November 22, 2019 – via Newspapers.com.
- Dow, Bill (January 11, 2002). "Mann pioneer player in NFL: Part 2". Detroit Free Press (clipping). p. 8D. Archived from the original on November 22, 2019. Retrieved November 22, 2019 – via Newspapers.com.
This allows me to cite each sentence in an article with the relevant page of the news article. But it does create some confusion and adds additional sources in the reference list. Is there a better way to do this? Does (or could) {{Cite news}} support two urls and two archive-urls? Thanks for any insight. « Gonzo fan2007 (talk) @ 15:39, 3 August 2020 (UTC)
- I'd combine the two thusly:
- Dow, Bill (January 11, 2002). "Mann pioneer player in NFL". Detroit Free Press. pp. 1D, 8D. Retrieved November 22, 2019 – via Newspapers.com.
- I don't think an archive URL is needed with Newspapers.com. Even if the website ever shut down, you're ultimately citing the original newspaper via an accurate facsimile, and the URL is a courtesy, not the source itself, per se.
- Also, I don't think
|type=clipping
is helpful because Newspapers.com will allow readers without an account to see the full page from which the clipping is drawn. Imzadi 1979 → 20:56, 3 August 2020 (UTC)
Publication date
Is there a different validation for |publication-date=
as it is reporting an error which does not happen if it is |date=
?
Rik Farrow (2018). Rik Farrow (ed.). "Musings" (PDF). ;login. 43 (4). USENIX (published Winter 2018): 4. ISSN 1044-6397. {{cite journal}}
: Check date values in: |publication-date=
(help)</ref>
Keith D (talk) 21:17, 17 July 2020 (UTC)
- Yes. Seasons, named dates (Christmas, Easter), and quarter dates are only supported by
|date=
. - —Trappist the monk (talk) 21:33, 17 July 2020 (UTC)
- Makes sense to support it in
|publication-date=
as well, I guess. --Matthiaspaul (talk) 11:20, 18 July 2020 (UTC)- Thanks. May be documentation could include a note to explain. Keith D (talk) 12:02, 18 July 2020 (UTC)
- I would just make
|publication-date=
an alias of|date=
and deprecate the long alias or remove it from the docs; we do not need to "advertise" every alias that has ever existed. — SMcCandlish ☏ ¢ 😼 13:04, 4 August 2020 (UTC)
- I would just make
- Thanks. May be documentation could include a note to explain. Keith D (talk) 12:02, 18 July 2020 (UTC)
- Makes sense to support it in
|website= parameter
How should editors use the |website= parameter? I'm talking about this edit and similar ones. The examples at Template:Cite web#Examples use the website name (in this case, Parties and Elections in Europe), but the automatic citation-creating tool uses the url of the website (in this case, www.parties-and-elections.eu). However, I also tried to use the auto-citation tool with a Wikipedia article as the url to test, and it put Wikipedia in the website parameter. Is this a mistake in the auto-citation tool? Thanks, Ezhao02 (talk) 15:37, 27 July 2020 (UTC)
- The tool in question uses a system which has pre-configured settings for some websites (that you could get involved with if interested) and defaults to a certain setting. For e.g. Wikipedia, that setting indicates that Wikipedia is the website. For e.g. Parties and Elections, that's the default so it adds the website main URL. You should prefer the name if available and provide the URL if unavailable. --Izno (talk) 15:55, 27 July 2020 (UTC)
- @Izno: To be clear, are you saying that both www.parties-and-elections.eu and Parties and Elections in Europe should be listed, or are you talking about the url of the web page (in this case, http://www.parties-and-elections.eu/basquecountry.html) being put in the url parameter? Is either the way I formatted it (prior to Impru20's edit linked above) or the way Impru20 formatted it considered "right" or "wrong"? Thanks, Ezhao02 (talk) 15:59, 27 July 2020 (UTC)
both www.parties-and-elections.eu and Parties and Elections in Europe should be listed
No, do pick one or the other. Our guidance at Help:CS1#Work and publisher is currently the following:
Does that help you decide? --Izno (talk) 16:02, 27 July 2020 (UTC)On websites, in most cases "work" is the name of the website (as usually given in the logo/banner area of the site, and/or appearing in the <title> of the homepage, which may appear as the page title in your browser tab, depending on browser). Do not append ".com" or the like if the site's actual title does not include it (thus |work=Salon, not Salon.com). If no clear title can be identified, or the title explicitly is the domain name, then use the site's domain name. Do not falsify the work's name by adding descriptive verbiage like "Website of [Publisher]" or "[Publisher]'s Homepage". Capitalize for reading clarity, and omit "www.", e.g. convert "www.veterinaryresourcesuk.com" to "VeterinaryResourcesUK.com".
- Yes, thank you! Ezhao02 (talk) 16:18, 27 July 2020 (UTC)
- @Izno: I still have another question about that page. How would you decide if "the title explicitly is the domain name"? Ezhao02 (talk) 16:23, 27 July 2020 (UTC)
- Basic duck test. Does it look like the same duck? Yes. Then it's probably the same duck. --Izno (talk) 16:28, 27 July 2020 (UTC)
- Thank you for all your help! Ezhao02 (talk) 16:31, 27 July 2020 (UTC)
- Basic duck test. Does it look like the same duck? Yes. Then it's probably the same duck. --Izno (talk) 16:28, 27 July 2020 (UTC)
- @Izno: To be clear, are you saying that both www.parties-and-elections.eu and Parties and Elections in Europe should be listed, or are you talking about the url of the web page (in this case, http://www.parties-and-elections.eu/basquecountry.html) being put in the url parameter? Is either the way I formatted it (prior to Impru20's edit linked above) or the way Impru20 formatted it considered "right" or "wrong"? Thanks, Ezhao02 (talk) 15:59, 27 July 2020 (UTC)
- Just to clarify further about "both www.parties-and-elections.eu and Parties and Elections in Europe should be listed ...?" Izno and the cited documentation are correct in answering "No." Either is okay; neither are an error, but both is an error. If the work has a proper title, then use that, but the domain name will suffice in absence of one, or if you don't have time to go look. It's okay that automated tools use the domain name, and it's also okay to cleanup up after them and change the auto-cites to use real titles. For a work without a title or whose title is literally its domain name, it's best to shave off the "www." if the site can be reached without it (most of them can, but it's worth testing; I ran into one only two days ago that 404'ed without the "www." prepended to it). — SMcCandlish ☏ ¢ 😼 12:56, 4 August 2020 (UTC)
Please add param error checking for interwikis lacking leading colon
Hello, can you please add some error-check code and emit a big, red error message, if an editor codes a "link" param (author, title, translator, editor, contributor are the ones I'm aware of) to a sister wikipedia like fr-wiki without a leading colon on the lang code? What happens in this case, is various kinds of strange behavior, including dropping the field (author, say) and emitting only a semicolon or other punctuation; but worse is that the first of these, whatever it is, is picked up as an interwiki, and the entire article is linked under that language name in the left sidebar. Same thing occurs for fields with permissible wiki-linking, such as publisher. Beyond that, it screws up article links at Wikidata, as soon as their bot sees it.
You can see an example of the faulty behavior in revision 969921029 of André Diethelm. Go to the language links in the left sidebar, and notice that the Hebrew and Arabic links point to the correct articles (Google translate does a sufficient job of transliterating the titles to confirm they are correct if you need it) but the French one is wrong, and links to fr:Éditions Philippe Rey. This happens to be the publisher of one of the sources listed in the #Further reading section, namely "Lambert (2010)", but you won't see it on the rendered page, because it's been snatched by the wikimedia code and interpreted as the target of the "Francais" link in the language sidebar; all you will see in the Lambert citaton is extra punctuation between "Paris" and the ISBN. To actually see the linked publisher with the missing colon, you have to view the wikicode of that revision.
You can diff that version with current (diff), to see that the only change was to add one colon in the Lambert publisher field. Notice that the Francais link in the sidebar is now correct. (Same thing happens if you forget the leading colon in authorlink, or any of the other *-link fields.) These should be flagged as errors, because they will escape the notice of many users. Also, the bots at Wikidata are rapid, and although I noticed and fixed the problem within minutes, I was too late, and the Wikidata bot had already linked my French Resistance guy at en:André Diethelm to the French publisher fr:Éditions Philippe Rey via item d:Q3579477 ("Éditions Philippe Rey"; diff). I had to both unlink that connection, then go relink Diethelm to d:Q2847654 instead (same one that has the Hebrew and Arabic articles as well).
This is too much to ask most users to do. A big, fat, red error for interwiki links that lack a leading colon would be a big help. Thanks, Mathglot (talk) 06:04, 28 July 2020 (UTC)
- I added a request for such error handling at Help talk:CS1 errors. Thanks, Mathglot (talk) 09:55, 3 August 2020 (UTC)
- That discussion closed. One discussion in one place.
- —Trappist the monk (talk) 20:06, 4 August 2020 (UTC)
- The
|publisher=[[fr:éditions Philippe Rey|Philippe Rey]]
is not a|<param-link>=
problem; somewhat related, but not the same. - I have hacked the module sandbox to catch
|<param-link>=
where the assigned value begins with a known local inter-wiki prefix without a leading colon. There are a couple of exceptions. Thew:
andwikipedia:
prefixes do not require leading colon. Thes:
andwikisource:
prefixes have special meaning because cs1|2 creates urls from these inter-wiki links so that it can add the wikisource icon. From the example template, tweaked so that the author wikilink is missing the leading colon: - Inter-wiki links are apparently namespace sensitive. The above example shows a linked author name and there is no link under languages to the fr.wiki. When I copied the above example to a random article in en.wiki main space and previewed, the linked author name is missing and fr.wiki is listed in the languages list, linked to Gilles Lambert.
- The
|publisher=
inter-wiki link problem must be handled differently because for the most part, any cs1|2 parameter may be wiki-linked (despite documentation to the contrary). For all parameters in a cs1|2 template that are not|<param-link>=
parameters, inter-wiki links must begin with[[<prefix>:
where<prefix>
is a known local inter-wiki prefix,s:
,w:
and their long-forms again excepted. As each parameter name is validated, the cs1|2 sandbox looks for this pattern and emits and error message when detected: - In main space, the title from the above example is missing and fr.wiki is listed in the languages list, linked to Title.
- —Trappist the monk (talk) 20:06, 4 August 2020 (UTC)
- There are other kinds of interwiki links that should (could?) be supported such as d:; interlanguage links are the ones that are problematic only. I do not understand why w: and wikipedia: (Wikipedia here is presumably its use as an interlanguage link as in wikipedia:Wikipedia:BRD?) are supported in this way. --Izno (talk) 21:26, 4 August 2020 (UTC)
- I included the
wikipedia:
in the exclusion list because it is listed at Help:Interwiki linking as the long form ofw:
. But, now that you point it out,wikipedia:
the prefix makes no sense because it conflicts withwikipedia:
the namespace. No doubt the exclusion list might includeb:
(wikibooks),c:
(commons),d:
(wikidata),m:
(meta),n:
(wikinews),q:
(wikiquote),v:
(wikiversity). - —Trappist the monk (talk) 22:11, 4 August 2020 (UTC)
wikipedia:
does not conflict on other wikis as a thought. --Izno (talk) 22:55, 4 August 2020 (UTC)[[wikipedia:]]
on meta: links to the en.wiki main page. As a guess, I would say thatwikipedia:
, the name space, is common on encyclopedia wikis but not on other types of wiki.- Because
[[w:]]
appears to be a prefix that always links to en.wiki, I'm wondering if that prefix should continue to be excluded from the error check. Here at en.wiki, thew:
prefix gets you to the article in the same way that theen:
prefix or no prefix does:[[w:Abraham Lincoln]]
[[en:Abraham Lincoln]]
[[Abraham Lincoln]]
- At other wikipedias, the
w:
prefix links to the en.wiki article but isn't otherwise treated as a inter-language inter-wiki link. - —Trappist the monk (talk) 12:53, 5 August 2020 (UTC)
- Regarding, "Inter-wiki links are apparently namespace sensitive", yes; see Help:Interlanguage links#Method. And that's great that you were able to mock up something in the sandbox for the *-link case so quickly. I realize the other case (publisher, and other fields) is different, and is complicated by the legit shortcut codes that link to sister projects. Did anyone mention wikt:, species:, v:, voy:? See also, m:Help:Interwiki linking. Mathglot (talk) 09:35, 5 August 2020 (UTC) updated 10:21, 5 August 2020 (UTC)
- I mentioned
v:
earlier. - At present cs1|2 tests what it thinks is a prefix against the table of known inter-wiki prefixes returned from
mw.site.interwikiMap ('local')
. I am minded to change that and instead use the list of languages returned bymw.language.fetchLanguageNames ('<local wiki lang code>', 'all')
if I can show that all of the language codes in that list are also found in the inter-wiki map list. - —Trappist the monk (talk) 12:53, 5 August 2020 (UTC)
- I have changed the code so that ~/Configuration/sandbox creates a list of language prefixes from both
mw.site.interwikiMap ('local')
andmw.language.fetchLanguageNames ('<local wiki lang code>', 'all')
. Prefixes inmw.site.interwikiMap ('local')
must match a language code inmw.language.fetchLanguageNames ('<local wiki lang code>', 'all')
to be added to the local list. There are seven 'language-like' codes inmw.site.interwikiMap ('local')
that 'redirect' to another-language wiki but these codes do not contribute to the inter-wiki language list:cmn:
→ Mandarin Chinese (ISO 639-3 code); redirects to zh.wikipedia.orgcz:
→ Czech (ISO 3166 country code); redirects to cs.wikipedia.orgdk:
→ Danish (ISO 3166 country code); redirects to da.wikipedia.orgepo:
→ Esperanto (ISO 639-3 code); redirects to eo.wikipedia.orgjp:
→ Japanese (ISO 3166 country code); redirects to ja.wikipedia.orgminnan:
→ invalid IETF language tag; redirects to zh-min-nan.wikipedia.orgzh-cfr:
→ invalid IETF language tag; redirects to zh-min-nan.wikipedia.org
- These are not included in the local prefix list.
- —Trappist the monk (talk) 15:56, 5 August 2020 (UTC)
- Can't remember anymore where I saw it, but there's a case where one type of Norwegian language code—whether
no
(Norwegian, in general) ornn
(Nynorsk), I can't remember —is odd man out, wrt to a giant list of WP codes that generally match the ccTLD codes, except for that one case. (There's also Bokmal,nb
, but it wasn't that.) This could be a red herring, but just wanted to recall it, in case it's relevant here. Mathglot (talk) 03:40, 6 August 2020 (UTC)- I'm not sure I understand what it is that you are saying.
[[nn:]]
links to the Norsk nynorsk nn.wiki, both of[[nb:]]
and[[no:]]
link to the Norsk bokmål nb.wiki. I do remember that for a time, language codeno
was not supported by the{{#language:}}
magic word. That has since been fixed:{{#language:nb|en}}
→ Norwegian Bokmål{{#language:nn|en}}
→ Norwegian Nynorsk{{#language:no|en}}
→ Norwegian
- —Trappist the monk (talk) 10:30, 6 August 2020 (UTC)
- Found it, and it doesn't affect this issue, because it's about translation, not linking. If you're curious, it's used at Template:Expand Norwegian (Nynorsk); note the diff between
|langcode=
and|googlelangcode=
, not found in any other Expand language template (such as Template:Expand Norwegian). The explanation at this /doc page references Nynorsk. So, red herring, as far as we are concerned here. Mathglot (talk) 04:28, 7 August 2020 (UTC)
- Found it, and it doesn't affect this issue, because it's about translation, not linking. If you're curious, it's used at Template:Expand Norwegian (Nynorsk); note the diff between
- I'm not sure I understand what it is that you are saying.
- Can't remember anymore where I saw it, but there's a case where one type of Norwegian language code—whether
- I have changed the code so that ~/Configuration/sandbox creates a list of language prefixes from both
- I mentioned
- I included the
- There are other kinds of interwiki links that should (could?) be supported such as d:; interlanguage links are the ones that are problematic only. I do not understand why w: and wikipedia: (Wikipedia here is presumably its use as an interlanguage link as in wikipedia:Wikipedia:BRD?) are supported in this way. --Izno (talk) 21:26, 4 August 2020 (UTC)
Also, while I'm thinking of it: despite the emission of a CS1 error in preview mode, the editor can still override and save anyway, as shown in your sandbox example above. This is fine, for the *-link case, but not so great for the publisher=[[fr:Seuil]] case, because if that link is saved like that, the Wikidata bot will likely do something strange. I don't know if this is beyond the scope of this template, but, for example, could you stop the user from saving it in that form, either by stripping out the brackets, or supplying the preceding colon? If not, maybe in that case we'd need to see about an edit filter to trap it, but I suppose that would be a discussion for somewhere else. Mathglot (talk) 09:50, 5 August 2020 (UTC)
- Hm, maybe not so fine in the *-link case, either; they can both lead to downstream problems of rendering and knock-on issues at Wikidata, if I'm not mistaken. Mathglot (talk) 03:47, 6 August 2020 (UTC)
- Tweaks to the code:
- For
|<param-link>=
parameters that fail the various link tests (has a url, has wikilink markup, has inter-wiki prefix without leading colon) the code simply unsets the parameter and declares the error:{{Cite book/new |title=Title |title-link=//example.com}}
→ Title.{{cite book}}
: Check|title-link=
value (help); External link in
(help)|title-link=
{{Cite book/new |title=Title |title-link=[[Title]]}}
→ Title.{{cite book}}
: Check|title-link=
value (help){{Cite book/new |title=Title |title-link=nv:Title}}
→ Title.{{cite book}}
: Check|title-link=
value (help)
- For
|<param>=[[<prefix>:<value>
the code extracts the label portion of the wikilink:
- For
- These tweaks prevent the addition of extraneous inter-wiki links in the languages list.
- That languages inter-wiki list at left must have a proper name. What is that name?
- —Trappist the monk (talk) 13:31, 6 August 2020 (UTC)
- Usually just inter-language list or inter-wiki list. The latter can be ambiguous since the introduction of the inter-project list. --Izno (talk) 14:33, 6 August 2020 (UTC)
- I've always just called it the "language links sidebar" (or "language sidebar", on the second occasion) because I've never seen anyone misunderstand what that means, but I don't know if there's an official term.
- Thanks so much for tweaks here and earlier; this is going to really improve things. I wonder how many "stealth errors" are out there—defining that as something that "seemed all right" until now, that suddenly will generate a CS1 error where it didn't before. Do we care? I imagine editors at the articles concerned will wonder why something turned red that never was before, but all they have to do is click the [help] to find out. This is great stuff, thanks Trappist. Mathglot (talk) 03:07, 7 August 2020 (UTC)
- Usually just inter-language list or inter-wiki list. The latter can be ambiguous since the introduction of the inter-project list. --Izno (talk) 14:33, 6 August 2020 (UTC)
Template-specific help in preview
Hi, I guess most of us do not remember all parameters supported by the various citation templates, in particular those which are not generic, but specific to certain templates.
In order to make it easier (quicker) to look up the template specific help page, I propose to let the template display an unobtrusive link to its help page (only) in article preview, either in front of the citation or after it.
This could look like[1]
{{Cite journal}} would have a link to Help:Cite journal, {{Cite conference}} to Help:Cite conference, {{Cite book}} to Help:Cite book etc.
If even this small [?] would be found to be too obtrusive, it could be put into some CSS stuff so that it would show only when an editor has opted in to maintenance messages.
--Matthiaspaul (talk) 11:01, 13 July 2020 (UTC)
- I'm not sure I'd support that specific implementation, but the idea has merit and I'd support some variant of it. Possibly[1]
- ^ Smith, John (2015). "Title of Things". Journal of Stuff. 34 (1): 23–45. doi:10.4321/3210. PMID 012345. (Need help? See {{cite journal}} documentation)
As a preview/opt-in message. Headbomb {t · c · p · b} 12:42, 13 July 2020 (UTC)
- Whatever we can agree upon. I deliberately tried to make it as short and unobtrusive as possible to not change the general appearance in preview, but if people would prefer longer messages as in your example, I would not be against it, either. --Matthiaspaul (talk) 12:54, 13 July 2020 (UTC)
- Perhaps something like this (image instead of text) would be aesthetically more pleasing?[1]
- ^
Smith, John (2015). "Title of Things". Journal of Stuff. 34 (1): 23–45. doi:10.4321/3210. PMID 012345.
- I definitely don’t think it should be the default. It’s confusing for editors to see things in the preview that don’t appear in the finished page, and question marks or comments like “need help?” suggest something is questionable or that editor needs help, implies something is wrong even when it’s formatted correctly. Umimmak (talk) 18:58, 13 July 2020 (UTC)
- This seems like something that could be created as a javascript that would give the little icon or a link for all templates, not just CS1 templates. I see people having trouble with editing a wide variety of templates, putting in incorrect parameters and much more. – Jonesey95 (talk) 19:02, 13 July 2020 (UTC)
- Nothing against a script-based solution, but unfortunately I personally couldn't take much advantage of it then as I usually have JavaScript disabled for security reasons...
- --Matthiaspaul (talk) 20:55, 13 July 2020 (UTC)
- I don't think this would cause much confusion, as it is self-explanatory. The curious user would click it once or twice to see what it is, and then take it for granted almost as if it would be a style element of the skin. I don't think the user needs a lengthly description in each citation, because once read its purpose is obvious. Some users might even miss the feature for some while, but that's the same with other interface elements - they will be stumbled upon and then used (if intuitive). That's why my preferred implementation would use a link as small as possible - ideally, I would even "reuse" some existing style element (like the "^"), but then it would have to be implemented as part of Mediawiki's <ref> token rather than inside our local citation templates (however, this won't work because only the citation template itself knows the location of its help page).
- If a question mark would draw the wrong association, we could use something like a "book" or "file" icon to indicate "documentation" or even something more abstract like a (diagonally) upwards-pointing arrow (similar to the external-link icon, but pointing in one direction only) to indicate "look up".
- --Matthiaspaul (talk) 20:55, 13 July 2020 (UTC)
- This seems like something that could be created as a javascript that would give the little icon or a link for all templates, not just CS1 templates. I see people having trouble with editing a wide variety of templates, putting in incorrect parameters and much more. – Jonesey95 (talk) 19:02, 13 July 2020 (UTC)
- The reason why I prefer the link in front of the citation (at least when it remains as short as in my example) is because it then "blends in" visually with the other "strange" symbols (like the "1./2.", "^" typically found in front of citations), whereas at the end of a citation there is often other text following (inside the <ref> block), and it might look "out of place" there or actually cause confusion (when short).
- If we'd use a long descriptive text label, we would definitely need to frame it for opt-in. If it remains just an icon (or similarly short) this would not be needed (thereby we'd include the large group of "normal" users who don't change their default configuration).
- --Matthiaspaul (talk) 20:55, 13 July 2020 (UTC)
- Following up on icon prefixes, I just ran into {{cite wikisource}}, a cite template I wasn't aware of. This actually uses a similar format already:
Chisholm, Hugh, ed. (1911). "Aard-vark". Encyclopædia Britannica (11th ed.). Cambridge University Press – via Wikisource.
- So, with a question mark icon added in preview mode this would look similar to:[1]
- Following up on icon prefixes, I just ran into {{cite wikisource}}, a cite template I wasn't aware of. This actually uses a similar format already:
- I definitely don’t think it should be the default. It’s confusing for editors to see things in the preview that don’t appear in the finished page, and question marks or comments like “need help?” suggest something is questionable or that editor needs help, implies something is wrong even when it’s formatted correctly. Umimmak (talk) 18:58, 13 July 2020 (UTC)
- ^
Chisholm, Hugh, ed. (1911). "Aard-vark". Encyclopædia Britannica (11th ed.). Cambridge University Press – via Wikisource.
- Not too bad, I would think...
- --Matthiaspaul (talk) 16:20, 19 July 2020 (UTC)
- Nice coincidence, when one clicks on "View history" on a page, a circled black question mark icon appears in the upper right corner leading to Help:Page history. So, there is even some precedent for this... ;-)
- --Matthiaspaul (talk) 20:58, 19 July 2020 (UTC)
- cs1|2 renders differently in preview mode only when there are archive-url errors. The initial implementation of that queried the
{{REVISIONID}}
magic word for every citation whether there were errors or not. That implementation drew the attention of MediaWiki because it took longer to save pages. This because preview-pages are different from saved pages so MediaWiki can't reuse the preview and must parse the wikitext again before it can be saved. See Help talk:Citation Style 1/Archive 20 § archive url checks and preview mode and the related discussion at Wikipedia:Village pump (technical)/Archive 147 § Preview-only template warnings using REVISIONID magic word. - —Trappist the monk (talk) 19:17, 13 July 2020 (UTC)
- Obviously, I would have used {{REVISIONID}} as well to detect preview mode... Let's loop in User:Aaron Schulz to see if there is meanwhile another way to detect preview - after all, four years have passed...
- Is there a CSS class for "preview messages", that is, something that is visible only in preview without being conditional on {{REVISIONID}}?
- --Matthiaspaul (talk) 02:22, 14 July 2020 (UTC)
- A bit too much insider jargon for me to decipher if the issue has been worked around by User:Aaron Schulz in 2019, so I'll drop these finds here for evaluation and comment by those who are familiar with the implementation:
- https://gerrit.wikimedia.org/r/c/mediawiki/core/+/294774/ 2019-04-02 "Disable expensive {{REVISIONID}} magic word in miser mode"
- https://phabricator.wikimedia.org/T137900 "Deal with poor edit stash hit rate due to Lua modules using {{REVISIONID}}"
- https://gerrit.wikimedia.org/r/c/mediawiki/core/+/503685/ 2019-04-15 "parser: use "-" for revision ID for non-preview edit filter parse during save"
- https://phabricator.wikimedia.org/T235957 2019-10-19 "Change {{REVISIONID}} from number to "-" in wgMiserMode"
- https://gerrit.wikimedia.org/r/c/mediawiki/core/+/570985/ 2020-02-18 "parser: apply $wgMiserMode restriction to REVISIONID for NS_USER/NS_PROJECT"
- --Matthiaspaul (talk) 17:26, 15 July 2020 (UTC)
- On 2019-04-04, User:Krinkle wrote ([3]):
- "The magic word {{REVISIONID}} is being deprecated for performance reasons. In the future, it will only return "" (empty string) when previewing edits, or "-" (dash) when reading pages. The release of next week, will only change this behaviour for articles in the content namespaces. It will not change for interface messages and other namespaces (such as talk pages, and user pages)."
- So, it basically has reduced to a flag now.
- Anyway, I would prefer to see such help links in preview rather than saving a few seconds on save. Comments?
- --Matthiaspaul (talk) 15:49, 18 July 2020 (UTC)
- Having reread the other threads, I have come to the conclusion that we can assume the issue as being worked around at least to an extent that using {{REVISIONID}} does no longer cause a significant performance hit that could not be remedied on server side.
- On 2016-06-22, User:Ori Livneh/User:ATDT wrote (Help talk:Citation Style 1/Archive 20#archive url checks and preview mode):
- We try to do all the work except actually save the edit to the database. If the user does not end up saving the edit or if the user goes back and makes additional changes, we just throw away whatever we computed. But if the user saves the edit, then often times a lot of the work is already done and all we have to do is commit it to the database. Whenever the REVISIONID magic word is used, this whole mechanism is basically subverted, because we can't reliable know in advance what the revision ID is going to be before we save it to the database.
- However, with {{REVISIONID}} reduced to something like a {{PREVIEWMODE}} flag, the pseudo-revision ID can be predicted (even during preview) to be "-" when later saving a page, thus the precompiled page can be reused with no or only minor fixups. What still might differ is the resulting HTML (with or without the help icons), but nobody would keep them from silently generating the HTML for the "-" case during preview already (in addition to the preview itself), so, while this may still require two passes, there is no need to defer the final pass until the user hits "Save", thus no performance penalty on the user side.
- In the worst case, the feature could be made conditional on citation errors occuring. In this case, it would not show for all citations in preview but at least for those where errors were detected and thus help is particulary useful.
- --Matthiaspaul (talk) 18:06, 19 July 2020 (UTC)
- Apparently, none of the three pinged server admins/developers can be bothered to reply. Since the problem apparently no longer exists, let's go for it. --Matthiaspaul (talk) 12:35, 8 August 2020 (UTC)
- A bit too much insider jargon for me to decipher if the issue has been worked around by User:Aaron Schulz in 2019, so I'll drop these finds here for evaluation and comment by those who are familiar with the implementation:
Why does Wikiquote's Ref template and Wikipedia's Ref template handle commas in the date field differently?
(X-posting from the Tech Pump) Wikiquote's ref template will parse "July 2 1999" just fine, but our template requires a comma, e.g. "July 2, 1999". Why is that? Can someone fix our template to stop caring so much? I screw this up on my first pass something like 25% of the time. -- Kendrick7talk 00:30, 7 August 2020 (UTC)
- "July 2 1999" is not a valid date format here on the English Wikipedia, per MOS:DATESNO, so our CS1 citation templates (e.g. {{cite web}} and similar) display an error message. Wikiquote does not have enforceable date styles (per the English Wikiquote MOS), so ambiguous and non-standard dates aren't marked as errors. – Jonesey95 (talk) 01:58, 7 August 2020 (UTC)
- What does MOS have to do with it? Wikiquote's template simply inserts the comma automatically, so the styling result is exactly the same. -- Kendrick7talk 12:37, 7 August 2020 (UTC)
- Which template is doing this formatting? See my wikiquote sandbox, where Template:cite news on wikiquote is leaving "July 2 1999" alone. You are welcome to add examples to that sandbox page. – Jonesey95 (talk) 15:43, 7 August 2020 (UTC)
- Wikiquote's version of "cite web" is definitely adding the comma; I've added an example to your sandbox. I don't know why I expected consistency, lol. -- Kendrick7talk 00:22, 8 August 2020 (UTC)
- Which template is doing this formatting? See my wikiquote sandbox, where Template:cite news on wikiquote is leaving "July 2 1999" alone. You are welcome to add examples to that sandbox page. – Jonesey95 (talk) 15:43, 7 August 2020 (UTC)
- What does MOS have to do with it? Wikiquote's template simply inserts the comma automatically, so the styling result is exactly the same. -- Kendrick7talk 12:37, 7 August 2020 (UTC)
Some maintenance items to upgrade to errors
Right now, Category:CS1 maint: display-authors and other friends are nearly always empty because they are nearly always an easy-to-correct error. I would like to propose upgrading them to errors accordingly, which will make them more visible to editors.
To make this easier to do in the future with maintenance messages we decide should be errors, I'd also like to see the error and maintenance system implementations be made the same (save for the obvious distinction). For this latter, I trip up really hard every time I want to get maintenance items turned into errors, and it's making it hard to parse how to make the necessary code modification for display-X.
Any concerns? --Izno (talk) 12:45, 4 July 2020 (UTC)
- After the next update which I am about to announce.
- Error messages rely on tables defined in Module:Citation/CS1/Configuration. Each error message has four properties:
message
,anchor
,category
,hidden
. For maint cats, we might define these:message
alwaysnil
or empty stringanchor
a unique value used to link into Help:CS1 errors help textcategory
the key that tells commonset_error()
how to handle the issue; maint cat names all begin with 'CS1 maint:' whereas error message cats aren't so consistenthidden
ignored for maint cats which are always hidden
- Category:Pages with inactive DOIs is presently a member of Category:CS1 maintenance but doesn't necessarily belong there. In Module:Citation/CS1/Identifiers this cat and its dependents are treated as pseudo errors (the categories are created and added to the table
z.error_categories
. Property and maint cats have their own tables (maintenance_cats
andproperties_cats
). Maint cats can display their names as an editor-option via css, prop cats display nothing. - Before we embark on a messaging rewrite, we should normalize, somehow, the inactive doi handling. Inactive dois are not errors in the sense of cs1 errors like any of the categorized errors in Category:CS1 errors. Neither are they simple properties because they should be fixed. We could treat inactive dois as maint issues so that editors who have turned on maint messaging can see locate the inactive dois.
- Another thing that I would like to do is standardize the location of error messages. We have a mix of locations: some error messages are adjacent to where the element occurs in the rendered citation and the other are all listed at the end. I have a preference for grouping all of the error messages at the end. Maint messaging is all rendered at the end of the citation.
- Assuming that we do all of this, the simple case conversion from maint message to error message is to change
category
to the correct error cat; add the appropriate error message inmessage
, and sethidden
to the appropriate boolean. - No doubt, this enumeration is incomplete ...
- —Trappist the monk (talk) 15:30, 4 July 2020 (UTC)
- Speaking of error messages, it might be worthwhile to also improve the preview messages on duplicated parameters so that they provide some location information. In articles with many citations it sometimes takes quite a while to spot the citation using e.g.
|date=
twice. --Matthiaspaul (talk) 07:58, 7 July 2020 (UTC)- @Matthiaspaul: That's a MediaWiki feature, unrelated to the citation templates. But there's a script, User:Frietjes/findargdups, which can tell you which template call has the duplicate. -- John of Reading (talk) 08:42, 7 July 2020 (UTC)
- Thanks, John. --Matthiaspaul (talk) 14:27, 7 July 2020 (UTC)
- @Matthiaspaul: That's a MediaWiki feature, unrelated to the citation templates. But there's a script, User:Frietjes/findargdups, which can tell you which template call has the duplicate. -- John of Reading (talk) 08:42, 7 July 2020 (UTC)
- Speaking of error messages, it might be worthwhile to also improve the preview messages on duplicated parameters so that they provide some location information. In articles with many citations it sometimes takes quite a while to spot the citation using e.g.
- The error message function has been renamed
set_error()
→set_message()
and been modified so that it will emit maintenance category 'messages' when themessage
property for that message isnil
. Maint messaging is now part of theerror_conditions{}
table in Module:Citation/CS1/Configuration/sandbox; TODO: rename that table. - Module talk:Citation/CS1/testcases2
- —Trappist the monk (talk) 14:37, 30 July 2020 (UTC)
I worked my originating request as a result of this rework, which moves display_names messaging (inconsistently error and maintenance) to strictly errors. Main, /Configuration and testcases2. Perhaps of note that this changes the error for the "don't know" case from invalid_param_values to disp_name; I made that change to centralize all the disp_name errors fixing. There may be further work that should be done so the other use of that error can be more definite. --Izno (talk) 22:50, 8 August 2020 (UTC)
One other thing: I am not personally convinced that we need 5 categories to handle display_names issues. I think 1 would suffice. Seeking feedback on that point. --Izno (talk) 22:52, 8 August 2020 (UTC)
Template:Cite book needs additional terms
"Template:Cite Book" needs terms for all of the MARC 21 fields, especially total pages, size, etc.71.230.16.111 (talk) 06:47, 24 July 2020 (UTC)
- Why? The fields you mention are intended for cataloguing books. We are citing them, not cataloguing them. This information does not usually go into citations according to most commonly-used academic citation standards. Making fields for this information will just encourage people to fill them in under circumstances where they would be better off omitted. —David Eppstein (talk) 06:51, 24 July 2020 (UTC)
- Agreed. It's actually confusing and detrimental to citations to add claptrap like this, especially total page count, since it's often mistaken for the pages being cited for the information the citation pertains to. And we just have utterly no use for something like "
|size=quarto
". Yeesh. Wikipedia is not anything like WorldCat. — SMcCandlish ☏ ¢ 😼 13:00, 4 August 2020 (UTC)
- Agreed. It's actually confusing and detrimental to citations to add claptrap like this, especially total page count, since it's often mistaken for the pages being cited for the information the citation pertains to. And we just have utterly no use for something like "
- "References" are not just citations. A "citation" only needs to identify a known reference; we need to describe the reference, for readers not able to just go over to a shelf and pick it up, and to convince the reader that it is in fact a valid reference for the subject of the article. Thus the academic standard does not apply; whether something is published as manuscript, paperback or hardcover does matter. Should there be a different template, "identify book" instead of "cite book"?71.230.16.111 (talk) —Preceding undated comment added 06:11, 7 August 2020 (UTC)
Fulltext access fields
I'm sure the way in which access is indicated in citations has been discussed extensively by the regulars here, and I apologize for my ignorance of your past discussions. Is there a field to indicate that a book is public-domain (in this case, a 2018 work of US government) and the fulltext is freely available online? This will make it obvious that it is easy to verify the cited statement, and increase the likelihood of editors and readers actually doing it. I understand that such access parameters are already common on journal article templates.
An additional winkle here: many medical journal articles are currently freely accessible due to a special action taken by publishers for the COVID-19 pandemic. At some future date to be decided upon by the publishers, they will put the articles back behind paywalls. Public licenses are permanent, but free access may be revoked. I'm not sure how widespread this is, but we might end up with a lot of incorrect information on access. HLHJ (talk) 17:29, 8 August 2020 (UTC)
- Does Help:Citation Style 1 § Registration or subscription required answer your question?
- —Trappist the monk (talk) 17:36, 8 August 2020 (UTC)
Help
I have a question about a book that is divided into several individual sections with their own authors. ¿How should I cite that book? In my case I am only interested in one section of that book. --Muwatallis II (talk) 23:11, 8 August 2020 (UTC)
- Author. "Section". Title.
{{cite book}}
:|author=
has generic name (help) is the basic skeleton. If you have some more information we can fill out the rest for you. --Izno (talk) 23:12, 8 August 2020 (UTC)
The book is called: Escuadra Nacional 1818-2018 (no author, only publisher)
The title of the chapter or section of the book already mentioned is: De la Guerra del Pacífico hasta fines del siglo XIX. The author is: Piero Castagneto Garviso. This author is just from the chapter or section of the book.
As I mentioned before, the book has other chapters or sections with their own authors, but I'm only interested in the one already mentioned. --Muwatallis II (talk) 00:04, 9 August 2020 (UTC)
- Piero Castagneto Garviso. "De la Guerra del Pacífico hasta fines del siglo XIX". Escuadra Nacional 1818-2018. Publisher. is how that is done indeed. I expect there is an editor too who you might want to include, and of course a year. --Izno (talk) 00:25, 9 August 2020 (UTC)
- +
|url=http://anyflip.com/yccc/bhap
:- Piero Castagneto Garviso. "De la Guerra del Pacífico hasta fines del siglo XIX". Escuadra Nacional 1818-2018. Publisher.
- —Trappist the monk (talk) 00:30, 9 August 2020 (UTC)
- +
Placement of language annotation
When the source being cited is a chapter in an edited book or an article in a journal, the language of the source (specified with |language=
) should be notated after the chapter or article, rather than after the book or journal, which may include items in several languages. For example, currently we have:
- Author (2020). Buch (in German).
{{cite book}}
:|author=
has generic name (help) - Autor (2020). "Kapitel". In Editor (ed.). Book (in German).
{{cite book}}
:|editor=
has generic name (help) - Autorin (2020). "Artikel". Journal (in German). 3: 1–20.
The first is fine, but in the last two "(in German)" should be moved forward, after the chapter or article. Kanguole 11:50, 9 August 2020 (UTC)
- Recently discussed here; see particularly my comments. --Izno (talk) 11:59, 9 August 2020 (UTC)
- It seems there was substantial support for putting the annotation after the title of the item, with a few in favour of putting it at the end. Either would be better that the current practice of placing it after the name of the book, journal or series, which may be in several languages. But then the discussion got derailed onto formatting of multiple parentheticals. Kanguole 14:12, 9 August 2020 (UTC)
- The conclusion you should draw is that the problem is not easy because of the paranetheticals. --Izno (talk) 14:47, 9 August 2020 (UTC)
- Yeah, Kanguole summed it up well. While I have a preferences for moving it at the end (to avoid creating new problems), moving it after the most-specific title would have my support as well (but the parenthetical issues this creates would need more investigation IMO - some of them seem to be acceptable, whereas others just look too distracting to me - would be like trading one shortcoming for another).
- --Matthiaspaul (talk) 16:19, 9 August 2020 (UTC)
- The conclusion you should draw is that the problem is not easy because of the paranetheticals. --Izno (talk) 14:47, 9 August 2020 (UTC)
- It seems there was substantial support for putting the annotation after the title of the item, with a few in favour of putting it at the end. Either would be better that the current practice of placing it after the name of the book, journal or series, which may be in several languages. But then the discussion got derailed onto formatting of multiple parentheticals. Kanguole 14:12, 9 August 2020 (UTC)
trans-title= splits PDF format indication
In the following example, the "(PDF)" format designation comes after the translated title, which looks odd because the PDF symbol is displayed after the foreign language title:
- Beskorovainyi, Vladimir V.; Soboleva, Elena V. (2010). ИДЕНТИФИКАЦИЯ ЧАСТНОй ПОлЕЗНОСТИ МНОГОФАКТОРНЫХ АлЬТЕРНАТИВ С ПОМОЩЬЮ S-ОБРАЗНЫХ ФУНКЦИй [Identification of utility functions in multi-objective choice modelling by using S-shaped functions] (PDF). БИОНИКА ИНТЕЛЛЕКТА [Bionics of Intelligence] (in Russian). Vol. 72, no. 1. Kharkiv National University of Radioelectronics. pp. 50–54. ISSN 0555-2656.
There are several potential ways to solve this:
- Include the translation in the link - undesirable because the translation does not actually belong into there.
- Move the (format) designator in front of the translation - undesirable because it looks out of place there
- Move the PDF symbol after the translation - undesirable because it also serves as "external link" indicator, also not sure if this is technically possible
- Suppress the PDF symbol and replace it by the normal "external link" symbol. Do we really need the PDF symbol, anyway? (Do we support any other file types with special symbols?)
Ideas? --Matthiaspaul (talk) 14:28, 20 June 2020 (UTC)
- #4 is possible. Yes, other file types do have special symbols if the URL is a certain way and file type. PDF is understandably the most common. Because I have the link handy for Modern skin, the stylings applied to the others are in main.css. The other skins have similar rules, if not exactly the same. (See also phab:T225430.)
- #3 is technically possibly. It would require including the trans-title in the link. (See also prior discussion.) If we do not want a sea of blue on this route, that is also technically possible but it would require an inaccessible design choice (to wit, making the link for some part of the title + trans-title not blue).
- I would favor #2 if there is a consensus that this needs to change. It's puzzling that you think this undesirable given our recent discussions on parentheses stacking... ;) --Izno (talk) 14:59, 20 June 2020 (UTC)
- Thanks for the links, Izno.
- Well, I don't like #2, because it separates the actual title and the translation too much. To me, they belong together logically and therefore should not be separated - just like the format symbol and "(format)" text should be displayed in one location. To me, title information is far more important than format information, therefore, format information should not be inserted in the middle of title information, and in particular not given in two places.
- Therefore, of the given choices, I would prefer #1 (which implies #3), that is, back to the old 2017 behaviour. Although I am not particularly fond of the potentially resulting long blue link labels, they would be of only minor concern to me (display cosmetics) - at least, they are logical.
- For completeness, another solution would be to swap title and trans-title, but I don't actually suggest this, because I think the actual title should be displayed before the translation.
- --Matthiaspaul (talk) 16:21, 20 June 2020 (UTC)
- @Matthiaspaul: I've corrected the citation formatting above (but not in a way that affects the topic of this discussion). I hope you don't mind. Glades12 (talk) 07:03, 13 July 2020 (UTC)
- Good to know that we meanwhile support
|script-*=
and|trans-*=
parameter variants for them. I've changed it to|magazine=
, though - they describe themselves as a magazine rather than as a journal.|work=
is too unspecific. I use|work=
only when none of the more descriptive parameters applies (typically with {{cite web}} or {{cite book}}, rarely with {{cite journal}} or {{cite magazine}}). --Matthiaspaul (talk) 10:22, 13 July 2020 (UTC)
- Good to know that we meanwhile support
- There would be yet another way how this could be solved: Given that providing the PDF icon and a "(PDF)" text is redundant, we could simply suppress the "(format)" text if it resembles one of the external link types recognized and indicated by specific icons. If
|format=
is used to specify something different, it would be displayed as before, but then the icon and the text would not be redundant and therefore look much less out of place than now. --Matthiaspaul (talk) 18:12, 20 July 2020 (UTC)- It is not a given that
the PDF icon and a "(PDF)" text is redundant
. The pdf icon is rendered by MediaWiki as a cssbackground-image
property (MediaWiki:Common.css). Because it is not rendered from an html<img>...</img>
tag, it does not support thealt=
attribute. In cs1|2, the automatic|format=PDF
is a way to notify screen-reader-users that the source is a pdf file. That functionality should not be degraded. - —Trappist the monk (talk) 18:56, 20 July 2020 (UTC)
- I agree, accessibility is important. Still, there are potential remedies for this as well:
- Instead of completely muting the "(format)" text when it would be redundant because of the icon, the text could then be made invisible to normal users, but left readable for screen-readers only:
- Or, the global link decoration could be disabled and the PDF icon be displayed locally (as image, and with
alt=
text). - --Matthiaspaul (talk) 22:57, 20 July 2020 (UTC)
- It is not a given that
- Well, I proposed various ways how to possibly solve this. If they are undesirable, I think, per Izno's offer in the old discussion we should switch back to the 2017 behaviour (basically item #1 in the list). It might be a bit blueish at times, but at least it is logical.
- --Matthiaspaul (talk) 11:32, 10 August 2020 (UTC)
- I was referring you to the discussion where in fact I implemented the newer behavior. I am not interested in returning to the old behavior solely for this concern, and given the general lack of feedback, I'm not sure anyone sees this as a strong concern at this time. --Izno (talk) 20:40, 10 August 2020 (UTC)
How to disable the link?
There's a few links I've seen in references to old webpages with valid archive URLs of what the site looked like in 1997, but there's malware-downloading squatters at the URL now. Is there a way to suspend a link to the site in this template? Or should the URL just be replaced directly with the archive link in such cases? SnowFire (talk) 05:53, 10 August 2020 (UTC)
- @SnowFire: If you add
|url-status=unfit
to the citation, the original URL will not be linked. Read more at Template:Cite web/doc. -- John of Reading (talk) 06:07, 10 August 2020 (UTC)
Portal di Ensiklopedia Dunia