MediaWiki talk:Wikia.css

Uberfuzzy's Comments?
Is the css for these going to be removed it may confuse some users --Tama 63  18:12, September 9, 2011 (UTC)


 * Yeah, ill take Fuzzy out. Probably not needed but still.--

Usage for my wiki
Hi,

I want to ask if I can use this for my wiki:

/* Interlanguage link footer */ .mainpage .WikiaArticleInterlang h3, .mw-special-Contact div.WikiaArticleInterlang h3, .mw-special-Forum div.WikiaArticleInterlang h3 { font-size: 18px; height: 55px; margin-left: 90px; font-weight: bolder; } .mainpage .WikiaArticleInterlang h3, .mw-special-Forum div.WikiaArticleInterlang h3 { padding-top: 20px; } .mw-special-Contact div.WikiaArticleInterlang h3 { padding-top: 11px } div.WikiaArticleInterlang { display:none; } .mw-special-Contact div.WikiaArticleInterlang, .mw-special-Forum div.WikiaArticleInterlang { display:block; } .mainpage .WikiaArticleInterlang, .mw-special-Contact div.WikiaArticleInterlang, .mw-special-Forum div.WikiaArticleInterlang { background: url('http://images.wikia.com/es/images/b/be/Banderas_-_interlanguages.gif') no-repeat 10px, -moz-linear-gradient(top,rgba(242,242,242,0) 50%,#f2f2f2 100%); background: url('http://images.wikia.com/es/images/b/be/Banderas_-_interlanguages.gif') no-repeat 10px, -webkit-gradient(linear,0% 0%,0% 100%,color-stop(50%,rgba(242,242,242,0)),color-stop(100%,#f2f2f2)); background: url('http://images.wikia.com/es/images/b/be/Banderas_-_interlanguages.gif') no-repeat 10px, -o-linear-gradient(top,rgba(242,242,242,0) 50%,#f2f2f2 100%); background: url('http://images.wikia.com/es/images/b/be/Banderas_-_interlanguages.gif') no-repeat 10px, -ms-linear-gradient(top,rgba(242,242,242,0) 50%,#f2f2f2 100%); border: 1px solid #D9D9D9; height: 60px; margin: 0; margin-top: 10px; } .mw-special-Forum #forum-display { clear: both; margin: 0 10px; } .mw-special-Forum #mw-content-text { margin-bottom: 15px; } .mainpage .WikiaArticleInterlang ul, .mw-special-Forum div.WikiaArticleInterlang ul { font-size: 14px; padding-top: 24px; } .mw-special-Contact div.WikiaArticleInterlang ul { font-size: 14px; padding-top: 16px; } .mainpage .WikiaArticleInterlang ul li:first-child, .mw-special-Contact div.WikiaArticleInterlang ul li:first-child, .mw-special-Forum div.WikiaArticleInterlang ul li:first-child { padding-left: 10px; }

Yours

 Suriyaa iSC  My Talk   Announcements  14:31, June 8, 2014 (UTC)

What is the purpose of .i18ndoc ?
Hi!

When editing MediaWiki:Wikia.css in a wiki where that page has never been changed (in this case http://tlj.wikia.com/wiki/MediaWiki:Wikia.css - however, in the meantime, the css there does exist), the MediaWiki instance automatically adds the following content. The initial edit of the page shows this as added even before the first save, implying that the page was technically blank before the initial edit: .i18ndoc { background-color: #FFF77D; border-bottom: 1px solid lightgrey; font-family: monospace; font-size: 8pt; height: 140px; overflow: auto; padding: 3px; } What is the purpose of this? I have searched the community wiki here and found no hit for "i18ndoc". I have also used independent search engines and found some evidence that the lack of documentation confuses other editors, too: "nobody ... know(s) what it modifies. ... I assume it modifies nothing at all." When something like this is automatically added, I would at least expect a comment to explain the purpose, and ideally link to some documentation that explains further why this is needed and what would happen if this was removed or changed.

I have no idea how many Wikia admins edit their CSS, but I assume that every one that does is affected by this. One of the reasons why the automatically inserted code is annoying is that the editor flags two of those lines:

--Lachnummer (talk) 11:37, January 2, 2016 (UTC)
 * Line 3: Expected end of value but found 'lightgrey'. (Sounds like an error.) Using height with border-bottom can sometimes make elements larger than you expect. (Sounds like an info or warning.)
 * Line 8: Using height with padding can sometimes make elements larger than you expect. (Sounds like an info or warning.)


 * I have no clue what the .i18ndoc class might be used for (perhaps nothing). I'm not sure why the "lightgrey" value would be throwing a flag, as it's a valid color value (just to test it, I added a light grey border at the bottom of my comment, and as you can see, it works). The height with padding thing is just a warning that, as it says, using height and padding together can potentially make the object larger than you might expect. Hope this helps. 15:31, January 19, 2016 (UTC)


 * Presumably, the code is there to give an example of some CSS so the user can understand it a bit. It does nothing to impact a user's experience and honestly, I don't know why it matters whether it's empty or not. --Sajuuk talk 09:00, January 28, 2016 (UTC)


 * To me, that does not look like an example at all. "i18n" means "internationalization", so "i18ndoc" presumably is or was intended for "documentation of an internationalization component". If that stuff is meant as an example, there should be a comment that says so.
 * New pages are empty by default. If they are not, this is unusual, surprising. This is not good. If you do not understand something, it is potentially dangerous (CSS can be relevant for security). I assume that there is a purpose to it. If there is, document it. If there is no purpose, remove it. It's common sense.
 * --Lachnummer (talk) 09:20, January 28, 2016 (UTC)


 * A quick Github search yields this page. It seems it does have a purpose: style the documentation displayed when editing i18n messages, only available at messaging. Since it's only useful at that wiki - that too, outdated and barely edited - I support its removal at c:starter:MediaWiki:Wikia.css. 悲観論者 10:35, January 28, 2016 (UTC)


 * It isn't added on wikis via Starter's Wikia.css; see its history (or lack thereof). Rather, what's going on is that Messaging is used as the default state for the MediaWiki namespace on all wikis. Since c:messaging:MediaWiki:Wikia.css has this CSS class, it is thus added by default on all other wikis on Wikia, and therefore to remove it from other wikis (which I support), it must be removed from there. 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 10:16, January 29, 2016 (UTC)

Suggest to remove it from default Wikia.css
A few weeks ago I have removed the section from Wikia.css, with no effects observed. I conclude that all new wikis do not need this and suggest to remove it from the default content that is automatically added when that page is created. --Lachnummer (talk) 09:20, January 28, 2016 (UTC)