Return to article MediaWiki talk: Common.css/to do Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.Anti-spam check. Do not fill this in! == Description of work == The below to do page is the list of styles in [[MediaWiki:Common.css]] and friends which are to be converted to [[WP:TemplateStyles|TemplateStyles]]. These are being converted to TemplateStyles for multiple reasons: # To allow ordinary users and administrators to change "sitewide" styles. Editing Common.css is restricted to [[WP:interface administrators|interface administrators]] (i.e. not many people) since late 2018, whereas the majority of the styles in the CSS sheet are fairly benign. Accordingly, moving styles to TemplateStyles and out of Common.css allows a much larger set of people to be able to make changes to widely-used styles (all administrators, and even the vast majority of templates are template protected rather than full-protected). # To decrease the page load on all pages. Every style rule in Common.css, whether used or unused on a specific page, is loaded on all pages. For example, if you have made a stub and it has no navboxes, it still gets the styles for navboxes, infoboxes, horizontal lists, and so on (until the list of sets of styles is empty). This means that pages load slightly slower for everyone on all pages. ## This hurts most on mobile, which is approximately 2/3 of all pageviews these days. # To return power to style mobile to local editors. Right now, many of our styles in Common.css were not carried over into mobile for a couple reasons.{{ordered list|The primary reason is that [[MediaWiki:Mobile.css]] loads after, rather than before, the rest of a specific page. Accordingly, adding styles to it can cause [[FOUC]]s ("jumpy pages while loading"), which are generally bad for both user experience, and these days, search engine optimization (you don't really need to care about the second one if you don't want to).|The second reason is that the WMF has more or less picked up the slack that has created in how our pages look on mobile.}} Now, whether you like the mobile styles or not, it is probably the case that the editors onwiki should decide how the wiki should appear on mobile. Migrating requires three broad steps (which do not necessarily happen in this order or sequentially): # Migrating the templates and modules (most-)associated with each of the classes in Common.css to use, or allow the use, of TemplateStyles. ## (Or for some templates/modules, removing the class entirely from sitewide CSS and using inline styles instead of TemplateStyles. This is most common with substed templates, which TemplateStyles are not great with.) # Migrating the large number of non-templates and non-modules which use the classes in Common.css to use the template or module instead of the class. (Sometimes this necessitates removing the use entirely rather than migration.) This migration is because in #3, we: # Remove the styles from Common.css. Edits of the type as in #1 mostly happen in the background as editors of templates are basically the only ones who need to be interested in those. However, edits of the type in #2 happen outside the template and module spaces. A consequence of #3 is that pages with the manual classes invoked will lose their styling if an appropriate template is not in place to provide that styling. Editors performing this kind of edit are doing their best to replace uses of a class with the appropriate template. They won't always get it right, so if you see them get it wrong or in a way you don't like, either endeavor to correct the edit if you know how, or ask the editor about making a better change, in preference to reverting if at all possible. Summary: Please note that all contributions to Christianpedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Christianpedia:Copyrights for details). Do not submit copyrighted work without permission! Cancel Editing help (opens in new window)