MediaWiki talk:Gadget-site.css

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)

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

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)


 * I have copied all infobox styles to Template:Infobox/styles.css, Template:Extension/styles.css, Template:Extension/status.css, and Template:Skin/styles.css — ExE Boss 21:05, 6 July 2021 (UTC)
 * Did you mean not to use Extension/styles.css on Template:Tool as noted by its use above? Izno (talk) 21:58, 6 July 2021 (UTC)
 * (and ) use Template:Extension/ status .css, not Template:Extension/ styles .css. The former contains only the styles for the classes (which are used by all of, , and ), whereas the latter contains styles that only make sense for . — ExE Boss  22:10, 6 July 2021 (UTC)
 * I deliberately did not reference /status.css. See the search above where Template:Tool had the class for . Izno (talk) 22:17, 6 July 2021 (UTC)
 * Though it looks like I hit a false positive there. Izno (talk) 00:43, 7 July 2021 (UTC)