[TWC] Numbered list inside table cell

735 views
Skip to first unread message

Bob Flandard

unread,
Oct 31, 2013, 9:51:14 AM10/31/13
to tiddl...@googlegroups.com
Hello,

I'm trying to embed a numbered (or bullet) list inside a table cell.

It seems that tables and lists both need a newline in their definitions.

I found a code snippet from Eric that embeds a table in a list. Does a similar method exist for a list in a table?

Thanks,

Bob

# item1
** bullet1
** bullet2{{centeredTable{
|t|a|b|
|l|e|.|
}}}
# item2

Ton Gerner

unread,
Oct 31, 2013, 11:55:33 AM10/31/13
to tiddl...@googlegroups.com
Hi Bob,

Try transclusion.
Put the list in 'tiddler_A' e.g.:

* text
* text
** text
** text



and transclude 'tiddler_A' in 'tiddler_B':

|<<tiddler tiddler_A>>|text|
|text|text|



Cheers,

Ton

Bob Flandard

unread,
Oct 31, 2013, 12:49:01 PM10/31/13
to tiddl...@googlegroups.com
Hello Ton,

Thank you for your suggestion. It seemed a bit inelegant, and so I continued my search and found a plugin that probably does the same thing you suggested but allows the tiddler_A to be included as a hidden object in tiddler_B.

To anyone not familiar with it, I used PartTiddlerPlugin from here http://tiddlywiki.abego-software.de/#PartTiddlerPlugin.

If anyone knows a more elegant way to do this I'd still be interested.

Thanks to all,

Bob

Stephan Hradek

unread,
Oct 31, 2013, 1:56:41 PM10/31/13
to tiddl...@googlegroups.com


Am Donnerstag, 31. Oktober 2013 17:49:01 UTC+1 schrieb Bob Flandard:
If anyone knows a more elegant way to do this I'd still be interested.


Is this more elegant? At least it does not require plugins and no additional tiddler:

[[list in table##list]]
|header|header|header|h
|cell|cell|cell|
|cell|<<tiddler [[list in table##my list]]>>|cell|
|cell|cell|cell|
/%
!my list
#item
#item
#item
!END
%/

Tobias Beer

unread,
Oct 31, 2013, 1:59:13 PM10/31/13
to tiddl...@googlegroups.com

Thank you for your suggestion. It seemed a bit inelegant, and so I continued my search and found a plugin that probably does the same thing you suggested but allows the tiddler_A to be included as a hidden object in tiddler_B.

You easily can put it all in one tiddler...


[[Foo]]

|<<tiddler Foo#HIDDEN>>|
/%
!HIDDEN
*bar
**baz
!END%/


Tobias.

Bob Flandard

unread,
Oct 31, 2013, 2:39:37 PM10/31/13
to tiddl...@googlegroups.com
Hello Stephan and Tobias,

Thank you for your code samples.

Your suggestions look to be equivalent. However If I copy and paste your code into a new tiddler the first line "[[list in table##list]]" becomes a link that doesn't exist yet, and the cell containing
<<tiddler [[list in table##my list]]>> is empty. Apart from that, your solutions do seem more elegant that having to use a plugin.

I tried both code samples in an empty TW (as well as my usual one), and the effect was the same.

I'm using TWC 2.8.1 with FF 24.0 on Windows 7 x64.

What am I missing?

Thank you,

Bob



Eric Shulman

unread,
Oct 31, 2013, 3:01:43 PM10/31/13
to tiddl...@googlegroups.com

On Thursday, October 31, 2013 11:39:37 AM UTC-7, Bob Flandard wrote:
Your suggestions look to be equivalent. However If I copy and paste your code into a new tiddler the first line "[[list in table##list]]" becomes a link that doesn't exist yet, and the cell containing
<<tiddler [[list in table##my list]]>> is empty. Apart from that, your solutions do seem more elegant that having to use a plugin.

Replace "list in table" with the actual name of the tiddler that contains the hidden section, as illustrated by Tobias' sample code (e.g., if tiddler is named [[Foo]], then the tranclusion macro is "<<tiddler Foo##sectionname>>").

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:

Bob Flandard

unread,
Oct 31, 2013, 3:23:44 PM10/31/13
to tiddl...@googlegroups.com
Hello Eric,

Thanks again for your kind guidance.

All's well. If a chap has numbered lists in his table cells, then the world seems good again.

Thanks again to Tobias and Stephan.

Best regards,

Bob

Vincent Yeh

unread,
Nov 9, 2013, 7:51:04 PM11/9/13
to tiddl...@googlegroups.com
Bob,

If you don't mind using a big fat plugin (over 50KB in minimized version), you can try my TWtid which offers multi-line rendering mode in table cells, see http://twtable.tiddlyspace.com/#[[TWtid--Example--Lists in Cells]] for example. If you don't see lists rendered properly, check the multi-line mode option and reload the page, it should work. With TWtid you use <br> in the cell text for a new line, the plugin translates it into the new line character and wikify the content in the cell to produce a multi-lined result.

Have fun!

Vincent Yeh

unread,
Nov 9, 2013, 7:52:57 PM11/9/13
to tiddl...@googlegroups.com
Something wrong with the link in the last post. This one works http://twtable.tiddlyspace.com/#[[TWtid--Example--Lists%20in%20Cells]].
Reply all
Reply to author
Forward
0 new messages