long tables, multi line rows & properties

699 views
Skip to first unread message

glenn opdycke

unread,
Nov 5, 2010, 4:20:58 PM11/5/10
to TiddlyWiki
I have a table that has several columns, some of which have much data.
I see that each row occupies one line. Is there any way to have a row
include multiple lines?

Some of the data is repeated in all the rows. Is it possible to set a
property to a value and use the property to refer to the value in the
rows?

TIA
--glenn

PMario

unread,
Nov 6, 2010, 5:20:50 AM11/6/10
to TiddlyWiki
Copy === copy this === into a tiddler, or see it in action at my
TeamWork [1] space.
have fun!

Some info:

<<tiddler tiddlerName##section>>
<<tiddler tiddlerName::slice>>

!section
this is a section
second line
!end

slice:this is a slice
|slice|this is also a slice|


<<tiddler {{tiddler.title + '##section'}}>>
makes it a relative transclusion to the containing tiddler.
use with care (backup). recursions are not solved.

<<tiddler tiddlerName##section>>
is an absolut transclusion

hope this helps!
-mario

[1] http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#TransclusionsInsideTables

=== copy this ===
| SliceName | Content |h
|line1| some text <br> text after a line break |
|line2|<<tiddler {{tiddler.title + "::line1"}}>> |
|line3| <<tiddler {{tiddler.title + "##section1"}}>> |
|line4| <<tiddler {{tiddler.title + "##section2"}}>>|
|line5| <<tiddler {{tiddler.title + "::line4"}}>> |
|>| some footer text |f

{{{

| SliceName | Content |h
|line1| some text <br> text after a line break |
|line2|<<tiddler {{tiddler.title + "::line1"}}>> |
|line3| <<tiddler {{tiddler.title + "##section1"}}>> |
|line4| <<tiddler {{tiddler.title + "##section2"}}>>|
|line5|<<tiddler {{tiddler.title + "::line4"}}>> |
|>| some footer text |f

/% some invisible text follows
!section1
some text
new line
!end

!section2
this is text in
section 2
!end
%/

}}}

=== end ===

glenn opdycke

unread,
Nov 8, 2010, 10:42:03 AM11/8/10
to TiddlyWiki
Thanks much!
I tried the section and slice examples.
The slice/line works for me. I define the slice in a commented table:
/%
|slicename|slice value|
%/
The slice is accessed via
<<tiddler {{tiddler.title+'::slicename'}}>>

I saw that there was a colon format for the slice, too. However I
could not get that to work.
Do you have an example of this?
Also, is there a simpler way to access the slice than <<tiddler
{{tiddler.title+'::slicename'}}>>?

Best regards,
Glenn


On Nov 6, 3:20 am, PMario <pmari...@gmail.com> wrote:
> Copy === copy this === into a tiddler, or see it in action at my
> TeamWork [1] space.
> have fun!
>
> Some info:
>
> <<tiddler tiddlerName##section>>
> <<tiddler tiddlerName::slice>>
>
> !section
> this is a section
> second line
> !end
>
> slice:this is a slice
> |slice|this is also a slice|
>
> <<tiddler {{tiddler.title + '##section'}}>>
> makes it a relative transclusion to the containing tiddler.
> use with care (backup). recursions are not solved.
>
> <<tiddler tiddlerName##section>>
> is an absolut transclusion
>
> hope this helps!
> -mario
>
> [1]http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#Transclusio...

TonG

unread,
Nov 8, 2010, 1:56:52 PM11/8/10
to TiddlyWiki
Hi Glenn,

Besides the elaborate solutions of Mario there are also more simple
solutions:

1) You can add <br> to create a new line e.g.:
|some text |some text line 1<br>some text line 2|

2) With transclusion you can add the contents of a tiddler (with line
breaks in it) into a cell of the table e.g.:
|some text |<<tiddler xyz>>|

where tiddler xyz contains the text to be transcluded.

Cheers,

Ton


On Nov 5, 9:20 pm, glenn opdycke <glenn...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages