This Forum has been archivedVisit the new Forums
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.--
- Did you try changing the order of the definition of the users in the CSS file?
- Nidek (Talk) 309 edits made 22:30, June 16, 2011 (UTC)
a[href|="/wiki/User:Username"],instead, usually works a lot better (that one line instead of five). Also remember to take the , off of the last one. ajr 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:
In the end, your highlighted list only occupies one line in the ".css" files. — SpikeToronto 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)
- The one suggest by Ajr is better, it's not that complicated.
- No, yours is different. Take a look at my css to see what we mean. I have highlighting in there.--
(Reset indent) 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. — SpikeToronto 2:30AM EDT, June 19, 2011
- 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. — SpikeToronto 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)
@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.— SpikeToronto 12:09PM EDT, June 21, 2011