Jump to content

Template talk:Quote box

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Unchanged background color in dark mode for captions of embedded Wikimedia Commons files

[edit]

Switching to dark mode changes the specified background colour for the quote-box text (parameter: bgcolor) to black, but that for the Wikimedia file-caption text (parameter: background-color) remains unaffected. Example: https://wiki.riteme.site/wiki/Wichita_Lineman#Background_and_content Birdman euston (talk) 02:49, 25 September 2024 (UTC)[reply]

On closer examination, the specified background colour of the file-caption text does change in dark mode, but to white not black. Birdman euston (talk) 02:58, 25 September 2024 (UTC)[reply]
The background color of the file caption is explicitly set to "background-color:AliceBlue;" in a div tag in that article. I removed it, and dark mode works fine. I don't think this has anything to do with the quote box template. – Jonesey95 (talk) 19:22, 25 September 2024 (UTC)[reply]
Thanks - it's a Wikimedia file causing the problem, to be sure. Since editors often embed them in Wikipedia quote boxes, it's worth noting here that Wikimedia files' non-default background colours are apparently not (fully) compatible with Wikipedia's dark mode at present. Birdman euston (talk) 06:02, 26 September 2024 (UTC)[reply]
I am aware of problems with transparent SVG files, but I don't see anything wrong with the file on that page in dark mode, now that the custom caption background color has been removed. – Jonesey95 (talk) 14:13, 26 September 2024 (UTC)[reply]

Font size is too small

[edit]

The font size is terrible, I have to squint my eyes. It is 88%, which is on the brink of the allowed size in MOS:SMALLFONT, 85%. Quote text is not secondary text in Wikipedia, readers will absolutely want to read it in full, so there is no valid reason to make it this small.

I suggest to increase to at least 13px (~93%) on Vector. Jack who built the house (talk) 13:13, 10 November 2024 (UTC)[reply]

I agree with using a higher font-size percentage, but when I tried to take the font size to 100% for accessibility, the pitchforks came out and I reverted the change. Maybe 93% would have more support. – Jonesey95 (talk) 14:08, 10 November 2024 (UTC)[reply]
I thought this had been fixed but I guess I just haven't encountered a quote box template in a while.
Where's a better, larger place to have this discussion, if the obscurity of this talk page was one of the main objections last time around? Wikipedia talk:Manual of Style/Text formatting? Wikipedia talk:Manual of Style/Accessibility? Belbury (talk) 11:24, 6 December 2024 (UTC)[reply]
The best place is here, with notices at other talk pages. – Jonesey95 (talk) 14:39, 6 December 2024 (UTC)[reply]

Template-protected edit request on 9 December 2024

[edit]
.quotebox cite { display:block;
+
.quotebox cite {

This fixes {{reflist}}. There was an extra newline between the backlink and the citation.

@TheDJ: I don't see why display:block was added. The problem affects the bottom half list items in the boxes in WP:REPEATCITATION. 172.97.141.219 (talk) 08:28, 9 December 2024 (UTC)[reply]

What do you mean, the template realist doesn't use quotebox ? —TheDJ (talkcontribs) 09:16, 9 December 2024 (UTC)[reply]
Ah I see what you mean now. The page WP:REPEATCITATION should not be using template quote box. It is not making a quote, it is giving an example, and usage of the quote box template in way for which it was not designed, is likely to create problems like this. —TheDJ (talkcontribs) 09:19, 9 December 2024 (UTC)[reply]
I chose to use {{qb}} over {{qf}} to avoid adding padding that wasn't there. {{box}} doesn't work in dark mode, whose fixing was my goal. What should we use on WP:Citation overkill, WP:Citation underkill and WP:Contort the citations?
If in way for which it was not designed, why is cite in the templatestyles? The previous wikitext used <blockquote> with night-mode-unfriendly inline CSS, so the previous author probably somewhat considered it to be a "quote". 172.97.141.219 (talk) 09:22, 9 December 2024 (UTC)[reply]
I mean {{qb|1=<ref>{{citation|title=test}}</ref>{{reflist}}}} should have "test" on the same line. 172.97.141.219 (talk) 09:20, 9 December 2024 (UTC)[reply]
Please do not misuse the quote box template. I have fixed the dark mode display on WP:REPEATCITATION. You might want to read more about how to fix dark mode problems at mw:Help:Lint_errors/night-mode-unaware-background-color and similar pages. You can ask for help at WP:VPT. – Jonesey95 (talk) 14:16, 9 December 2024 (UTC)[reply]
I saw your change and propagated it to WP:Citation underkill and WP:Contort the citations.
I read the suggested mw:Help:Lint_errors/night-mode-unaware-background-color. It seems to be telling me to add color:black;. However, the problematic text was already black, and your good solution was to remove background:white;. Which part of that page, that when read, applied to WP:REPEATCITATION?
I thought deduplicating styles from 3 pages using {{qb}} was a good idea, but since 2 people said this is misuse, I went over to WP:VPT to ask for a template. 172.97.141.219 (talk) 15:00, 9 December 2024 (UTC)[reply]
mw:Help:Lint errors/night-mode-unaware-background-color#Quick start shows how to fix background that are transparent or inherited. In this case, background:white was similar to background:transparent, so I removed it. – Jonesey95 (talk) 19:05, 9 December 2024 (UTC)[reply]
I added your idea with the remove word to that page. 172.97.141.219 (talk) 03:36, 10 December 2024 (UTC)[reply]