MediaWiki talk:Common.css - Wikimedia Commons


3 people in discussion

Article Images

I finally changed to Babel extension, but when placing them in my Userpage, it shows excessive margin in the left (see the screenshots bellow). I resolved them by removing the statements correspondients to the lines 925 and 927, as following:

@@ -922,9 +922,7 @@
 table.mw-babel-wrapper {
     margin:0em;
     margin-bottom:0.5em;
-    margin-left: 1em;
     background-color: transparent;
-    width:250px;
     border-spacing:2px;
 }

Then, in the line 394, reduce the widt of the cells form 238px to 232px:

@@ -931,7 +931,7 @@
 .mw-babel-notabox {
     margin-left: auto;
     margin-right: auto;
-    width: 232px;
+    width: 238px;
 }
 .mw-babel-box-level-N  {

This will result in more accurate Babel tables that will fit better inside user wikitables.

The following screenshots illustrates better that I try to explain:

  • Excessive margin

  • Removing properties

  • Adjusting the widht

Any comments are welcome. Amitie 10g (talk) 04:33, 1 August 2014 (UTC)Reply

This is only true if you are using babel inside use boxes. If you use user boxes and babel as siblings, it looks like this, this, this, this, this, this and this. And I wonder whether there are users who filled their user page with text so if we remove the margin, they will end up with the text (nearly) running into the babel box. -- Rillke(q?) 08:58, 1 August 2014 (UTC)Reply
Thanks. That's that I need. --Amitie 10g (talk) 19:18, 1 August 2014 (UTC)Reply

As an anecdote, I'm here 3 years later because .mw-babel-notabox { margin-left: auto; margin-right: auto; } causes my global user page to render incorrectly on Commons. TheDragonFire (talk) 15:31, 27 April 2017 (UTC)Reply

What is the reason for MediaWiki:Common.css/Mboxes.css with this huge insert?? This classes are only 1:1 copy from the EnWP and have no really sense here. I have only recently installed a class there where they only makes sense. (@Adrignola: ) User: Perhelion (Commons: = crap?)  19:05, 23 June 2015 (UTC)Reply

There is no net gain in placing .mbox classes in their own file, and then @importing it into Common.css. In fact, that only adds an extra HTTP request. Apparently, the devs disabled the use of @import, probably due to security risks. -- [[User:Edokter]] {{talk}} 11:21, 16 September 2015 (UTC)Reply
Sorry, that was not what I meant, I mean the most classes per se are here completely pointless and unused (I've also talked with some other users concrete about this, like User:FDMS4).User: Perhelion (Commons: = crap?)  12:21, 16 September 2015 (UTC)Reply
{{Mbox}}? --Steinsplitter (talk) 12:24, 16 September 2015 (UTC)Reply
I self inserted the classes there (as linked above). So this seems the only exception.User: Perhelion (Commons: = crap?)  12:30, 16 September 2015 (UTC)Reply
Next try (after 3 years): Commons:Village pump#Cleanup Common.css -- User: Perhelion 12:23, 5 February 2018 (UTC)Reply

All this classes should now be converted to TemplateStyles, which are unfortunately the main part of this CSS. Compare en:MediaWiki talk:Common.css #Cleaning up message box CSS and phab:T228604 and #/Mboxes.css -- User: Perhelion 17:29, 19 August 2019 (UTC)Reply

{{Edit request}}

Please add the following CSS:

/* Workaround for T270741 */
.filehistory td:last-child {
    word-break: break-word;
    min-width: 10em;
}
.listfiles td.TablePager_col_img_description {
    word-break: break-word;
    min-width: 10em;
}

Thanks, ᴀlbanɢeller (talk) 22:47, 21 May 2021 (UTC)Reply

@Tacsipacsi: would this be OK? ᴀlbanɢeller (talk) 22:56, 21 May 2021 (UTC)Reply
@Neveselbert (mobile): I hope so. (P.S. There’s no need to keep to edit requests open for the same request, so I deactivated the other one.) —Tacsipacsi (talk) 22:48, 22 May 2021 (UTC)Reply
  Done Awesome! Thank you! 4nn1l2 (talk) 23:39, 23 May 2021 (UTC)Reply

{{Edit request}}

Please add:

/* Remove bullets when there are multiple edit page warnings */
ul.permissions-errors > li {
	list-style: none none;
}

ul.permissions-errors {
	margin: 0;
}

It's about the cascade protected message. When it shows up when it's protected manually and also cascade protected, there's a bullet. أحمدمحمدرمضانسعيد (talk) 13:30, 15 July 2021 (UTC)Reply

@أحمدمحمدرمضانسعيد:   Not done This was previously requested and declined because there was no clear reason for the change. I still don't see what this is supposed to fix. --AntiCompositeNumber (talk) 21:52, 16 February 2022 (UTC)Reply

{{Edit request}} See en:Wikipedia:Village pump (technical)#What is happening for a request from WMF developer Jdlrobson (at 17:18, 22 May 2022 (UTC)) to work around a bug related to responsive layout. DMacks (talk) 18:50, 22 May 2022 (UTC)Reply

  Not done, it has been fixed now. -- CptViraj (talk) 03:10, 25 May 2022 (UTC)Reply

Please add the following to allow plainlist and hlist to work together:

.hlist.plainlist dd:before, .hlist.plainlist dd:after,
.hlist.plainlist dt:before, .hlist.plainlist dt:after,
.hlist.plainlist li:before, .hlist.plainlist li:after {
	content: none;
}

Without it, there is no way to override the interpuncts in hlist, which is useful when unordered lists are used to make certain objects more accessible to screen readers. Ahecht (TALK
PAGE
) 18:29, 2 June 2022 (UTC)Reply

Why would you do that? It may be useful for users of screen readers, but a list without any delimiters is not very usable for sighted users. plainlist is clearly delimited by the line breaks, hlist is clearly delimited by the interpuncts, but if neither of them is present, the list items are visually indistinguishable. —Tacsipacsi (talk) 07:34, 3 June 2022 (UTC)Reply
  Not done no consensus. —‍Mdaniels5757 (talk • contribs) 03:57, 11 October 2022 (UTC)Reply
If there is actually a use case for this, it would be better served with TemplateStyles instead of addming more to Common.css. AntiCompositeNumber (talk) 04:05, 11 October 2022 (UTC)Reply

{{Edit request}}

Please change to the following:

Line 999: Line 999:
.listfiles .TablePager_col_img_description { .listfiles .TablePager_col_img_description {
word-break: break-word; word-break: break-word;
min-width: 10em; min-width: auto;
} }

The fixed 10em width causes overflowing issues on narrower screens. ᴀlbanɢeller (talk) 16:27, 21 January 2023 (UTC)Reply

  Done Awesome! Thank you! —‍Mdaniels5757 (talk • contribs) 23:16, 25 February 2023 (UTC)Reply

Heya, there is an alternance style defined on some wikis (including the french one).
This allows for tables to be displayed with different value of grey.
This would allow to not manually mess with the color code of each line of the tables.
The discussion was risen in Commons:Bistro#Commons:Deceased_contributors_:_128_en_attente_en_page_de_discussion
The corresponding code is here Commons:Deceased_contributors/style.css.
Esby (talk) 10:10, 17 October 2023 (UTC)Reply

You should use TemplateStyles these days. It doesn’t bloat CSS on all pages for a such rarely-used feature, and you can also create it yourself. —Tacsipacsi (talk) 21:06, 17 October 2023 (UTC)Reply
That does not seems to work.
1 I am getting a Page Template:Deceased contributors/style.css has no content. error when attempting to use it on the given page.
2 created for that Template:Deceased_contributors_style.css
I tried to use <templatestyles src="Deceased_contributors_style.css" /> same error.
3 I cannot create Deceased_contributors/style.css for some reason it checks for the syntax of the template.
The documentation is saying subpage, but apparently, i cannot create a subpage without triggering the validation of the template ?
Esby (talk) 12:27, 19 October 2023 (UTC)Reply

The documentation is saying subpage, but apparently, i cannot create a subpage without triggering the validation of the template ?

It’s because only template/module subpages ending with .css are treated as stylesheets by default. (Admins can change this for individual pages, making other pages stylesheets or these pages non-stylesheets.) And yes, validation runs for stylesheets to prevent accidental or malicious introduction of invalid syntax, selectors, rules etc. (If validation doesn’t run, it’s because the page you chose is not treated as a stylesheet, so you won’t be able to use it in <templatestyles>.) However, I don’t see anything in Commons:Deceased contributors/style.css that should be caught by the validation, what does it complain about? —Tacsipacsi (talk) 18:19, 19 October 2023 (UTC)Reply
an error in french, "Liste de sélecteur non valide à la ligne 9, caractère 1." (list of selector not valid at line 9 - character 1)
which is corresponding to this line table:is(.alternance, .alternance2) > * > tr > th {
Esby (talk) 21:45, 24 October 2023 (UTC)Reply
I think it’s the :is() that TemplateStyles doesn’t allow – it’s a relatively new thing, supported only by browsers released in the past 2-3 years, which is way less than what Wikimedia/MediaWiki normally supports. If you want to support both alternance and alternance2, you need to rewrite it as table.alternance > * > tr > th, table.alternance2 > * > tr > th {. —Tacsipacsi (talk) 22:24, 24 October 2023 (UTC)Reply
now it is triggering the abuse filter. "Galleries with no gallery tag"... Esby (talk) 12:44, 26 October 2023 (UTC)Reply
Because you tried to create it in the gallery (main) namespace. TemplateStyles pages don’t belong there; they belong in the template or module namespace. If you used the template namespace, the abuse filter wouldn’t catch you. —Tacsipacsi (talk) 22:17, 26 October 2023 (UTC)Reply
  DoneThanks! It is working.
I modified the corresponding wiki page to use the css.
I also renamed it to Template:Table_Alternance/Style.css so it can be used else where if needed.
Esby (talk) 10:07, 27 October 2023 (UTC)Reply

{{Edit request}} A lot needs to be done about message boxes on Commons, but removing text-align: justify from the rules for .messagebox and .notice would be a good start: justified alignment is considered outdated in web design and looks ugly especially on small screens.

Compare:

You would need to remove

from two lines. Thank you. Jack who built the house (talk) 10:29, 15 December 2023 (UTC)Reply

  Done https://bash.toolforge.org/quip/AU7VTh4a6snAnmqnK_oj --Lucas Werkmeister (talk) 17:25, 5 January 2024 (UTC)Reply

When a page is both manually protected, and transcluded in a cascade-protected page at the same time, I see two bullets on the side of the MediaWiki:Cascadeprotected warning message. Also, the bullets destroy the formatting of MediaWiki:Blockedtext.

I suggest doing what some other Wikimedia wikis do: to "remove bullets when there are multiple edit page errors". Code: ul.permissions-errors{margin:0}, ul.permissions-errors > li {list-style:none}. 2604:3D08:9476:BE00:20C9:491B:5951:7E35 18:56, 28 March 2024 (UTC)Reply

{{Edit requested}} Please make the following replacement. This fixes the sizing of the images in Special:Search (example search results) to be contained in a 120x180px square, top aligned and retaining aspect ratio.

/* https://phabricator.wikimedia.org/T320459#8310207 */
.searchResultImage-thumbnail .image img {
   object-fit: contain;
   object-position: center;
   border: none;
}
.searchResultImage .searchResultImage-thumbnail {
	width: initial;
	height: initial;
}

with

/* https://phabricator.wikimedia.org/T320459#8310207 */
/* https://phabricator.wikimedia.org/T367122 */
.searchResultImage .searchResultImage-thumbnail img {
   object-fit: contain;
   object-position: center;
   border: none;
}
.searchResultImage .searchResultImage-thumbnail {
	width: 120px;
	height: initial;
    max-height: 180px;
}

This is related to Commons:Village_pump/Technical#Special:Search_and_broken_thumbnails. Ping @ebrahim and @Lucas Werkmeister as recent and responsive editors. —TheDJ (talkcontribs) 19:38, 11 June 2024 (UTC)Reply

  Done User:TheDJ: Thanks! −Ebrahimtalk 21:24, 14 June 2024 (UTC)Reply

Example URL: [1] – The following CSS class yields white boxes with lightgray font. Screenshot

.mw-search-results li:nth-child(odd) {
    background-color: #f6f8fc;
}

Simon04 (talk) 10:29, 6 August 2024 (UTC)Reply

Extended content

/* Article message box styles */
table.ambox {
    margin: 0 10%;   /* 10% = Will not overlap with other elements */
    border: 1px solid #a2a9b1;
    border-left: 10px solid #36c;    /* Default "notice" blue */
    background: #fbfbfb;
}
table.ambox + table.ambox {   /* Single border between stacked boxes. */
    margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text {            /* The message body cell(s) */
    padding: 0.25em 0.5em;       /* 0.5em left/right */
}
.ambox td.mbox-image {           /* The left image cell */
    padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {      /* The right image cell */
    padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
}

table.ambox-notice {
    border-left: 10px solid #36c;    /* Blue */
}
table.ambox-speedy {
    border-left: 10px solid #b32424;    /* Red */
    background: #fee7e6;                   /* Pink */
}
table.ambox-delete {
    border-left: 10px solid #b32424;    /* Red */
}
table.ambox-content {
    border-left: 10px solid #f28500;    /* Orange */
}
table.ambox-style {
    border-left: 10px solid #fc3;    /* Yellow */
}
table.ambox-move {
    border-left: 10px solid #9932cc;    /* Purple */
}
table.ambox-protection {
    border-left: 10px solid #a2a9b1;       /* Gray-gold */
}

/* Image message box styles */
table.imbox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 3px solid #36c;    /* Default "notice" blue */
    background: #fbfbfb;
}
.imbox .mbox-text .imbox {    /* For imboxes inside imbox-text cells. */
    margin: 0 -0.5em;    /* 0.9 - 0.5 = 0.4em left/right. */
}
.mbox-inside .imbox {    /* For imboxes inside other templates. */
    margin: 4px;
}

table.imbox-notice {
    border: 3px solid #36c;    /* Blue */
}
table.imbox-speedy {
    border: 3px solid #b32424;    /* Red */
    background: #fee;             /* Pink */
}
table.imbox-delete {
    border: 3px solid #b32424;    /* Red */
}
table.imbox-content {
    border: 3px solid #f28500;    /* Orange */
}
table.imbox-style {
    border: 3px solid #fc3;    /* Yellow */
}
table.imbox-move {
    border: 3px solid #9932cc;    /* Purple */
}
table.imbox-protection {
    border: 3px solid #a2a9b1;       /* Gray-gold */
}
table.imbox-license {
    border: 3px solid #88a;       /* Dark gray */
    background: #f7f8ff;          /* Light gray */
}
table.imbox-featured {
    border: 3px solid #cba135;    /* Brown-gold */
}

/* Category message box styles */
table.cmbox {
    margin: 3px 10%;
    border-collapse: collapse;
    border: 1px solid #a2a9b1;
    background: #DFE8FF;    /* Default "notice" blue */
}

table.cmbox-notice {
    background: #D8E8FF;    /* Blue */
}
table.cmbox-speedy {
    margin-top: 4px;
    margin-bottom: 4px;
    border: 4px solid #b32424;    /* Red */
    background: #FFDBDB;          /* Pink */
}
table.cmbox-delete {
    background: #FFDBDB;    /* Red */
}
table.cmbox-content {
    background: #FFE7CE;    /* Orange */
}
table.cmbox-style {
    background: #FFF9DB;    /* Yellow */
}
table.cmbox-move {
    background: #E4D8FF;    /* Purple */
}
table.cmbox-protection {
    background: #EFEFE1;    /* Gray-gold */
}

/* Other pages message box styles */
table.ombox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #a2a9b1;       /* Default "notice" gray */
    background: #f8f9fa;
}

table.ombox-notice {
    border: 1px solid #a2a9b1;       /* Gray */
}
table.ombox-speedy {
    border: 2px solid #b32424;    /* Red */
    background: #fee;             /* Pink */
}
table.ombox-delete {
    border: 2px solid #b32424;    /* Red */
}
table.ombox-content {
    border: 1px solid #f28500;    /* Orange */
}
table.ombox-style {
    border: 1px solid #fc3;    /* Yellow */
}
table.ombox-move {
    border: 1px solid #9932cc;    /* Purple */
}
table.ombox-protection {
    border: 2px solid #a2a9b1;       /* Gray-gold */
}

/* Talk page message box styles */
table.tmbox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #c0c090;    /* Default "notice" gray-brown */
    background: #f8eaba;
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" */
    margin: 2px 0;               /* class ensures that this declaration overrides other */
    width: 100%;  /* For Safari and Opera */     /* styles (including mbox-small above) */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
    line-height: 1.5em;          /* also "nested", so reset styles that are   */
    font-size: 100%;             /* set in "mbox-small" above.                */
}

table.tmbox-speedy {
    border: 2px solid #b32424;    /* Red */
    background: #fee;             /* Pink */
}
table.tmbox-delete {
    border: 2px solid #b32424;    /* Red */
}
table.tmbox-content {
    border: 2px solid #f28500;    /* Orange */
}
table.tmbox-style {
    border: 2px solid #fc3;    /* Yellow */
}
table.tmbox-move {
    border: 2px solid #9932cc;    /* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
    border: 1px solid #a2a9b1;    /* Gray-brown */
}

/* Footer and header message box styles */
table.fmbox {
    clear: both;
    margin: 0.2em 0;
    width: 100%;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;     /* Default "system" gray */
}
table.fmbox-system {
    background: #f8f9fa;
}
table.fmbox-warning {
    border: 1px solid #bb7070;  /* Dark pink */
    background: #ffdbdb;        /* Pink */
}
table.fmbox-editnotice {
    background: transparent;
}
/* Article message box styles */
table.ambox {
    margin: 0 10%;   /* 10% = Will not overlap with other elements */
    border: 1px solid #a2a9b1;
    border-left: 10px solid #36c;    /* Default "notice" blue */
    background: #fbfbfb;
}
table.ambox + table.ambox {   /* Single border between stacked boxes. */
    margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text {            /* The message body cell(s) */
    padding: 0.25em 0.5em;       /* 0.5em left/right */
}
.ambox td.mbox-image {           /* The left image cell */
    padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {      /* The right image cell */
    padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
}

table.ambox-notice {
    border-left: 10px solid #36c;    /* Blue */
}
table.ambox-speedy {
    border-left: 10px solid #b32424;    /* Red */
    background: #fee7e6;                   /* Pink */
}
table.ambox-delete {
    border-left: 10px solid #b32424;    /* Red */
}
table.ambox-content {
    border-left: 10px solid #f28500;    /* Orange */
}
table.ambox-style {
    border-left: 10px solid #fc3;    /* Yellow */
}
table.ambox-move {
    border-left: 10px solid #9932cc;    /* Purple */
}
table.ambox-protection {
    border-left: 10px solid #a2a9b1;       /* Gray-gold */
}

/* Image message box styles */
table.imbox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 3px solid #36c;    /* Default "notice" blue */
    background: #fbfbfb;
}
.imbox .mbox-text .imbox {    /* For imboxes inside imbox-text cells. */
    margin: 0 -0.5em;    /* 0.9 - 0.5 = 0.4em left/right. */
}
.mbox-inside .imbox {    /* For imboxes inside other templates. */
    margin: 4px;
}

table.imbox-notice {
    border: 3px solid #36c;    /* Blue */
}
table.imbox-speedy {
    border: 3px solid #b32424;    /* Red */
    background: #fee;             /* Pink */
}
table.imbox-delete {
    border: 3px solid #b32424;    /* Red */
}
table.imbox-content {
    border: 3px solid #f28500;    /* Orange */
}
table.imbox-style {
    border: 3px solid #fc3;    /* Yellow */
}
table.imbox-move {
    border: 3px solid #9932cc;    /* Purple */
}
table.imbox-protection {
    border: 3px solid #a2a9b1;       /* Gray-gold */
}
table.imbox-license {
    border: 3px solid #88a;       /* Dark gray */
    background: #f7f8ff;          /* Light gray */
}
table.imbox-featured {
    border: 3px solid #cba135;    /* Brown-gold */
}

/* Category message box styles */
table.cmbox {
    margin: 3px 10%;
    border-collapse: collapse;
    border: 1px solid #a2a9b1;
    background: #DFE8FF;    /* Default "notice" blue */
}

table.cmbox-notice {
    background: #D8E8FF;    /* Blue */
}
table.cmbox-speedy {
    margin-top: 4px;
    margin-bottom: 4px;
    border: 4px solid #b32424;    /* Red */
    background: #FFDBDB;          /* Pink */
}
table.cmbox-delete {
    background: #FFDBDB;    /* Red */
}
table.cmbox-content {
    background: #FFE7CE;    /* Orange */
}
table.cmbox-style {
    background: #FFF9DB;    /* Yellow */
}
table.cmbox-move {
    background: #E4D8FF;    /* Purple */
}
table.cmbox-protection {
    background: #EFEFE1;    /* Gray-gold */
}

/* Other pages message box styles */
table.ombox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #a2a9b1;       /* Default "notice" gray */
    background: #f8f9fa;
}

table.ombox-notice {
    border: 1px solid #a2a9b1;       /* Gray */
}
table.ombox-speedy {
    border: 2px solid #b32424;    /* Red */
    background: #fee;             /* Pink */
}
table.ombox-delete {
    border: 2px solid #b32424;    /* Red */
}
table.ombox-content {
    border: 1px solid #f28500;    /* Orange */
}
table.ombox-style {
    border: 1px solid #fc3;    /* Yellow */
}
table.ombox-move {
    border: 1px solid #9932cc;    /* Purple */
}
table.ombox-protection {
    border: 2px solid #a2a9b1;       /* Gray-gold */
}

/* Talk page message box styles */
table.tmbox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #c0c090;    /* Default "notice" gray-brown */
    background: #f8eaba;
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" */
    margin: 2px 0;               /* class ensures that this declaration overrides other */
    width: 100%;  /* For Safari and Opera */     /* styles (including mbox-small above) */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
    line-height: 1.5em;          /* also "nested", so reset styles that are   */
    font-size: 100%;             /* set in "mbox-small" above.                */
}

table.tmbox-speedy {
    border: 2px solid #b32424;    /* Red */
    background: #fee;             /* Pink */
}
table.tmbox-delete {
    border: 2px solid #b32424;    /* Red */
}
table.tmbox-content {
    border: 2px solid #f28500;    /* Orange */
}
table.tmbox-style {
    border: 2px solid #fc3;    /* Yellow */
}
table.tmbox-move {
    border: 2px solid #9932cc;    /* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
    border: 1px solid #a2a9b1;    /* Gray-brown */
}

/* Footer and header message box styles */
table.fmbox {
    clear: both;
    margin: 0.2em 0;
    width: 100%;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;     /* Default "system" gray */
}
table.fmbox-system {
    background: #f8f9fa;
}
table.fmbox-warning {
    border: 1px solid #bb7070;  /* Dark pink */
    background: #ffdbdb;        /* Pink */
}
table.fmbox-editnotice {
    background: transparent;
}

I'm pretty sure none of this code is necessary. Ambox, ombox and fmbox are just redirects to Mbox on Commons, so nothing should exist with those classes. Tmbox already uses template styles (Template:Tmbox/styles.css), so all of this code can just be deleted, right? —Matrix(!) {user - talk? - uselesscontributions} 09:12, 26 August 2024 (UTC)Reply

fmbox does not redirect to mbox. The fmbox code should probably remain and be converted to work with dark mode. Sohom (talk) 14:48, 26 August 2024 (UTC)Reply
@Sohom Datta: Thanks for pointing that out. I just copied the templatestyles from enwiki (Template:Fmbox/styles.css), so it should be unnecessary now. —Matrix(!) {user - talk? - uselesscontributions} 15:54, 26 August 2024 (UTC)Reply
When I do maintenance on other wikis and search for affected classes, I often get Commons results as well. For example, searching for ambox gave File:West Virginia Mountaineers logo.svg now, which uses ambox-move. I think such uses should be cleaned up before removing the styles from Common.css. —Tacsipacsi (talk) 22:12, 26 August 2024 (UTC)Reply
@Tacsipacsi: is there an easy way to check for affected classes in search results? There's quite a few irrelevant results when searching for "ambox". —Matrix(!) {user - talk? - uselesscontributions} 15:13, 4 September 2024 (UTC)Reply
@Matrix: I fear not. I guess the search results have to be postprocessed in some way (for example, if one uses Pywikibot’s SearchPageGenerator, the postprocessing can happen in Python). Or just also clean up irrelevant results that can be cleaned up – comments like <!-- Templates "Template:Ambox/core", were used in the original description page as well , but do not appear to exist on commons. --> or <!-- {{!-}} {{Ambox}} --> don’t add any value to file description pages. (Of course, dozens if not hundreds of irrelevant results will remain, but at least not thousands.) —Tacsipacsi (talk) 07:05, 12 September 2024 (UTC)Reply
All right. I started some cursory searches at User:Matrix/classes to check if some of the classes are actually being used anywhere. Most of them aren't. We can then do filtering out later. —Matrix(!) {user - talk? - uselesscontributions} 18:41, 12 September 2024 (UTC)Reply