Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7823727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:21:15+00:00 2026-06-02T08:21:15+00:00

There is a custom namespace named Item: on the main wiki that I edit,

  • 0

There is a custom namespace named Item: on the main wiki that I edit, and the complaint is that every page inside that namespace shows up as Item:This_item — Item:That_item — Item:Foo_item.

I went surfing through the web and the CSS for that skin, and came across:

span#ca-nstab-main:before,
span#ca-nstab-user:before,
span#ca-nstab-wp:before {
content: "[ ";
}
span#ca-talk:before {
content: "& ";
}
span#ca-talk:after {
content: " ]";
}

which takes the namespace name “I’ll use main as the example” and the corresponding talk page name and makes them show up as [ main & talk ] instead of main talk.

I was wondering if there was something similar that would allow me to display Item:Foo as just Foo stripping the “Item:” off. I know that the items listed on the category page are in div#mw-pages a tags.

Perhaps even an in-line way to use JavaScript to strip the first five characters off? I say “in-line” because $wgAllowUserJs is set to false on this wiki.

Edit:
The wiki-core parses it out as:

<style type="text/css">
/*<![CDATA[*/      
a[title^=&quot;Item:&quot;] {
    font-family: 'Lucida Grande', Geneva, Arial, Verdana, monospace;
    font-size: 12px;
    display: inline-block;
    overflow: hidden;
    text-indent: -2.1em;
}
/*]]>*/       
</style>

How do I make the quotes not be parsed, is there a trick? Can I use single quotes instead of double like on the font-family line?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T08:21:21+00:00Added an answer on June 2, 2026 at 8:21 am

    You could try something like this if you’re only able to use CSS. (http://jsfiddle.net/zPJHU/)

    li a {
    /* monospace fonts may be more consistant cross browsers */
    font-family: "Courier New", monospace;
    font-size: 1em;
    display:inline-block;
    overflow:hidden;
    text-indent: -2.9em; /* may have to play with this value */
    }
    li a:hover{
        font-size: 1.8em; /* just for demonstration of font-size increase */
    }
    

    Demo markup:

    <p>Hover over links to increase font-size</p>
    <ul>
        <li><a href="#Item:wicket" title="This really says: 'Item:Wicket'">Item:Wicket</a></li>
        <li><a href="#Item:chewbacca" title="This really says: 'Item:Chewbacca'">Item:Chewbacca</a></li>
        <li><a href="#Item:obiwan" title="This really says: 'Item:Obi Wan Kenobi'">Item:Obi Wan Kenobi</a></li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a custom UserControl created in WPF that allows for RDP access. I
is there any custom asp.net membership providers that someone has already created online. I
I have the following situation: There is one custom view inside of the first
I have a custom view that accepts drags. In the custom view there is
There are a few things that the custom grid does that you cannot do
Are there any patches out there for custom keywords in SVN?
There is a custom implementation of KSPA which needs to be re-written. The current
In my custom cell there is a UILabel and one UIButton . Whenever I
Is there any code or custom options available to achieve the following : 1>
There exist tools for comparing code against a custom specified set of coding guidelines/standards

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.