Forum:Minor problem with highlighting names using css

Hello, coming from the Vocaloid wiki / CSS.

I am trying to highlight the current admins names and while I managed to get four of them to work, it is not doing so with the fifth admin 'Damesukekun', I copied the code exactly, but on both Mono and Oasis his name doesn't turn green. -- Bunai82 (talk) 21:12, June 16, 2011 (UTC)


 * In each instance, you have a space after the colon and before his name. This is likely the problem.--


 * I'm sorry, I am unsure which space you mean, the only colon I see is " : " ,and his name isn't spaced. -- Bunai82 (talk) 21:34, June 16, 2011 (UTC)
 * Did you try changing the order of the definition of the users in the CSS file?
 * 22:30, June 16, 2011 (UTC)
 * 22:30, June 16, 2011 (UTC)
 * 22:30, June 16, 2011 (UTC)


 * I'll test. -- Bunai82 (talk) 23:25, June 16, 2011 (UTC)


 * Try  instead, usually works a lot better (that one line instead of five). Also remember to take the, off of the last one.  23:50, June 16, 2011 (UTC)


 * We do it the way Ajraddatz suggests. It works, great one line per person. Also, we put all the names to be highlighted in a separate file: MediaWiki:Common.css/hilite. We do this so as not to clutter up Common.css, Monobook.css, and/or Wikia.css.
 * Once the hilite file is created, you can import it into the ".css" files with the following statement:

@import url("/index.php?title=MediaWiki:Common.css/hilite&action=raw&ctype=text/css"); In the end, your highlighted list only occupies one line in the ".css" files. — Spike Toronto  12:42AM EDT, June 17, 2011


 * The solution Ajr mentions is the easier way out of it, but if you're a bit neurotic like me and you don't want links to admin user pages in the article space of the layout highlighted, the more complicated method that you're currently using is the way to go. ;) The updated version of this more complicated way of doing business is in Avatar Wiki's MediaWiki:Wikia.css. The 888th Avatar   (talk)  10:23, June 17, 2011 (UTC)


 * So which one would currently work best? -- Bunai82 (talk) 06:15, June 18, 2011 (UTC)


 * The one suggest by Ajr is better, it's not that complicated.


 * But that is what I already used 0_o -- Bunai82 (talk) 18:42, June 18, 2011 (UTC)


 * No, yours is different. Take a look at my css to see what we mean. I have highlighting in there.--

For another example, Bunai82, if you click on the link I provided above — MediaWiki:Common.css/hilite — you will go straight to the highlighting code we use at our wiki. — Spike Toronto  2:30AM EDT, June 19, 2011

Alright, and thank you. I'll test these out to see what works best ^_^. -- Bunai82 (talk) 16:29, June 19, 2011 (UTC)


 * I used the coding from SpikeToronto, it seems to be working.
 * Question, is there a way to exclude parts of the highlighting from certain areas? -- Bunai82 (talk) 04:53, June 21, 2011 (UTC) Weird, the hihlite stopped working this morning 0_o -- Bunai82 (talk) 13:34, June 21, 2011 (UTC)


 * Well, the second question is easy to answer: It stopped working because seven minutes later you removed the import line from MediaWiki:Common.css (see here). Also, do you realize that you are using the same color for both Administrators and Bureaucrats? You probably should use two different colors. As for excluding the highlighting from some areas of the wiki, that question has been answered elsewhere in these forums. If I can find it, I’ll post here. But, hopefully, someone with CSS expertise will come along and answer that question before too long. — Spike Toronto  10:34AM EDT, June 21, 2011


 * Ah okay, there are like three CSS medias on Wikia and I am unsure which one is the main type, I thought I had to place one for mono and one for oasis using wikia.css or whatever. Anyway, I actually wanted them to be the same color ^_^;; but I can find another shade if that is the best idea.
 * Thanks again. -- Bunai82 (talk) 15:46, June 21, 2011 (UTC)

What we do is only put in MediaWiki:Common.css those things that apply to both skins: Monobook and Wikia (i.e., Oasis). Then, you put in MediaWiki:Monobook.css those things that apply only to the Monobook skin. Similarly, you put in MediaWiki:Wikia.css those things that apply only to the Oasis skin. There is one thing you have to do though: You have to manually import MediaWiki:Common.css into MediaWiki:Wikia.css with the following statement: @import url("/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css"); If everything is working properly, MediaWiki:Common.css should only have to contain items that apply to both skins. The Monobook skin automatically takes account of MediaWiki:Common.css, so you should not have to import it into MediaWiki:Monobook.css. MediaWiki:Common.css/hilite should get imported into both skins by their importation of MediaWiki.Common.css, if you import into MediaWiki.Common.css the hilite file.— Spike Toronto  12:09PM EDT, June 21, 2011