MediaWiki talk:Gadget-site.css

= 2020 =

Code direction
Hello. Codes in rtl languages like Persian are broken because the right-to-left structure is applied to them. By adding this command, you can prevent the codes from being right-aligned so that their readability is not lost: pre, code { direction: ltr } Thanks. Alireza Ivaz (talk) 07:35, 10 September 2020 (UTC)
 * The above code won’t work. ResourceLoader “helps” by flipping directions in right-to-left languages, so the above code will be transformed into  if the user interface language is RTL. This function can be disabled, luckily:   —Tacsipacsi (talk) 11:27, 13 September 2020 (UTC)

Add style for
Add the following style to MediaWiki:Gadget-site.css for consistency: See also --Shirayuki (talk) 22:53, 16 October 2020 (UTC)


 * All of the styling for that template really should be moved into TemplateStyles rather than adding yet more bloat to every page. I'd rather we didn't do this. Jdforrester (WMF) (talk) 17:07, 18 November 2020 (UTC)

= 2021 =

Infobox
Working spot for tracking all the uses of infobox and infobox like things and wondering if it's time for MediaWiki wiki to bow to the superior name for generic infoboxes (would help mobile use).

Uses infobox:


 * 1) Toolserver:Template:Tool
 * 2) User:Brigante mandrogno
 * 3) User:Andri Dariel
 * 4) User:Hoo User Page Bot
 * 5) User:Xtian~mediawikiwiki
 * 6) User:MBisanz (not gonna deal)

Used infobox and converted to Template:Sidebar:


 * 1) Template:ResourceLoader navigation
 * 2) Template:Development policy
 * 3) Template:GitLab Navigation
 * 4) Template:Deprecation policies

Uses tpl-infobox:


 * 1) Template:API-head
 * 2) Template:Wikimedia engineering project information
 * 3) Template:Project
 * 4) Template:Snippet
 * 5) Template:Tool
 * 6) Template:RFC
 * 7) Template:Skin
 * 8) Template:Extension

Uses ext-infobox


 * 1) Template:Extension
 * 2) Template:Tool

Uses ext-status


 * 1) Template:Extension
 * 2) Template:Skin
 * 3) Template:Tool

Uses skin-infobox


 * 1) Template:Skin
 * 2) Template:Tool

Izno (talk) 21:28, 19 May 2021 (UTC)

Ok, ER for .infobox is up. Now to decide how to deal with the rest of the mess. --Izno (talk) 05:15, 20 May 2021 (UTC)

Yes, mobile does (and probably others), but we already had another class doing .infobox work, which is .tpl-infobox, which at least I've got all the infobox templates that reference a class referencing as above. What I have been thinking we should do is remove the .infobox styles in Common.css and then whenever I decide what we should do about not having a template called "infobox", we move all the templates above to use .infobox along with TemplateStyles. But either way, the current class definitions in this file are going to make testing a sad day.

I think there's probably good reason to have that template now to hold the styles, even just a basic wikitext version, so we can also handle small resolutions etc. And maybe get consistent infoboxes, Idk. This wiki confuses me that there has been so much "I want my special styles"-isms (and the lack of an infobox template is one), and the fact that Template:Sidebar isn't used more, and and.... --Izno (talk) 19:41, 26 May 2021 (UTC)

Remove .mainpage in js
edit request Of the 6 references to .mainpage, 5 are old copies of Common.css (which has a MediaWiki-supported solution these days employed as today) and 1 is a copy of an offwiki Common.css. Language versions of the main page are unaffected as they do not register as main pages. Remove from MediaWiki:Gadget-site.js.

This may also speak to a need for one or another changes: --Izno (talk) 15:49, 7 June 2021 (UTC)
 * Target rootpage-MediaWiki instead of page-MediaWiki in site.css. That would hit these pages also.
 * Improve Translate extension to identify language subpages of the canonical main page as main pages also such that page-MediaWiki is added to the translated main pages.
 * Possibly, there should be a page--main-page added by core to enable language CSS from the other direction.
 * And/or associated MediaWiki:MainPage.css so the main-page specific CSS can be taken out somehow.
 * Done. --Izno (talk) 04:17, 6 July 2021 (UTC)