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 6795111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:18:12+00:00 2026-05-26T18:18:12+00:00

Anyone knows how to get the variant tabs to work as actual tabs and

  • 0

Anyone knows how to get the variant tabs to work as actual tabs and not as a drop down?

This is how sr.wikipedia.org has it:
desired solution, as seen on sr.wikipedia.org

and this is how I have it on my zablude.com/wiki/ page:
enter image description here

and I’ve tried everything I found and searched everywhere I could think of but I wasn’t able to find a solution… anyone has any ideas how this works?

  • 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-05-26T18:18:13+00:00Added an answer on May 26, 2026 at 6:18 pm

    They hack it in JavaScript — see this piece of code at the bottom of Медијавики:Vector.js:

    //to be able to switch the language variant (overrides the default buttons with more visible ones)
    function tabWorkaround() {
        if(mw.config.get('wgUserVariant') == 'sr') {
            var tab_urls = {};
            tab_urls[0] = document.getElementById('ca-varlang-0').getElementsByTagName('a')[0].href; //Ћирилица
            tab_urls[1] = document.getElementById('ca-varlang-1').getElementsByTagName('a')[0].href; //Latinica
            $('#p-variants').remove();
            mw.util.addPortletLink('p-namespaces', tab_urls[0], 'Ћирилица');
            mw.util.addPortletLink('p-namespaces', tab_urls[1], 'Latinica');
        }
    }
    $(document).ready(tabWorkaround);
    

    It would probably be cleaner to do it with a MediaWiki hook, though. The following code is untested, but should work if I haven’t made any silly mistakes:

    // show language variants as tabs in Vector skin
    function tabWorkaround( &$skintemplate, &$links ) {
        $links['namespaces'] += $links['variants'];
        $links['variants'] = array();
        return true;
    }
    $wgHooks['SkinTemplateNavigation::Universal'][] = 'tabWorkaround';
    

    (In MW 1.17, this hook is only called from the Vector skin. In MW 1.18, it will affect all skins. If you don’t want that, you could test whether $skintemplate->skinname == 'vector'.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone know how to get this to work if it's possible? class Foo def
Anyone knows why I get this crash from the ibtool? ibtool --generate-strings-file my.strings myViewController.xib
Anyone knows how to get sum of number? For example i have mysql column
anyone knows how to get the active windows (OS native, not inside java app)
i'm looking for advice to see if anyone knows how to get this working...
Anyone knows how to create one? I know this question has been asked before
I wonder if anyone knows how to get this Lion-style toolbar items like we
Anyone knows why i get this error. I am trying to send a POST
I'm trying to get jqueryui drag and drop to work with emberjs. I have
Anyone knows how to get selected text from other application using UI Automation and

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.