Topic on Extension talk:Header Tabs

Headertabs in MW 1.23.7 and 1.24.1

13
Jongfeli (talkcontribs)

Hello, thanks for this great extension. We have been using it for a long time now and in our case it has always worked like a charm. I am in the process of updating our wiki to MW 1.23.7 or 1.24.1 and I found a small problem in both concerning headertabs. When Auto-number headings is enabled (under Preferences, Appearance, Advanced options) it seems to overrule the headertabs extensions. Example:

=Header A=
=Header B=
=Header C=
=Header D=
<headertabs/>

The result will only show a auto-number in the tabs, 1 to 4. The given text is no shown. When you then disable Auto-number headings it works just like expected, it shows the given text in the tabs. As far as I know MW versions prior to 1.23 never added auto-numbers to headertabs. I tested this on a clean install of MW-1.24.1 without any changes to the default LocalSetting.php and headertabs extension. Also tested this on our test wiki running on MW-1.23.7 with the same result. Our production wiki is running MW-1.22.5 and it works fine on that version. Is this a bug or am I overseeing something here? Thanks.

Kghbln (talkcontribs)

Affirmative. A fix would indeed be great.

Jongfeli (talkcontribs)

Compared the HTML when Auto-number headings is Off and On. The tab text Header A gets replaced by the <span class="mw-headline-number">1</span>. I tried figuring out what is going on in the code, without succes but I hope this helps.

Auto-number headings Off (correct)

<li class="selected ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="Header_A" aria-labelledby="ui-id-1" aria-selected="true">
<a id="ui-id-1" class="ui-tabs-anchor" href="#Header_A" role="presentation" tabindex="-1">
Header A
</a>
</li>

Auto-number headings On (not correct)

<li class="selected ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="Header_A" aria-labelledby="ui-id-1" aria-selected="true">
<a id="ui-id-1" class="ui-tabs-anchor" href="#Header_A" role="presentation" tabindex="-1">
<span class="mw-headline-number">1</span>
</a>
</li>
Yaron Koren (talkcontribs)

Sorry for the long delay on this. I just checked in what I think is a fix for this bug.

Jongfeli (talkcontribs)

Hello Yaron. Thanks for the fix. Tested it and it works like a charm.

Kghbln (talkcontribs)

What about doing a 1.0.2 tag? Since there is only occasional activity to this extension it may be worth doing it.

59.145.142.36 (talkcontribs)

Hi,

I'm also experiencing the same problem with mediawiki 1.23, the header tabs are displayed as bullet list. I have tried Header Tabs v0.9.2, 0.10.0, 1.0, 1.0.1 but its still not working. I am a newbie to mediawiki can you plz help.

Kghbln (talkcontribs)

You should try version 1.0.2 which was tagged recently.

59.145.142.36 (talkcontribs)

But how do i download it. I tried downloading for mediawiki 1.23, 1.24 and 1.25 but after replacing the HeaderTab folder is see Header Tab version 1.0.1 on version page. I am new to mediawiki so i don't have much idea.

59.145.142.36 (talkcontribs)

ok i got the latest version i.e 1.0.2 but still it isn't working. Just a clarification : currently i am just replacing the HeaderTab folder in extension folder. Is it the correct way to install the extension or do i have to re-run update.php after replacing the folder.

This post was hidden by Shirayuki (history)
180.151.230.246 (talkcontribs)

try version 1.0.2

Reply to "Headertabs in MW 1.23.7 and 1.24.1"