Extension talk:Header Tabs

Jump to navigation Jump to search

About this board

Old messages from this page are archived.

Squeak24 (talkcontribs)

Hi, I have header tabs running OK, that's fine. But I am seeing the headings for the tabs in the table of contents, is there a way to prevent it?

I have found this Topic:Rac8gqq6a6igx7r8 but it's four years old, wondering if there is a better way of doing it without hacking the code.

Reply to "Hiding tab headings from TOC"

Multiple Tabs being appended to other tabs

Rosencrantz~mediawikiwiki (talkcontribs)

I have an issue after an upgrade to MW 1.30 where tabs are (intermittently) being appended to the end of other tabs.

It's primarily happening in Safari (12.0.2) and Chrome (71). I haven't been able to replicate it in Firefox (60.3.0esr), but I have some other users who have been with other versions of FireFox (still waiting on version specifics).

It usually appears after several reloads of the page, and goes away when you click on the tab that "should" be the source of the content. (i.e. TAB 3 and TAB 4 have been appended to the end of TAB 1. When you click on TAB 3 and back to 1 the TAB 3 content is gone from TAB 1. (similarly for TAB 4).

Reply to "Multiple Tabs being appended to other tabs"
Acnetj (talkcontribs)
Reply to "Header Tabs issues"

#forminput: First "popup" doesn't work on first tab

Nakohdo (talkcontribs)


When using two #forminput elements with parameter "popup" on a form page that uses HeaderTabs, the first popup doesn't work on the first tab. It does work on subsequent tabs or outside the HeaderTabs. I suppose it's some JavaScript getting in each others way.

Best regards,


MediaWiki 1.27.4, Header Tabs 1.1 (2b61294) 01:27, 5 May 2016

Reply to "#forminput: First "popup" doesn't work on first tab"
D.karasev (talkcontribs)

Hello. I use this awesome modification for my wiki.

There is not enough possibility to fix the list of tabs at the top of large pages. Or make a sticky scroll headline.

I tried to do this with js and css, but everything breaks. Tell me please how to do this.

Reply to "Sticky header tabs"
Skunark (talkcontribs)

I'm not seeing the div tags get generated with the correct header tab id for REL1_30 downloaded file. Any thoughts?

Yaron Koren (talkcontribs)

Did it work for you with a previous MediaWiki/HT version? Or could there be an error in the wikitext?

Skunark (talkcontribs)

Wikitext works fine on a much older (mw23) install. I do see the javascript show up in the html output, so im curious if there is a dependency missing in the composer.json? (Nondev) Can i assume im not the first to run this with mw30?

Yaron Koren (talkcontribs)

I don't think you are... which doesn't mean that there's no bug. Does the JavaScript console show any error messages?

Skunark (talkcontribs)

No errors but the following warnings that appear on every page

[Warning] This page is using the deprecated ResourceLoader module "jquery.ui.widget". (Home, line 91)

[Warning] This page is using the deprecated ResourceLoader module "jquery.ui.core". (Home, line 86)

Please use "mediawiki.ui.button" or "oojs-ui" instead.

[Warning] JQMIGRATE: jQuery.fn.bind() is deprecated (load.php, line 140)

Are there any unique hooks i can enable to debug? If not, i will attempt to install MW and the extensions differently (not via the package manager)

Skunark (talkcontribs)

Manual install has the same issues. I am right in expecting the headertab Id to show up in the div tag? And that is a probably an issue with perhaps php-fcgi or just something with my php install itself?

M art in (talkcontribs)

I also have issues with headertabs and MW 1.30: Tabs are generated but to small (height) to display the header text.

Yaron Koren (talkcontribs)

@Skunark - those JS warnings need to be fixed up, but I don't think they're related to Header Tabs not working.

You can see an example of the HTML when Header Tabs works correctly here: http://discoursedb.org/wiki/HT_Test

M art in (talkcontribs)

My Issue was provoked by the Skin:Tweeki. I commented out the call and now HeaderTabs works again.

Skunark (talkcontribs)

I enabled tidy which seems to do bad things with headertabs..

$wgTidyConfig = [

'driver' => 'RaggettInternalPHP',

'tidyConfigFile' => "$IP/includes/tidy/tidy.conf",


I guess i got a little overzealous optimizing things. Thanks for your time and i'm so glad i got this re-enabled.

Yaron Koren (talkcontribs)

Skunark - great, I'm glad you were able to figure it out. I added Tidy to the list of extensions and other technologies that are known to break Header Tabs.

Reply to "Is this working on 1.30?"

Semantic maps not displaying right in tabs

Mitchelln (talkcontribs)

Hi I'm running HeaderTabs 0.9.2 on MW 1.17.4 and SMW 1.18alpha with Semantic Maps version 1.05.

I have two tabs. Each has a Semantic Google map in it. The one in the first tab shows fine, but when I switch to the 2nd tab, only the first top left tile of the map is displayed. If I refresh the page it the map then shows fully, but I can't expect my users to refresh the page every time they switch tabs.

Any idea how I can fix this?


Kghbln (talkcontribs)

The same happens if you include timelines or eventlines from the SRF extension into the second tab. Seems to be some kind of script quarrel. O_o As a workaround I created subpages. The second tab points to the respective other subpage there I inserted the goodies into the first tab. However a fix for this would be cool.

Mitchelln (talkcontribs)


The trouble is I pass various parameters into the page via a SemanticForms runQuery. So passing these through to the sub pages will be a right pain :(

M art in (talkcontribs)

It's an old bug but still no fix for MW 1.30 and SMW 2.5.6 HeaderTabs 1.2. and Maps 5.2.?!

Reply to "Semantic maps not displaying right in tabs"

Calling and anchor on a header tab page

Wolcott65 (talkcontribs)

I know that I can call a specific portion on a page by adding a # after the page name [[page#anchor_name|shown_up_as]]. It doesn't seem that I can call a specific portion of a page that is within a header tab from another page via a switchtablink.

This post was posted by Wolcott65, but signed as Wolcott.

Sergey Chernyshev (talkcontribs)

No, you can't - it's not that smart, unfortunately.

Wolcott65 (talkcontribs)


What in your opinion is the hardest part?

  • The API to define the URL, which should just be a modification to the switchtablink parser.
  • The interpretation of the URL with two # symbols embedded.


I was looking through the extension to understand the code. Is there any hope that the functionality could be accomplished? I would be willing to spend a weekend to really understand the code and attempt a modification, but if you think that it is not worth it I won't waste my time.

Header Tabs is awesome, but I would love to keep the basic functionality of being able to jump to an anchor point on a page while that page is being shown in a header tab.

This post was posted by Wolcott65, but signed as Wolcott.

Joshkking (talkcontribs)
I second the desire for this if possible. Especially since it seems that switching tabs doesn't bring you back to the top of the page. This is a bit of an issue if you place a switch tab link anywhere far enough that the user has scrolled down some.
Joshkking (talkcontribs)

By the way, I used:

// Scrolls to the top when using switchtab parser with appropriate class since it doesn't natively
(function () {
function toTop() {window.scrollTo(0, 0);}

var TabSwitch = document.querySelectorAll(".tabLink");
var i;
for (i = 0; i < TabSwitch.length; i++)
 TabSwitch[i].onclick = toTop;


in my common.js file to make my switchtab parsers jump back up when clicked. Should work for anyone else also, though granted there's better ways to go about it (but I needed a script running anyways) :)

Mortalites (talkcontribs)

I just stumbled on this and I desperately would like to figure out how to Call an anchor on a Header Tab page. I also use Header Tabs further down on pages and when I link to the Tab it takes me to the top of the linked page. It doesnt link to the correct Tab but I cant see it unless I scroll down. Its probably frowned upon but I would literally pay to have this functionality in Header Tabs.

Reply to "Calling and anchor on a header tab page"
Summary by Kghbln

1.2 of 2017-07-19

Kghbln (talkcontribs)

I think moving to Resource Loader which was improved for the extension since the last release will bring a world of good performancewise. So it will be cool to have a new release which officially brings this improvement.

Yaron Koren (talkcontribs)

Yes, that's a good idea - I hadn't realized how long it has been since the last release.

Betmidrash (talkcontribs)

Hello, can I add a new namespace to the pages, like talk namespace, and to call it 'draft'. But I want it to be in a new tab like the tab 'discussion', near the page. Actually, maybe I don't need a new namespace, just a new tab, but not like here or here, because it made the tab inside the page, I want it in the head of the page, near the discussion tab. someone?

Yaron Koren (talkcontribs)


This is the wrong place to ask this question, since it does not relate to the Header Tabs extension. However, if you want to do this, I think the easiest way is to modify the skin, to add another tab to it. If you need more help than that, I would suggest writing to the mediawiki-l mailing list.


Betmidrash (talkcontribs)

Thanks. I really need more help. I'm a new user on wiki, and I don't understand what do you mean 'to modify the skin'.

Can you send me the link, where I need to ask my question?

Yaron Koren (talkcontribs)
Reply to "A new tab"