MediaWiki talk:Gadget-ReferenceTooltips.js: Difference between revisions
Content deleted Content added
→Update request 9 July 2024: reply to Traumnovelle: Yes, see #Update request 14 July 2024. (-) |
→Preferences: new section |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 276:
:::::::(Plus I don't want to sound like an old person but footnotes are smaller in physical books. [[Special:Contributions/78.3.197.2|78.3.197.2]] ([[User talk:78.3.197.2|talk]]) 19:45, 12 July 2024 (UTC))
:::::Disagree per what IP wrote. The old style was fine and I would like it restored. [[User:Traumnovelle|Traumnovelle]] ([[User talk:Traumnovelle|talk]]) 09:25, 13 July 2024 (UTC)
:::::Several thoughts:
:::::* Work to compute is secondary here, but there should be a rationale for smaller font from a design perspective.
:::::* Technically we don't have the current font size of Reference Tooltips in [https://doc.wikimedia.org/codex/latest/design-tokens/font.html#font-size design tokens] that we are recommended to use. Page Previews also use the default font size, 14px.
:::::* ''"I think it would look awkward. At least harder to tell apart from body text"'' – in theory, yes, but in practice, I think, the tooltip content is already well-isolated by border + paddings + shadow. My hypothesis is that you'll quickly get used to the body font size once you enable it. To test this hypothesis, you can add this<syntaxhighlight lang="css">
.rt-overlay.rt-overlay {
font-size: var(--font-size-medium, 14px);
}
</syntaxhighlight>to [[special:mypage/common.css|your common.css]] and, after some time, say how it goes. I added it to mine.
:::::* ''"footnotes are smaller in physical books"'' – obviously [[WP:NOTPAPER]], but if the argument goes "Footnotes are smaller in the reference section itself", the counterargument is "The reference in a tooltip is isolated and doesn't compete for space or attention with anything, so there is no reason to downsize it".
::::: [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 09:52, 14 July 2024 (UTC)
::::::{{tq|1=in theory, yes, but in practice, I think, the tooltip content is already well-isolated by border + paddings + shadow}}<br>If the tooltip content is not enough isolated, we might add a bit more side padding to that end:
::::::{| border=1 cellpadding=4 style="border-collapse: collapse; border-color: var(--border-color-base, #a2a9b1)"
| Increased font size + increased padding
| Current look
|-
| [[File:English Wikipedia Lemniscate elliptic functions 2024-07-14 10-33-47.png|frameless|none]]
| [[File:English Wikipedia Lemniscate elliptic functions 2024-07-14 11-54-45.png|frameless|none]]
|}
::::::More examples with the default text size set to "Small" in the "Appearance" section: [[:File:English Wikipedia Lemniscate elliptic functions 2024-07-14 10-43-32.png|current look]], [[:File:English Wikipedia Lemniscate elliptic functions 2024-07-14 10-48-59.png|increased font size]], [[:File:English Wikipedia Lemniscate elliptic functions 2024-07-14 10-50-25.png|increased font size + increased padding]]. [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 12:07, 14 July 2024 (UTC)
::::::The main reason to make the text in the popup slightly smaller would be to better fit in a narrow text column, since the popup box is narrower than typical skins have for paragraphs of body copy. If the popup used the same font size as the article body that would also be fine though, in my opinion. It shouldn't be larger though. –[[user:jacobolus|jacobolus]] [[User_talk:jacobolus|(t)]] 14:33, 14 July 2024 (UTC)
:::::::As I promised, the popup width in my [[#Update request 14 July 2024|updated version]] is relative to the font size anyway. [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 14:45, 14 July 2024 (UTC)
::{{tq|1=Footnote boxes are the same width as before but now much less text fits on each line}}<br>This actually made me think that probably we should also made the tooltip wider when the user opted for the large font size in ''Vector''. [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 06:57, 10 July 2024 (UTC)
:::Do your updates fix the gadget on Vector 2010? [[User:Traumnovelle|Traumnovelle]] ([[User talk:Traumnovelle|talk]]) 09:26, 14 July 2024 (UTC)
Line 282 ⟶ 303:
== Update request 14 July 2024 ==
{{editprotected|answered=yes}}
This update addresses user complaints voiced in [[MediaWiki talk:Gadget-ReferenceTooltips.js#Update request 9 July 2024]] and includes other changes.
Line 301 ⟶ 322:
* Do minor chores and code style fixes.
[[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 09:33, 14 July 2024 (UTC)
: {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 23:22, 15 July 2024 (UTC)
== Preferences ==
There is a [[phab:T179415|task]] regarding this gadget about setting preferences. [[User:Wargo|Wargo]] ([[User talk:Wargo|talk]]) 13:10, 16 February 2025 (UTC)
|