Extension talk:Header Tabs/archived

If anyone is interested I have created a slight edit for this extension which creates an edit link for the h1 headers.. thereby letting users edit the main sections without seeing the whole article unnecessarily.. have also improved graphics a bit.. If you want this, leave a note on http://en.wiredtape.com/wiki/User_talk:Bfhappy
 * Can you post a link to example of use? --Sergey Chernyshev 03:56, 6 May 2008 (UTC)
 * Of course :-) Header Tabs Example --Wiredtape
 * Great! Can you send me a patch, I'll include it into main code. I also added a switchtab functionality to the code - it'll be better if we combine the code. --Sergey Chernyshev 17:16, 10 May 2008 (UTC)
 * Of course, where should I send it to? ... --Wiredtape

Problem with Sematic Wiki timelines
Hi there. Excellent extension! I do have a problem though. If you have more than one Sematic Mediawiki's new timeline queries then the first one is rendered fine, but all subsequent ones are not if there is a header tab between the queries. For example: = Project Dates = Required Dates:

= Iteration Dates = Iteration Dates:

The first timeline calendar show up correctly, but the 2nd one is just a grey box. Without the 2nd header tab everything is fine. I guess something is not being closed off.

Any ideas? Thanks! --mitchelln 15:10, 14 May 2008 (UTC)

HeaderTabs for MediaWiki 1.7.1
HeaderTabs does not work with MediaWiki 1.7.1. It works when the following changes are applied to the parser:

--- HeaderTabs.php.orig 2008-05-16 09:53:14.000000000 +0200 +++ HeaderTabs.php     2008-05-16 09:53:55.000000000 +0200 @@ -52,12 +52,12 @@        }         $below = $aboveandbelow[1]; -      $aboveandtext = preg_split('/<\/a> .*? \s*(.*?)\s*<\/span><\/h1>/', $aboveandbelow[0], 2); +      $aboveandtext = preg_split('/<\/a> (.*?)<\/h1>/', $aboveandbelow[0], 2); if (count($aboveandtext) > 1) {                $above = $aboveandtext[0]; -              $parts = preg_split('/^<\/a> .*? \s*(.*?)\s*<\/span><\/h1>/m', $aboveandbelow[0], -1, PREG_SPLIT_DELIM_CAPTURE); +              $parts = preg_split('/^<\/a> (.*?)<\/h1>/m', $aboveandbelow[0], -1, PREG_SPLIT_DELIM_CAPTURE); array_shift($parts); // don't need above part anyway $tabs = array;

Attention: It's important to use the magic word   for correct rendering of the tabs!

Problem with non-Monobook Skins
The Header tab extension breaks when I use it with some alternate skins (for example the Cavendish skin: http://wiki.mozilla.org/WikiUpgrade). The Tabs display correctly, but clicking the tabs does not work. Does anyone know how to fix this?

Whatlinkshere on tab
Hi, Great extension, thanks. How to add Whatlinkshere on the tab?

Extention to switchtablink functionality
Would it be possible to extend the functionality of switchtablink so you could jump to a specific tab on another article page? Thanks. --mitchelln 16:40, 5 June 2008 (UTC)