FANDOM


Line 26: Line 26:
   
 
::::So which one would currently work best? -- [[User:Bunai82|Bunai82]] <sup>[[User_talk:Bunai82|(talk)]]</sup> 06:15, June 18, 2011 (UTC)
 
::::So which one would currently work best? -- [[User:Bunai82|Bunai82]] <sup>[[User_talk:Bunai82|(talk)]]</sup> 06:15, June 18, 2011 (UTC)
  +
  +
:::::The one suggest by Ajr is better, it's not that complicated. {{User:Finchelfanno1/SigSubst|08:49 am,Jun/18/11}}

Revision as of 08:49, June 18, 2011

Forums: Index Community Central Forum Minor problem with highlighting names using css
FANDOM's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.

50px-Replacement filing cabinet.svg

Note: This topic has been unedited for 3265 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


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.--GodPray  21:18,6/16/2011 
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?
 Nidek   (Talk)  309 edits made  22:30, June 16, 2011 (UTC)
I'll test. -- Bunai82 (talk) 23:25, June 16, 2011 (UTC)
  • Try 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:

@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. — 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)
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.  Finchelfanno1 (talk / contribs)|08:49 am,Jun/18/11 
Community content is available under CC-BY-SA unless otherwise noted.