Extension talk:Tabber

Thank you for this excellent extension! :D
It does just what I wanted, and more. I like that you can put anything in a tab, yes: anything. Kudos. --Jacmoe 18:03, 25 April 2009 (UTC)

re:
thanks for the feedback! --Kenyu73 00:08, 26 April 2009 (UTC)

error msg
Undefined variable: htmlTabs in ... on line 34

did you test this in different browsers? - just curious. Thinking of putting it on a public site.

Thanks! Evgeny Fadeev 23:48, 26 April 2009 (UTC)

re:
I think this is a warning, not an error correct? I didn't really go though and initialize the variables so trivial could pop up. I'll clean this up on the next release package though.

re: re:
Encountered the same problem. Fixed it by defining htmlTabs as nothing. Here's the code:

'Tabber',    'author'=>'Eric Fortin',    'url'=>'http://www.mediawiki.org/wiki/Extension:Tabber',    'description'=>'Create tabs that contain wiki compatible based data',    'version'=>'1.0' );
 * 1) Credits

$wgExtensionFunctions[] = "wfTabber";

// function adds the wiki extension function wfTabber { global $wgParser; $wgParser->setHook( "tabber", "renderTabber" ); }

function renderTabber( $paramstring, $params = array ){ global $wgParser, $wgScriptPath; $wgParser->disableCache; $path = $wgScriptPath. '/extensions/tabber/';

$htmlHeader = ' ' . '' . ' ';	$htmlFooter = ' '; $htmlTabs = '';

$arr = explode("|-|", $paramstring); foreach($arr as $tab){ $htmlTabs .= buildTab($tab); }

return $htmlHeader. $htmlTabs. $htmlFooter; }

function buildTab($tab){ global $wgParser; if( trim($tab) ==  ) return ; $arr = split("=",$tab); $tabName = array_shift( $arr ); $tabBody = $wgParser->recursiveTagParse( implode("=",$arr) ); $tab = '' . ' '.$tabBody.' ' . ' ';

return $tab; }

edit section links within tabs don't work
I'm getting a message like this when I click on edit tab:

You tried to edit a section that doesn't exist. Since there is no section 2, there's no place to save your edit. Evgeny Fadeev 23:53, 26 April 2009 (UTC)

re:
I may have to add to the php code to remove the section edits. I remember having the same issue with my presentation extension too. I'm not sure if they're really compatible in this manner. I'll dig a bit deeper thoough.

tab wrapping
when I make browser window narrower then width of combined tabs, vertical spacing of tabs appears less then their height. so they are right on top of each other

Evgeny Fadeev 23:58, 26 April 2009 (UTC)

