The SubStories thing is fun
print-window-tiddler
Jeremy Ruston 2012-06-26 19:55:11 +01:00
rodzic 69a0c46447
commit 6056b88532
4 zmienionych plików z 17 dodań i 2 usunięć

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -30,4 +30,4 @@ The downside of writing the first version of TiddlyWiki in this way was that it
! Leaving BT
//To be continued.../
//To be continued...//

Wyświetl plik

@ -10,5 +10,6 @@ Here are a few features of TiddlyWiki that you can explore:
* If you're running on a touch browser like Mobile Safari on the iPad or iPhone:
** The zooming chooser appears by swiping into the left edge of the screen. (It's currently broken but you get the idea)
** The zooming navigator appears by swiping in from the right edge of the screen. (It currently only works in the 'Classic' storyview)
* Play with the SubStories example to understand how the StoryMechanism works
* Browse the list of AllTiddlers or the ShadowTiddlers
* Examine the example [[bitmap images|Motovun Jack.jpg]] and [[SVG images|Motovun Jack.svg]]

Wyświetl plik

@ -0,0 +1,14 @@
title: SubStories
tags: samples
It is possible to have multiple `story` macro pointing to the same story tiddler, and it is even possible to nest them.
For example, this macro displays the same tiddlers as the main story but through the template used to display tags, which makes each tiddler appear as a tiny panel:
{{{
<<story story:"$:/StoryTiddlers" defaultViewTemplate:[[$:/templates/TagTemplate]] storyview:classic >>
}}}
Try opening and closing some other tiddlers and see how this second story animates when tiddlers are added and removed from the main story. (It's also interesting to view the story tiddler alongside this one: [[$:/StoryTiddlers]])
<<story story:"$:/StoryTiddlers" defaultViewTemplate:[[$:/templates/TagTemplate]] storyview:classic >>