Query: Has anyone made a BULK Tiddler Creator?

157 views
Skip to first unread message

@TiddlyTweeter

unread,
Jan 14, 2018, 12:01:54 PM1/14/18
to TiddlyWiki
Cari tutti

I'm wondering if anyone has made a bulk Tiddler Population Maker (TPM)?

Here is a Use Case...

STORYBOARDING

1 - You need 100 Tiddlers creating to cover the main scenes of a movie. You need them all in advance because you may be writing main scene 037 well before you write scene 001 but you need to see it in context.

2 - The NAMING of them can be as simple as "TITLE xxx" where xxx = from 001 to 100 and Title = user input.

3 - It would be a bonus to be able to create a CAPTION field at the same time that is "Minute xxx" where xxx = (the same numbering as 2) from 001 to 100.

4 - It would be a great bonus to be able to add a TAG to all 100 like "TAG" where TAG = user input.

Maybe its been done already?

Many thanks for any pointers or assistance.

Best wishes
Josiah


stevesuny

unread,
Jan 14, 2018, 12:32:16 PM1/14/18
to TiddlyWiki
Yes, I do this all the time using the xlsx importer, and building the tiddlers in a spreadsheet. That way, you can use the spreadsheet features to increment tiddler name, manage tags, etc. 

xlsx import tool is an incredibly powerful way to generate multi tiddlers.

One trick: use a columnn of the spreadsheet to generate a trancslusion to a "text" tiddler. For example, in the row for tiddler SCENE-037, create a cell whose value is "{{text-SCENE-037}}" (using the spreadsheet concatenate function). This way, you can create a template for SCENE tiddlers transcluding {{text-SCENE-037}} into [[SCENE-037]]. If you need to rename/renumber/modify your SCENE tiddlers, you can import again without losing your [[text-SCENE-*]] tiddlers....

If this isn't clear, let me know. I'll find an example where I do this and share it here.

//steve.

ste...@gmail.com

unread,
Jan 14, 2018, 4:24:31 PM1/14/18
to TiddlyWiki
Hi Josiah, 


On Sunday, January 14, 2018 at 6:01:54 PM UTC+1, @TiddlyTweeter wrote:
I'm wondering if anyone has made a bulk Tiddler Population Maker (TPM)?

You could try something like:
<$button>
<$list filter="[all[shadows]limit[100]]">
<$action-createtiddler $basetitle="My new tiddler"/>
</$list>
Create 100 tiddlers</$button> 

Please note that this just meant as a starting point, not a finished solution. Adding tags and modifying the title via user input should be easy. I'm not sure how to go about the "minute" caption field, however. Also, I'm not sure how to add leading zeros to the numbers in the title (if those are a requirement). 

This requires your TiddlyWiki to have at least 100 shadow tiddlers (which should normally be the case).

Cheers,

Stef

Mark S.

unread,
Jan 14, 2018, 5:22:09 PM1/14/18
to TiddlyWiki
This code should do almost exactly what you want (except it goes from 000 to 099 instead of 001 to 100. You could always just rename 000 to 100 (plus caption):

This took about 35 minutes to write (well, it should have been 15 minutes, but I digress). If it is factually useful to you, please consider donating 1 to Pmario (https://www.paypal.me/PMarioJo).

\define composedtitle() $(base)$ 0$(ten)$$(one)$
\define caption() Minute-0$(ten)$$(one)$
''Base title'': <$edit-text tiddler="$:/state/new-tiddler-title" tag="input" default=""/><br/>
''Tag'': <$edit-text tiddler="$:/state/new-tiddler-tag" tag="input" default=""/>

<$button> Create 100 copies of title
<$list filter="0 1 2 3 4 5 6 7 8 9" variable="ten">
<$list filter="0 1 2 3 4 5 6 7 8 9" variable="one">
<$vars base={{$:/state/new-tiddler-title}}>
<$action-createtiddler $basetitle=<<composedtitle>> tags={{$:/state/new-tiddler-tag}} caption=<<caption>> />
</
$vars>
</$list></$list>
</$button>



Have fun,
Mark

@TiddlyTweeter

unread,
Jan 15, 2018, 5:53:13 AM1/15/18
to TiddlyWiki
Ciao SteveSuny

Thanks for the XLSX reminder!

In this case, just creating empty tiddlers, Mark S.' solution is easier.

Best wishes
Josiah

@TiddlyTweeter

unread,
Jan 15, 2018, 5:57:45 AM1/15/18
to TiddlyWiki
Thanks Stef

I do appreciate the step. Mark wrote a finished solution.

Best wishes
Josiah

ste...@gmail.com wrote:
You could try something like:
<$button>
<$list filter="[all[shadows]limit[100]]">
<$action-createtiddler $basetitle="My new tiddler"/>
</$list>
Create 100 tiddlers</$button> 

Please note that this just meant as a starting point ...

@TiddlyTweeter

unread,
Jan 15, 2018, 6:07:12 AM1/15/18
to TiddlyWiki
Ciao Mark S.


Mark S. wrote:
This code should do almost exactly what you want (except it goes from 000 to 099 instead of 001 to 100. You could always just rename 000 to 100 (plus caption):

Thanks! Hits the spot directly. The first being "000" is not a problem. I might even keep it as the Title Page and just manually add "100".
 
If it is factually useful to you, please consider donating 1 to Pmario (https://www.paypal.me/PMarioJo).

I do like that people are asking for money a bit more. The solution is worth more than a Euro! Was that a typo?

And where is YOUR tip-spot?

FWIW I quite like Amazon wish-lists for lower level gifts (5 -> 50€) ... its nice to send something tangible.

Best wishes & thanks
Josiah
 
Reply all
Reply to author
Forward
0 new messages