Template talk:Ambox

(Redirected from Module talk:Message box/ambox.css)
Latest comment: 6 days ago by Sapphaline in topic CSS instead of tables

Proposal to revisit param type severity scale to encompass ToU violations

edit

There is an implicit severity scale in the description of Ambox param type, which is expressed primarily by the left border color, with red as the highest severity, and secondarily by the default image icon, and in one case, by background color. But I believe that the typing fails to take into account one of the most severe type of article issue, namely violation of Wikipedia's terms of use, and this should be corrected. Possibly this can be corrected solely by changes to the doc page, in how it specifies the purpose and values of param type, but more likely it will require an additional param value. I am proposing a modification to add support for this (extract in the style of the Ambox doc page for param type):

Currently, the top two (most severe) type values are |type=speedy and |type=delete and generate the red border and so on, but are restricted to deletion issues by dint of their names and of the doc explaining them. However, there is another category of issue that imho is of top severity, but that is not a deletion issue and that are not currently handled by the template (at any level of severity), namely, violations of the ToU, or at least, violations of portions of the ToU involving legal implications unrelated to content, such as WP:COPYRIGHTS (ToU §7). In this case, deletion does not solve the problem, nor is there any particular reason to delete the page, as long as the issue is speedily dealt with by compliance with the Terms, which at English Wikipedia is described at WP:RIA.

The best approach in a missing-attribution situation is just to provide it, but it is not always clear where content comes from, or the user may not have the permissions or the skills to do so. For the latter case, we have two templates (that I know of) to deal with it: {{copypaste}} (with red border/type=speedy), and {{Unattributed translation}} (orange border, type=content). In neither case is the type value accurate, because the first has nothing to do with speedy (or any) page deletion, and the second has nothing to do with content. Both are related to ToU violations in the area of COPYRIGHT, and this type of violation must be corrected, per the ToU, and may not be overruled by consensus, nor by Pillar Five (IAR), or by anything else. Nor is deletion appropriate; copying relevant material from sister projects is encouraged, and marking it speedy or delete would be entirely the wrong resolution.

The existing delete and speedy values are not adequate for the purpose, consequently, we need a new Ambox type imho, to flag cases of missing or incorrect attribution, perhaps |type=terms, and possibly a new border and background color as indicated above.

A test version is available in the Ambox sandbox and supporting module files. View and compare the look and feel in context of the other Ambox types at {{Ambox/sandbox/doc#type}}. You can use the sandbox version to generate different versions of existing templates, for example, here is how one template would look in the new style:

{{Copypaste/sandbox|section|source=another Wikipedia? |date=December 2024}}

And another:

{{Unattributed translation/sandbox|source=another Wikipedia}}

(This demo requires sandbox versions: Template:Ambox/sandbox/doc rev. 1261227368, Module:Message box/sandbox rev. 1261223846, Module:Message box/sandbox/ambox.css rev. 1261219502, and Module:Message box/configuration/sandbox rev. 1261228574.)
(Not an edit request, yet, because I think it needs discussion first.) Thanks, Mathglot (talk) 03:52, 5 December 2024 (UTC)Reply

I would support this! I had to remove your stuff from the sandbox styles for now for my own edit request, unfortunately. Aaron Liu (talk) 02:59, 11 August 2025 (UTC)Reply

I want all these amboxes coloured green

edit

How do I modify my personal monobook.css code to colour them green, now that {{Ambox}} has been migrated to Lua? -- Denelson83 20:44, 16 July 2025 (UTC)Reply

This is an ugly hack, but it appears to work:
.mw-parser-output .ambox {
    background-color:lightgreen  !important; color:inherit;
  }
There is probably a more elegant way to do it. You can pick your own color if you don't like "lightgreen". – Jonesey95 (talk) 01:15, 17 July 2025 (UTC)Reply
I will try that. Thank you. -- Denelson83 07:31, 28 July 2025 (UTC)Reply
Now as in 2013? Gonnym (talk) 09:58, 17 July 2025 (UTC)Reply

Adding black colour for office actions to MoS

edit

Hello, I come here from Wikipedia:Manual_of_Style/Article_message_boxes. Since the template {{Legal order}} has recently been created, these seems to be an emerging consensus to use the black color for office actions in templates. See the discussion at Template talk:Legal order § Please change the left bar to solid red from solid black. This would also be consistent with the color used for Office blocks (see Wikipedia:Protection policy § Office actions).

For this reason, I propose we add a final row to the table at Wikipedia:Manual of Style/Article message boxes § Categories and colours for office actions and use the template {{Legal order}} as an example. FaviFake (talk) 13:22, 8 August 2025 (UTC)Reply

  Done. This proposal seems like a reasonable parallel to the protection icon. – Jonesey95 (talk) 17:56, 10 August 2025 (UTC)Reply
Thanks! FaviFake (talk) 23:12, 10 August 2025 (UTC)Reply

Fix stripe and bg color in dark mode

edit

Please replace with the sandbox version, which unfortunately has to introduce specificity and !important. Since this is a templatestyles change, every single box at TM:Ambox/testcases has the new, sandbox styles; please compare https://web.archive.org/web/20250729115619/https://en.wikipedia.org/wiki/Template:Ambox/testcases . Aaron Liu (talk) 03:44, 11 August 2025 (UTC)Reply

The tests look like an improvement to me. Thanks for including the archive.org link, which shows the side stripes in gray instead of the desired colors. Since this request is so new, I will leave this open for a day or two for other template editors to examine or implement. – Jonesey95 (talk) 05:19, 11 August 2025 (UTC)Reply
  Done (Jonesey95, the page is full protected and you're not an admin so you couldn't do it yourself). * Pppery * it has begun... 00:01, 12 August 2025 (UTC)Reply
  Undone Since this request seems to have caused Wikipedia:Village pump (technical)#Coptic identity: Maintenance template has extra orange stripe. * Pppery * it has begun... 01:38, 12 August 2025 (UTC)Reply
@Aaron Liu and Jonesey95: * Pppery * it has begun... 01:38, 12 August 2025 (UTC)Reply
I would also prefer not to fix this now even ignoring the broken, see particularly phab:T365330 as part of MediaWiki talk:Common.css/to do#Dark mode: metadata. Dropping !importants on stuff really is not nice in the slightest and the appropriate fix is for upstream to adjust. Izno (talk) 02:49, 12 August 2025 (UTC)Reply
Andddd I'd also guess the importants may impact mobile hacking at how amboxes are presented. IOW this is a bad change. Izno (talk) 03:37, 12 August 2025 (UTC)Reply
Got it, I've filed Phab:T401872 for removing the !important-s instead since I couldn't find a template that needed it. Aaron Liu (talk) 22:04, 13 August 2025 (UTC)Reply

CSS instead of tables

edit