Jump to content

Help talk:Citation Style 1/Archive 78

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by ClueBot III (talk | contribs) at 02:17, 9 September 2021 (Archiving 1 discussion from Help talk:Citation Style 1. (BOT)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Archive 75Archive 76Archive 77Archive 78Archive 79Archive 80Archive 85

when |archive-url= is broken

In normal display mode (what readers see), broken archive urls are ignored except that the module emits an error message. When editors view the same article in preview mode, and when the archive url is an archive.org url, the module uses a modified form of the archive url. The purpose of that is to enable editors to see archive.org's calendar view so that they might choose the url of an appropriate snapshot to replace the malformed archive url in the template. When |archive-url= holds a malformed archive url, the live module truncates the timestamp from 14 to 6 digits and appends a splat (*). That used to work. So, I have tweaked the code so that the new preview-mode archive url uses the first six (YYYYMM) or four (YYYY) digits of the timestamp, zero-fills to 14 digits, and then appends the splat. To see this in action, you must edit this section (or page) and preview.

Cite web comparison
Wikitext {{cite web|access-date=November 3, 2008|archive-date=2017-06-14|archive-url=https://web.archive.org/web/20170614/http://www.intellivisionlives.com/bluesky/people/askhal/askhal.html|publisher=Intellivision Productions|title=Ask Hal: Frequently Asked Questions to the Blue Sky Rangers|url=http://www.intellivisionlives.com/bluesky/people/askhal/askhal.html}}
Live "Ask Hal: Frequently Asked Questions to the Blue Sky Rangers". Intellivision Productions. Retrieved November 3, 2008. {{cite web}}: |archive-url= is malformed: timestamp (help)
Sandbox "Ask Hal: Frequently Asked Questions to the Blue Sky Rangers". Intellivision Productions. Retrieved November 3, 2008. {{cite web}}: |archive-url= is malformed: timestamp (help)

In the above examples, the live version links to a "We're sorry — something's gone wrong" page while the sandbox links to the calendar view.

Trappist the monk (talk) 19:38, 5 August 2021 (UTC)

Thanks for making this feature work again. (For those interested in the background of this feature, see: Help_talk:Citation_Style_1/Archive_13#web.archive.org/save/...)
However, the "*"-wildcard still seems to work fine with 0-, 4- and 8-digit timecodes, so the zero-filling does not appear to be necessary in all cases:
BTW, if you truncate the archive URL to |archive-url=https://web.archive.org/web/20170614 or shorter, the new implementation throws a Lua error in "Module:Citation/CS1/sandbox at line 2379: attempt to index local 'timestamp' (a nil value)."
The utility of the feature could be further improved if we would allow it to accept |archive-url=http://web.archive.org/web/ as an entry shortcut forcing it to take the URL from the |url= parameter and optionally the timestamp from the |archive-date= parameter to automatically form archive URLs like https://web.archive.org/web/*/http://www.intellivisionlives.com/bluesky/people/askhal/askhal.html or https://web.archive.org/web/20170614*/http://www.intellivisionlives.com/bluesky/people/askhal/askhal.html for the error message, so that editors could utilize our preview to select or create a snapshot from/at archive.org with a minimum amount of keystrokes.
--Matthiaspaul (talk) 02:55, 6 August 2021 (UTC)
Fixed the script error:
Cite web comparison
Wikitext {{cite web|access-date=November 3, 2008|archive-date=2017-06-14|archive-url=https://web.archive.org/web/20170614|publisher=Intellivision Productions|title=Ask Hal: Frequently Asked Questions to the Blue Sky Rangers|url=http://www.intellivisionlives.com/bluesky/people/askhal/askhal.html}}
Live "Ask Hal: Frequently Asked Questions to the Blue Sky Rangers". Intellivision Productions. Retrieved November 3, 2008. {{cite web}}: |archive-url= is malformed: timestamp (help)
Sandbox "Ask Hal: Frequently Asked Questions to the Blue Sky Rangers". Intellivision Productions. Retrieved November 3, 2008. {{cite web}}: |archive-url= is malformed: timestamp (help)
Trappist the monk (talk) 11:39, 6 August 2021 (UTC)

Cite magazine – why upper case Vol.?

Why does {{Cite magazine}} emit volume in upper case: {{cite magazine|title=Some title|magazine=Some Magazine|volume=17}} -> "Some title". Some Magazine. Vol. 17. ? -- Michael Bednarek (talk) 09:23, 7 August 2021 (UTC)

Because it follows a period. Headbomb {t · c · p · b} 10:39, 7 August 2021 (UTC)
OK. Sorry if I'm a pest, but why then is page in lower case? — "Some title". Some Magazine. Vol. 17. p. 18. -- Michael Bednarek (talk) 13:36, 7 August 2021 (UTC)
I don't think you're a pest, but the odds against getting a coherent answer to that are astronomical. Headbomb is right, of course, as you are in your question. 12.182.249.131 (talk) 14:16, 7 August 2021 (UTC)
Why do I hear Tevye in my head when he says, while singing "Tradition":
"You may ask, how did this tradition start?
I'll tell you – I don't know. But it's a tradition..."
Trappist the monk (talk) 16:10, 7 August 2021 (UTC)

display-authors bug

If you specify just one author and then invoke display-authors=1, you get an error. You need to specify an author2 to make it go away (even though author2 isn't displayed!). Urhixidur (talk) 15:19, 4 August 2021 (UTC)

You will get the same error when you have two authors and set |display-authors=2:
{{cite book |title=Title |author=First Author |author2=Second Author |display-authors=2}}
First Author; Second Author. Title. {{cite book}}: |author= has generic name (help); Invalid |display-authors=2 (help)
It is supposed to work that way. When there are only two authors, setting |display-authors=2 becomes meaningless. When there are more than two authors and you only want to display one of their names, then |display-authors=1 will suppress display of the second author name and add et al. to the rendering:
{{cite book |title=Title |author=First Author |author2=Second Author |display-authors=1}}
First Author; et al. Title. {{cite book}}: |author= has generic name (help)
When the template has only one of the two authors, set |display-authors=etal to indicate that the work has more authors whose names are not shown:
{{cite book |title=Title |author=First Author |display-authors=etal}}
First Author; et al. Title. {{cite book}}: |author= has generic name (help)
Trappist the monk (talk) 15:28, 4 August 2021 (UTC)
The (help) link provides the three paths to fixing this error. Izno (talk) 16:14, 4 August 2021 (UTC)
As an aside - the Harv warning has changed to be bold from a brown-ish colour in the last couple of days - any idea what has changed? Keith D (talk) 13:00, 6 August 2021 (UTC)
There are two warnings for SFN. One set is emitted by the SFN module. Those are in red. The other set are from whichever of the three-ish scripts that detect bad SFNs. Those are the brown-ish color. While they may have changed in shade or something, the latter has always been that color. Izno (talk) 13:36, 6 August 2021 (UTC)
My script has not changed and shows the warning messages for the above citations like this:
<span class=warning style="font-size:100%">Harv warning: There is no link pointing to this citation. The anchor is named CITEREFFirst_Author.</span>
Harv warning: There is no link pointing to this citation. The anchor is named CITEREFFirst_Author.
But isn't class=warning going away? If it is, I should change the warning markup to:
<span style="color:#ac6600">Harv warning: There is no link pointing to this citation. The anchor is named CITEREFFirst_Author.</span>
Harv warning: There is no link pointing to this citation. The anchor is named CITEREFFirst_Author.
Trappist the monk (talk) 14:12, 6 August 2021 (UTC)
You might consider emitting a class still so people can customize the color, but sure. Izno (talk) 14:55, 6 August 2021 (UTC)
I am using User:Ucucha/HarvErrors.js Keith D (talk) 19:15, 6 August 2021 (UTC)
No changes to that script since this edit in March 2021. Yesterday was WP:ITSTHURSDAY, there is some small discussion about skins at WP:VPT about monobook skin stuff; related?
Trappist the monk (talk) 19:45, 6 August 2021 (UTC)
It could be but not clear from that what the changes would be. Looking at phab:T285991 seems to imply some changes needed in preferences, but cannot locate checkbox "Enable responsive MonoBook design". I have tried unticking "Enable responsive mode" but that makes no difference. Keith D (talk) 20:18, 6 August 2021 (UTC)
@Keith D: "Enable responsive MonoBook design" is no longer there. It was at Preferences → Appearance, between "Shared CSS/JavaScript for all wikis (more information):" and "Reading preferences". I think it was removed when "Enable responsive mode" was added a little higher up. --Redrose64 🌹 (talk) 22:41, 6 August 2021 (UTC)
Yes, these preferences were flipped; this was in either last week's tech news or the week before's. Izno (talk) 17:41, 8 August 2021 (UTC)

Markup in titles

Peeking at Category:CS1 errors: markup, I see it doesn't include fields like "title". I'm in the process of cleaning up lots of HTML entities (which shouldn't be in these fields either), and I've seen lots of instances of double single quotes (''...'') in the title field. On Wikipedia, this will make italics, but apparently italics are not allowed in COinS fields? Is this something that should be systematically fixed? -- Beland (talk) 07:48, 9 August 2021 (UTC)

If the title of an article includes a binomial name or the name of a genus then by convention this is placed in italics (using double single quotes). - Aa77zz (talk) 08:55, 9 August 2021 (UTC)
Absolutely, and anything else would be utterly wrong and strongly resisted by those who edit organism articles. Peter coxhead (talk) 09:32, 9 August 2021 (UTC)
Is this about Wikipedia article titles or the title field of a citation? If it is the latter, then it crashes into one of the CS1 non-sensical flaws, the fact that |title= may be the source (as in {{cite book}}), or a location within the source (as in {{cite journal}}). This is pertinent, because the title value is auto-formatted differently. In the case of title=source it would be in italics. Including italics markup, would cause the affected text to display in straight type. Because of the fundamental error of mis-defined and mis-applied parameters, more convoluted acrobatics have to be employed. Good luck! 65.88.88.57 (talk) 11:48, 9 August 2021 (UTC)
Italic wikimarkup is permitted where it is appropriate to use it. Bold markup is also allowed though I wonder if bold makes much sense in the context of a citation's title. This search (times out) finds some use of bold markup in |title=. We might create a maintenance category to track bold markup in |title=, |chapter= and aliases. Such categorization must be mindful of '''s (possessive form of italicized text).
Trappist the monk (talk) 11:13, 9 August 2021 (UTC)
I thought kerning was handled in |title=. 65.88.88.57 (talk) 11:48, 9 August 2021 (UTC)
In titles that will be rendered in quotations ({{cite web}}, {{cite journal}}, etc), cs1|2 adds kerning when the title text has leading or trailing quote marks
{{cite periodical |title='leading' quote and trailing "quote" |periodical=Periodical}}
"'leading' quote and trailing "quote"". Periodical.
Trappist the monk (talk) 12:01, 9 August 2021 (UTC)
Ok, this is the most basic case. Is there a problem with inserting a hair-space in code to account for others?
Also, I would include typographic emphasis in |title= if that is how the source is formatted, only as a help for the reader. There may be a minority of readers for whom anything but exact representation may cause confusion. However this additional emphasis should not be a requirement, just as (generally) adherence to case is not a requirement. There is already the semantic emphasis built in to the presentation of the work argument, and the occasional emphasis on |volume= (depending on day of the week, or something). This should be enough to attract readers' attention to the most important information in the citation. But there may be another minority of readers for whom any added emphasis may confuse. 65.88.88.57 (talk) 12:16, 9 August 2021 (UTC)
Triple quotation mark in such a case will cause an error anyway as it will bold the rest of the sentence, not close the italic. Izno (talk) 13:16, 9 August 2021 (UTC)
Umm, nope:
{{cite periodical |title=''Possessive italics'''s in title |periodical=Periodical}} and some trailing text
"Possessive italics's in title". Periodical. and some trailing text
Trappist the monk (talk) 13:56, 9 August 2021 (UTC)