Quick inclusion of TiddlyWiki.com documentation in your TiddlyWiki

16 views
Skip to first unread message

Charlie Veniot

unread,
Oct 27, 2022, 10:02:36 PM10/27/22
to TiddlyWiki
Just because I prefer transclusion to macros:

Create a template tiddler (say "tTwDoc") with the following content:

```
<$list filter="[<currentTiddler>!match[tTwDoc]]">
<iframe src={{{ [<currentTiddler>encodeuri[]addprefix[https://tiddlywiki.com/static/]search-replace:g[%20],[%2520]addsuffix[.html]] }}} width=100% height=300px/>
</$list>
```

(I don't know enough about encodeuri and why it wasn't enough, requiring me to replace any occurence of %20 with %2520.)

In whatever other tiddler, enter the following:

```
{{Tables in WikiText||tTwDoc}}
```

Charlie Veniot

unread,
Oct 27, 2022, 11:55:24 PM10/27/22
to TiddlyWiki
For anybody wanting to geek out a little, I think the explanation is in this article: https://stackoverflow.com/questions/16084935/a-html-space-is-showing-as-2520-instead-of-20

I'm thinking however the URL's for the TiddlyWiki.com static pages are generated, they are being generated with "double-encoding"?  i.e. the %20, the encoding for a space, is getting encoding again, turning the % in %20 to %25.

Reply all
Reply to author
Forward
0 new messages