Forum:Two pieces of code needed

Hey everyone. I need someone to create two pieces of code for me. Any help would be appreciated.

1) Code to get rid of teh external links symbol within spans ided with 'noext'.

2) Code to change the colour of links leading to 'non-existant' categories. Having them in teh same clour as normal links just gets confusing.


 * 1)

.noext a:after, .noext a[href^="gopher://"]:after { background-image: none !important; padding: 0 !important; width: 0px !important; }


 * 2) Not possible by my knowledge. Well, at least not without some complicated JS or a modification by Wikia. - Tjcool007 (Talk) 10:27, July 2, 2011 (UTC)
 * Cheers.


 * Expanding on what Tj said, the new category links are all identical. There are no hooks for CSS at all; JS could do it with ajax but the load speed decrease isn't worth it.


 * There is already a  that removes the external link icon. Rappy 20:58, July 4, 2011 (UTC)


 * Yes, but then you'd have to put it around every external link. Like this they're gone on all links. (+ plainlinks doesn't even work by default) - Tjcool007 (Talk) 09:29, July 5, 2011 (UTC)

What if you want the external-link code to work everywhere on your wiki and not just on articles. Or, have I misunderstood  ? Thanks! — Spike  Toronto  11:33, July 5, 2011 (UTC)


 * Tj, the OP asked specifically for 'certain' external links defined with an ID, not all. I was just referring to that. The whole idea of that icon is to tell users they will be leaving the site. I, for one, like to know if I will be navigating away from the site I am on. Also, plainlinks does work by default. My sites don't have a plainlinks class defined in CSS and it's working as intended. Rappy 16:40, July 5, 2011 (UTC)


 * Odd, I must have misread it then. Code changed (not you need to use classes, not ids). What's the wiki you talk about? It definitely doesn't work here: Google . Edit: It works in Monobook, but not Oasis. - Tjcool007 (Talk) 17:11, July 5, 2011 (UTC)


 * Hmm. I looked on an old page that had an external link with plainlinks and apparently someone changed the URL to an interwiki link instead. (probably because of the icon change in Oasis) So, you're right. It works in Monobook, but not in Oasis. Strange how so much code changes are left out in new skins. Rappy 22:34, July 5, 2011 (UTC)


 * TJ, what is the difference between your original code:

 .WikiaArticle a.external::after, .WikiaArticle a[href^="gopher://"]::after { background-image: none !important; padding: 0 !important; width: 0px !important; }
 * and your later code:

 .noext a:after, .noext a[href^="gopher://"]:after { background-image: none !important; padding: 0 !important; width: 0px !important; }
 * What is  ?


 * On the topic of the    class, it also stopped working on our wiki. To make it work, we have this code:

 /* Styling for class="plainlinks" */ background: none !important; padding: 0px !important; } /* END Styling for class="plainlinks" */
 * 1) WikiaMainContent .plainlinks a:after {
 * Thanks! — Spike  Toronto  08:52, July 6, 2011 (UTC)


 * My original code will remove the link icon from the entire wiki, while the second one only removes the icon for links that are inside, like he asked. .WikiaArticle is the zone of the page that contains the actual text on the page (so not the sidebar or the header etc). And yeah, that code fixes the plainlinks, just like my code here: Forum:Plainlinks trouble - Tjcool007 (Talk) 09:32, July 6, 2011 (UTC)


 * What does the    in the code mean? Thanks! And thanks also for the explanation regarding the     span class and   . —  Spike  Toronto  09:37, July 6, 2011 (UTC)

#WikiaMainContent contains 3 parts: the page title (.WikiaPageHeader), the page content (.WikiaArticle) and the category bar at the bottom (.WikiaArticleCategories). So it's almost the same as .WikiaArticle, just with a few extra things. - Tjcool007 (Talk) 10:02, July 6, 2011 (UTC)


 * Thanks! — Spike  Toronto  16:57, July 6, 2011 (UTC)