Transclusion inside table cells

514 views
Skip to first unread message

Antonio Vargas

unread,
Sep 30, 2014, 11:05:08 AM9/30/14
to tiddl...@googlegroups.com
Hi

(TiddlyWiki 5.1.2)

Table cells including transcluded tiddlers with wikitext don't render properly. However if the transcluded tiddler has parts coded directly in HTML they render correctly (in the cell of the external table).

A concrete example with a table inside another table cell follows.

I'm I doing something wrong here?

----------------------------------

TIDDLER: externalTables

! Unparsed table in cell A1
|   | A |
| 1 | {{tableWikitext}} |
| 2 | Etc |

!Proper table inside cell A1
|   | A |
| 1 | {{tableHTML}} |
| 2 | etc |

TIDDLER: tableWikitext

| Internal A1 | Internal B1 |
| Internal A2 | Internal B2 |

TIDDLER: tableHTML

<table border="1" style="width:100%">
  <tr>
    <td>Internal A1</td>
    <td>Internal B1</td> 
  </tr>
  <tr>
    <td>Internal A2</td>
    <td>Internal B2</td> 
  </tr>
</table>

Stephan Hradek

unread,
Sep 30, 2014, 11:21:34 AM9/30/14
to tiddl...@googlegroups.com
Instead of

{{tableWikitext}}

use

<$transclude tiddler="tableWikitext" mode="block"/>


Antonio Vargas

unread,
Sep 30, 2014, 12:14:46 PM9/30/14
to tiddl...@googlegroups.com
Stephan

Thank you for the quick answer.
 
Shame on me. After consulting the TranscludeWidget tiddler in tiddlywiki.com I realised that, in a less friendly group, I would get a deserved RTFD.

AMFVargas

PMario

unread,
Sep 30, 2014, 12:44:27 PM9/30/14
to tiddl...@googlegroups.com
On Tuesday, September 30, 2014 6:14:46 PM UTC+2, Antonio Vargas wrote:
... in a less friendly group, I would get a deserved RTFD.

IMO this community prefers to post solutions and links to the docs ;)

have fun!
mario

Eric Shulman

unread,
Sep 30, 2014, 4:23:14 PM9/30/14
to tiddl...@googlegroups.com
Indeed!  One of the hallmarks of this group (and the TiddlyWiki Community in general), is that we are a helpful bunch.  The purpose in answering questions is to make people successful when using TiddlyWiki. No matter how simple the question (or how seemingly obvious the solution), a positive, practical response is essential.

I have been moderating this group for 10 years... and there's only been a handful of instances where people (mostly noobs) have been snarky in their response to a simple question... and I promptly blocked or deleted those posts, and sent a private message to advise the contributor to change their tone.

Most of the time, the person apologized (sometimes publicly) and there was only ONE instance where they argued with me that they had a right to be rude to other people because "this is the internet, get used to it". So I banned them... easy as that.  The result: a forum with a reputation for being "nice, friendly, and helpful", where people can jump right in and ask questions without risk of being ridiculed.

If only the rest of the internet shared the same attitude... imagine how amazing it would be!

enjoy,
-e
Eric Shulman
TiddlyWiki Classic Lead Developer
TiddlyWiki Google Groups Moderator
TiddlyTools: "Small Tools for Big Ideas"

Stephan Hradek

unread,
Oct 1, 2014, 3:30:40 AM10/1/14
to tiddl...@googlegroups.com


Am Dienstag, 30. September 2014 22:23:14 UTC+2 schrieb Eric Shulman:
 The purpose in answering questions is to make people successful when using TiddlyWiki. No matter how simple the question (or how seemingly obvious the solution), a positive, practical response is essential.

I beg to differ - or better - I beg to add to this: The purpose for me is, to learn. Even from the simplest question I learned. After all: TW5 is (or was?) changing so rapidly, I still feel a bit out of sync and so looking at "simple" questions and trying to solve them is a good training.

there was only ONE instance where they argued with me that they had a right to be rude to other people because "this is the internet, get used to it". So I banned them... easy as that

Hey! This is the internet - he had to get used to it (being banned)! :D
 

Pieter-Michiel Geuze

unread,
Aug 25, 2020, 4:48:38 PM8/25/20
to TiddlyWiki
Thanks also for this great solution.
Reply all
Reply to author
Forward
0 new messages