re:
I knew about this issue, but I'm not really sure currently how to fix that one. JavaScript doesn't have a "NOWRAP" like HTML (=. I haven't done much in the original authors JavaScript code so I'll have to walk though it.

behavior switch magic word
Do you think it would be nicer to have a magic word like:

__TABSECTIONS__

and have tabs generated from the section structure? maybe it might be possible to do it through javascript alone.

Cheers, Evgeny. Evgeny Fadeev 00:03, 27 April 2009 (UTC)

paragraphs glued
the extension seems to cause consecutive paragraphs to be combined into one.

makes text harder to read.

Evgeny Fadeev 00:27, 27 April 2009 (UTC)

re:
This one is interesting... dunno why its removing the extra whitespace. It shouldn't?!? I'll have to debug that one for sure! As a workaround, use  tags.

re: Evgeny Fadeev
Thanks for posting the issues you found. I have though of using sections, but that would limit the tabs to the page level (ie: wouldn't be able to add tabs to a table that contains links and such). I'll see what I can do about the other bugs you've mentioned too.

Thanks! Eric

re
Hi Eric.

Take a look at this: http://www.bennadel.com/index.cfm?dax=blog:1563.view

maybe it's possible to mark up tabs with html comments, then have js build the tabs in browser?

That way everything would work normally even if javascript is off.

Evgeny Fadeev 17:51, 27 April 2009 (UTC)

Auto Rotate
It would be nice to have an auto rotate from Tab to Tab so that it can function like a featured content box as well. Anyone know how to do this? please e-mail me: kdanko@finestationery.com

Favourite Tab
I'm using this extension on my main page and it would be really neat to be able to mark one tab as my favourite tab, to be automatically selected when I go to the wiki! Generally, I'm finding that most users use just one of the tabs most of the time, so I guess it would be a user-specific setting. Anyone have any ideas of how this could be achieved?

Problem space in the tabs
Hello,

I can not put as many words as a tab. How to save 2 or 3 words in a tab?

Thank you

-

If you want to give a tab a name that contains a space (for example, My Tab), you need to put double quotes around the tab name:

"My Tab"=My tab contents.

--79.141.36.39 10:43, 14 September 2009 (UTC)

Tabber with templates
Is there a way to use tabber with mediawiki Templates? Tabber doesn't seem to be able to interpret the parameters being passed to it. Any hints on how to make this work or am I just SOL? :) = =Text here = Thanks, --Cforrest 22:11, 1 October 2009 (UTC)

Same problem here
Any template variable I try tu use inside the doesn't seem to get expanded. I wrote a mail to the author about this, maybe he finds the time to change it.

Marcus 80.171.52.229 08:27, 4 October 2009 (UTC)

Header
Header (second level: ==header== seems not to work if I {{:include} an article in a tab. I see the chapter in the table of contents and in the article itself, but not in the included articel-Bert

Parametres
Someone know how to use parametres in tabber? I cannot make him understand it. When I use some parametres, it just repeats it's name. Example:

Example= Example2=

How to make it "understand" that variables? 85.89.189.241 16:55, 6 December 2009 (UTC)

Incorrectly handles alignment

 * E.g. this would be displayed fine:

tab1=Image.01.png |-| tab2=Image.02.png


 * BUT if you try to align images:

tab1=left |-| tab2=right

tab borders appear as containing no text or images (one empty line), although tabs can be switched and tab data changes according to tabs you click.


 * When aligning images, tabs' height seems to depend on the amount of text only, because if you enter something like this:

tab1=Some text left |-| tab2=Some other text right

the image will fit the tab only if there's enough text to provide for the tab's height.

= Cannot have tables in tabs = Hi, this is a great extension, but I'm having an issue where if a tab has a table in it, then it all just breaks! Also doesn't work if used within a template. Has anyone got this working with tables and templates? Thanks! mitchelln 11:55, 26 January 2010 (UTC)

re I'm using tabber with table-Templates and TableEdit Extension. No issues so far!

Issues with headers
I'm having a similar problem to the user above who couldn't get ==header== to work. If I include headers in a tab, the header itself doesn't appear but the rest of the text is formatted fine. If I don't include at least one, I get the running together of paragraphs that Evgeny Fadeev mentioned above. Other than that the extension is fantastic!

nested tabber
how to use a taaber iside another tabber?

How to refer to tab page
I would like to link to an article, described in a tab page. How should I define the link ? The only address I see is the address of the page, containing the tabber. When I manually choose a tab-page from the tabber, the URL of that page is the same, so apparently it is not possible to link directly to the tab-page by using a unique URL. Tried linking to it using section reference, but that doesn't work either.

--83.85.117.14 13:24, 12 April 2010 (UTC)

Found a solution: editing the tab-page gives you the URL of that page, which you can then use in the link. Don't know if this is the "official" solution, but at least it is one that works

Tabber prevents headers from showing
Pages containing Tabber display the headers wrongly. Only the first level used is displayed, all the other levels are ignored. They only show up, when you edit the page (so effectively the Tabber is gone) This makes pages containing a tabber rather unreadable.

Very good!

Thanks! Grat job! Congrats author.

Congratulations to author, you are a genius. 201.89.152.134 06:02, 5 June 2010 (UTC)