Template talk:Ambox
This is the talk page for discussing improvements to the Ambox template. |
|
Template:Ambox is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
Index
|
|||||||||||||
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Possible redesign of small=left version
[edit]This list is incomplete; you can help by adding missing items. |
I have implemented a requested edit at Template:Incomplete list which uses a custom designed smaller version of ambox which is left aligned and automatically adjusting width. If this change sticks it would make sense to modify other templates (e.g. {{expand section}}) to match. Rather than adding an additional variant of ambox, I wonder whether we should explore changing the small=left version to match this style? — Martin (MSGJ · talk) 11:29, 15 July 2021 (UTC)
- I've copied current and sandboxed versions of {{expand section}} below for comparison — Martin (MSGJ · talk) 11:33, 15 July 2021 (UTC)
This section needs expansion. You can help by adding to it. (July 2021) |
This section needs expansion. You can help by adding to it. (July 2021) |
- User:MSGJ: Do you think it might help to post about this discussion on one of the village pump pages, whichever is appropriate, to get more input? DesertPipeline (talk) 13:43, 22 July 2021 (UTC)
- User:MSGJ: Since nobody has objected, I think it might be okay to start an edit request for this – that might help to start a discussion with whoever responds at least, if they don't want to implement it yet. Also, would it be a better idea to have a different parameter variable for the width-variable version? Something like
|small=variable
maybe? DesertPipeline (talk) 14:14, 9 August 2021 (UTC)- Support new layout of small=left. Nice and compact. Question: would the modification be for {{ambox}} only? Looking at Module:Message box, it seems that the CSS is taken from the .mbox-small-left class at MediaWiki:Common.css, line 910. But that is used for when
|small=left
for any message box. Not sure what you're intending. — hike395 (talk) 04:09, 10 August 2021 (UTC)- User:Hike395: Only Template:Ambox supports
|small=left
, I think. I wanted to get that working for other message boxes while still allowing for|small=yes
(which positions it on the right with templates other than ambox) but someone else opposed it because they didn't think my reason for requesting it was sufficient. DesertPipeline (talk) 09:10, 10 August 2021 (UTC)
- User:Hike395: Only Template:Ambox supports
- Support new layout of small=left. Nice and compact. Question: would the modification be for {{ambox}} only? Looking at Module:Message box, it seems that the CSS is taken from the .mbox-small-left class at MediaWiki:Common.css, line 910. But that is used for when
User:MSGJ: Would you mind if I start an edit request for this? I think we've waited long enough; nobody has objected so far. DesertPipeline (talk) 13:30, 18 October 2021 (UTC)
- No I would not mind at all. But do you know the specific pages and changes that need to be made to achive this? — Martin (MSGJ · talk) 13:37, 19 October 2021 (UTC)
- User:MSGJ: I would presume that the changes only need to be made in the message box module. I'm fairly certain that it's acceptable to write an edit request for the module of a template on the template page. Am I correct? DesertPipeline (talk) 16:27, 19 October 2021 (UTC)
- Incorrect - I believe the styling for the ambox is held at MediaWiki:Common.css#L-826. We'll need a specific request before it can be actioned. — Martin (MSGJ · talk) 17:26, 19 October 2021 (UTC)
- User:MSGJ: Okay. So I'm guessing the edit request would be "please change
width: 238px;
at line 831 towidth: auto;
", and explaining why. Also, I think I should check all of the templates which use (or can use) the small-left parameter before doing this, as depending on the amount of text, they may need to have line breaks added so they don't turn into a box spanning the entire width of a page. Regards, DesertPipeline (talk) 11:14, 20 October 2021 (UTC) - Addendum: How is textstyle changed via that file, actually? Unless it's redundant we also need the text style to be set to width = auto. DesertPipeline (talk) 11:17, 20 October 2021 (UTC)
- User:MSGJ: Can you advise regarding my previous question? Thanks, DesertPipeline (talk) 15:10, 23 October 2021 (UTC)
- Sorry, I'm not sure. I think it might involve mbox-text or mbox-text-span. Izno is pretty good with this stuff, perhaps he wouldn't mind helping. We are trying to encode
|style=width: auto;
and|textstyle=width: auto;
to make it the default style in MediaWiki:Common.css. Can you advise please? — Martin (MSGJ · talk) 15:29, 23 October 2021 (UTC)- User:MSGJ: Not sure if this is the right way to do it, but if I add "text-align: center;" to the style parameter of a template with that parameter supported, it centres all the text. Presumably then, if that's added on a new line to that CSS page you linked in the relevant area, it should work. That is, as long as it's not the 'wrong' way to do it in this context. DesertPipeline (talk) 12:06, 24 October 2021 (UTC)
- Sorry, I'm not sure. I think it might involve mbox-text or mbox-text-span. Izno is pretty good with this stuff, perhaps he wouldn't mind helping. We are trying to encode
- User:MSGJ: Okay. So I'm guessing the edit request would be "please change
- Incorrect - I believe the styling for the ambox is held at MediaWiki:Common.css#L-826. We'll need a specific request before it can be actioned. — Martin (MSGJ · talk) 17:26, 19 October 2021 (UTC)
- User:MSGJ: I would presume that the changes only need to be made in the message box module. I'm fairly certain that it's acceptable to write an edit request for the module of a template on the template page. Am I correct? DesertPipeline (talk) 16:27, 19 October 2021 (UTC)
- I have some thoughts about this discussion.
- Regarding auto-width rather than fixed width, I believe it is fixed width because we have an interest in lining up the right edge of the small version of ambox for stacked templates being used at the section level. Do we believe that requirement has gone away or changed since we instituted small versions of these templates? (I doubt it, but maybe you can persuade me and/or others.)
- The reason we have amboxes at all can be attributed basically to differing widths and variable, inconsistent colors in amboxes pre-standardization some 10+ years ago.
- Changing the width so that it is auto in all cases rather than fixed is more or less trivial. It's the removal of current lines MediaWiki:Common.css#L-799 and/or MediaWiki:Common.css#L-809.
- NB, if you decide to make it auto sizing, that will hamper future work to remove the reliance of ambox on being structured as a table for presentation. That is something of a soft oppose for me personally right there.
- I am not interested in removing the fixed width globally regardless without a larger community discussion on the topic than here, at a minimum demonstrating the effects of the change in the single and multiple-mbox (i.e. stacked and/or separate section) template cases, such that the wider community can weigh in on appearance.
- One thing to consider, without tossing the goose and gander, would be to set a larger width in the general case. (I am not necessarily a fan of the squat versions but I do not know if these templates will broadly appear any better in a world with wider, but still-fixed-width, templates.) Either way, our computer screens have gotten wider (and then smaller again with best web practice having a relatively 'narrow' main column of content), so that this may be a reasonable approach. 238px is more or less tiny at the end of the day, even if you have, say, an infobox to your right.
- Regarding auto-width rather than fixed width, I believe it is fixed width because we have an interest in lining up the right edge of the small version of ambox for stacked templates being used at the section level. Do we believe that requirement has gone away or changed since we instituted small versions of these templates? (I doubt it, but maybe you can persuade me and/or others.)
- --Izno (talk) 02:06, 31 October 2021 (UTC)
- For reference, here's what amboxes looked like before they were standardized: Media:NewbieTags.png The standardization was done circa 2007. —DragonHawk (talk|hist) 02:23, 4 November 2021 (UTC)
- Which I noted at 10:19, 26 June 2021 (UTC) above. --Redrose64 🌹 (talk) 09:45, 4 November 2021 (UTC)
- For reference, here's what amboxes looked like before they were standardized: Media:NewbieTags.png The standardization was done circa 2007. —DragonHawk (talk|hist) 02:23, 4 November 2021 (UTC)
- I assume this didn't go further? I highly support this; more readable, takes less space (and causes less whitespace), helps with banner blindness. Our fixed-width {{expand section}} can look much taller than the example given at the top, if the "Reason" parameter is filled; that's not great.
- I think the frwiki design (see here and here) addresses Izno's concerns : left-aligned text, no left/right borders, full-width top/bottom borders, subtle background colour (= no edge-alignment issue). Looks clean and minimalistic. They've already switched from tables (if I understood Izno correctly) to divs (they're generally much further along than us in the Lua transition and in template standardisation efforts). Like them, we should also standardise all section banners to this "small" appearance (no opt-out), since consistency is the goal here. This looks terrible. DFlhb (talk) 11:41, 3 November 2023 (UTC)
Param "info" missing...
[edit]In the full parameter list, "info" is missing. Only when reading the detailed description does one fall over its existence. Nb, this is only a documentation issue. GrayanOne (talk) 06:06, 7 July 2023 (UTC)
How To Add School Songs?
[edit]I would like to add the two school songs; old one 'Morning Has Broken' and current one. I'm not sure how to open a new section. Roscha (talk) 15:03, 24 April 2024 (UTC)
- @Roscha: this is the talk page for discussing improvements to the template
{{Ambox}}
. You may find that either WP:HD or WP:TEAHOUSE is a more appropriate location for your query. --Redrose64 🌹 (talk) 18:21, 24 April 2024 (UTC)- Thank you for the reply. Much appreciated.
- Roscha (talk) 00:30, 25 April 2024 (UTC)
Edit request 13 June 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I've updated Module:Message box/sandbox so amboxes have the notheme class. This improves how they appear in the night theme, see https://wiki.riteme.site/wiki/Template:Ambox/testcases?vectornightmode=1
🐸 Jdlrobson (talk) 05:23, 13 June 2024 (UTC)
- @Jdlrobson Kind of only gives us back the left border color in exchange for changing the whole background to white? Not sure that's a win above how things display right now.
- And also where it's been added will affect the two classes of boxes that currently support night mode ({{cmbox}}es and {{ombox}}es), which I think is not good? Izno (talk) 21:02, 13 June 2024 (UTC)
- Hmm, I hadn't considered ombox and cmbox - I guess we need to tackle these one by one. For example add color: #202122; to .tmbox in Module:Message box/tmbox.css - what do you think? 🐸 Jdlrobson (talk) 01:02, 14 June 2024 (UTC)
- Or we can pick out a color background set. Just tmbox and ambox to poke at. Ambox will effectively be fixed when .metadata dark theme can be turned off. Izno (talk) 05:18, 14 June 2024 (UTC)
- And now tmbox is done. Izno (talk) 05:28, 14 June 2024 (UTC)
- Or we can pick out a color background set. Just tmbox and ambox to poke at. Ambox will effectively be fixed when .metadata dark theme can be turned off. Izno (talk) 05:18, 14 June 2024 (UTC)
- Hmm, I hadn't considered ombox and cmbox - I guess we need to tackle these one by one. For example add color: #202122; to .tmbox in Module:Message box/tmbox.css - what do you think? 🐸 Jdlrobson (talk) 01:02, 14 June 2024 (UTC)