https://bugzilla.wikimedia.org/show_bug.cgi?id=29975

--- Comment #5 from ShoeMaker <[email protected]> 2012-04-21 18:18:10 UTC 
---
(In reply to comment #4)
> (In reply to comment #2)
> > I cogitated a workaround that seems to work for me in css..
> > There has to be a better way though....
> > 
> > 
> > /* strip "NS:" namespace from category pages fix */
> > a[title^='NS:'] {
> >     font-family: 'Lucida Grande', Geneva, Arial, Verdana, monospace; /*your
> > font(s) +", monspace"*/
> >     font-size: 12px; /*Set to whatever font-size those items currently use*/
> >     display: inline-block;
> >     overflow: hidden;
> >     text-indent: -1.5em; /*fudge this number until your namespace prefix
> > disappears*/
> > }
> > /* strip "NS:" namespace from category pages fix end */
> 
> That's disgusting :P

Yes, but it visually worked.. For those that can use JavaScript, there is an
alternative:

/*
Namespace Stripping
Fix by DDOwiki User:Ague
20 April 2012
*/
$('a[title^="Item:"]').each(function() {
    this.innerHTML = this.innerHTML.replace("Item:", "");
    this.title = this.title.replace("Item:", "");
})
/* Leave final semi-colon out. When MW parses this, for some reason it
automatically adds a semi-colon. */

/* Optionally, un-comment the code below to strip the Item: from the page title
as well.  

MAKE SURE TO ADD THE SEMI-COLON AFTER THE }) ABOVE IF YOU UN-COMMENT BELOW!  */

/*
$('h1#title').each(function() {
    this.innerHTML = this.innerHTML.replace("Item:", "");
});
$('title').each(function() {
    this.innerHTML = this.innerHTML.replace("Item:", "");
})
*/

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to