[08:31:30] How can I create a CSS in my userspace, making it only effective for my main userpage? [08:31:50] My case is as following: [08:32:41] I'd like to create a matrix with HTML table on my user page, and a CSS is required for it [08:33:06] But that CSS isn't expected to take effect elsewhere for me [08:33:14] TemplateStyles would work but you need to create that page with the correct content model which would need administrative permissions [08:33:49] I haven't tested it, but would it work if they created it in the template namespace and then moved it to the user namespace? Or would that also require admin rights perhaps (re @sjoerddebruin: TemplateStyles would work but you need to create that page with the correct content model which would need administrative permis...) [08:34:01] Could work too [08:34:15] Shall I create something in my user space at first and put it here [08:34:25] Then you can check it out [08:35:45] [[fr:wikt:User:Unite together]] [08:36:12] [[fr:wikt:User:Unite together/sator-square.css]] [08:37:17] These two are my table contents and CSS for it [08:45:48] How can I make this CSS work for and only for this table [08:49:23] As @sjoerddebruin sjoerddebruin already said it will require admin rights to make a user sandbox page CSS sanitized or you can try what J said. But you can import the styles from another page like this https:pa.wikipedia.org/wiki/user:Kuldeepburjbhalaike/ਕੱਚਾ ਖ਼ਾਕਾ and https:pa.wikipedia.org/wiki/user:Kuldeepburjbhalaike/ਕੱਚਾ ਖ਼ਾਕਾ/styles.css ( message> [08:49:23] re @cvictorovich: These two are my table contents and CSS for it) [08:50:41] The body i each page has a class indicating the page name — in this case it is `page-Utilisateur_Unite_together`. You can scope your CSS selector to that class [08:51:15] The CSS would still be loaded for other pages, but it would only have effect in that page. [08:52:02] When I create a page in .css suffix, is it automatically in CSS content model [08:52:08] This works, and is how it's usually done on the English Wikipedia. You'd create a page under `Template:TemplateStyles sandbox//.css`, then move it to userspace once it's been made. (re @jhsoby: I haven't tested it, but would it work if they created it in the template namespace and then moved it to the user namespace? Or ...) [08:52:51] Beware that CSS and sanitized CSS are different content models. Only the latter can be loaded in by TemplateStyles (re @cvictorovich: When I create a page in .css suffix, is it automatically in CSS content model) [08:53:21] No if you create a page in user namespace it will be CSS only (not Sanitized CSS) (re @cvictorovich: When I create a page in .css suffix, is it automatically in CSS content model) [08:53:58] What does « sanitized » here mean [08:54:52] https://www.mediawiki.org/wiki/Css-sanitizer [08:57:50] Userspace CSS (the "CSS" content model) can allow anything, like a userscript. The consequence is that it can't be loaded automatically for other users; just yourself, and only when you include it in your common.css files or similar. Sanitized CSS is a more locked down version of CSS: no imports, background images only from commons, error checking, etc. It's [08:57:50] what TemplateStyles n [08:57:50] eeds to load in a CSS file that's safe to view for any user. [09:07:08] This isn’t available elsewhere (re @ChlodAlejandro: This works, and is how it's usually done on the English Wikipedia. You'd create a page under Template:TemplateStyles sandbox/ The trick is to just create a CSS file in the Template namespace [09:09:02] then just move it afterwards [09:09:47] No, I'm doing so on fr.wikt (re @ChlodAlejandro: then just move it afterwards) [09:11:00] Why does that matter? (re @cvictorovich: No, I'm doing so on fr.wikt) [09:11:56] I cannot move a page to another wiki [09:13:43] … [09:13:43] You create it in fr.wikitonary in the Template namespace. Doesn't really matter where. [[wikt🇫🇷Template:Whatever/mystyle.css]]. Then you move that page to `User:Yourusername/something.css`. It will continue to be the "saniticed CSS" content model, and thus available to templatestyles via `` [10:02:38] Look at them now [10:59:31] I added templatestyles to import the css. See. (re @cvictorovich: Look at them now) [12:07:00] Many many thanks. Then I might have some further tunings (re @Kuldeepburjbhalaike: I added templatestyles to import the css. See.) [12:17:54] @Kuldeepburjbhalaike How can I make the whole thing align center [12:19:05] That attribute escaped me [12:35:27] Table documentation: https://www.mediawiki.org/wiki/Help:Tables [12:35:28] Or you can use grid or flex to display wherever you want. [12:47:39] margin:auto;? [12:48:56] [[w:en:HELP:TABLECENTER]] [19:00:22] mediawiki login api failing on my wifi network.. is it possible that my network is blocked? : https://tools-static.wmflabs.org/bridgebot/d392ad77/file_68733.jpg [19:00:38] working fine on my hotspot ;-;