tabs needs 4 parameters for tc-vertical to work: why is that?

94 views
Skip to first unread message

manuar...@gmail.com

unread,
Mar 20, 2018, 10:25:02 AM3/20/18
to TiddlyWiki
Hello everyone,

Has there been a change in how the tabs work? I remember things were different before.

Right now, if I make a new tiddler on tiddlywiki and try to use

<<tabs "[tag[About]]" "tc-vertical">>

I get horizontal tabs instead of vertical. I did some tests and in order to get the vertical tabs I need to use 4 parameters, like this:

<<tabs "[tag[About]]" "" "" "tc-vertical">>


If this is the intended behaviour, I think some documentation would be great. If not, then is a bug report.

If it's documented already then sorry, it's just me being a bit dumb =D

Have a nice day everyone

Jed Carty

unread,
Mar 20, 2018, 10:45:08 AM3/20/18
to TiddlyWiki
It is intended, macros take inputs either by the input order or by labelling them. If they aren't labelled than the first one is the filter for what tiddlers to add as tags, the second is the default tag to have open, the third is the state tiddler to use for the tags and the fourth is the class to use. Using your first example it would make normal tabs for all tiddlers tagged About and set the default tab to tc-vertical. https://tiddlywiki.com/#Macro%20Calls%20in%20WikiText and https://tiddlywiki.com/#tabs%20Macro may be useful.

You can make vertical tabs without listing the empty parameters like this:

<<tabs "[tag[About]]" class:'tc-vertical'>>


manuar...@gmail.com

unread,
Mar 20, 2018, 11:24:00 AM3/20/18
to TiddlyWiki
thank you for your reply, everything is water clear :)
Reply all
Reply to author
Forward
0 new messages