TiddlyWiki Capabilities - Will It Work for My Project

40 views
Skip to first unread message

Steve

unread,
Feb 13, 2009, 3:58:49 PM2/13/09
to TiddlyWiki
Hi All,

Just wanted to see if TiddlyWiki had the capabilities to handle my
project without too much hassle. I'm willing to do some programming,
but if I have to code tremendous amounts there might be a better tool
out there.

I have used TiddlyWiki and its variants in the past for different
tasks and organizing but it was all very surface level. I've got a
personal project that I was going to organize using an Excel sheet,
but I think that tagging in TiddlyWiki will give me some better
organization and updating ability.

Forgive my geekiness but this project is essentially to micromanage a
fixed set of collectible card game (A draft cube for Magic the
Gathering to be specific) cards based on several attributes as well as
providing a place to comment and note on individual cards. It's not
intended to manage a large collection but rather a rotating pool of
cards (less than 400). Part of the need is the ability to get
statistics. Each card would be represented by a Tiddler (and there is
only ever one of any card) and would have tags representing various
attributes (i.e. type of card, color of card, cost of card, whether a
card is active or not).

I would like to have a page with stats like "Cards tagged as 'red' are
15% of all active cards". Or "Of active red cards, there are 10 with
a cost of 2".

The tiddler for a card itself would contain a link to external
information about the card in the game as well as notes about the card
based upon its performance in games. New cards could be added,
replacing older cards which would have their tag changed from active
to inactive, so the notes could be maintained even though they would
not count in the stats.

It would also be great to be able to list the cards by different
combinations of tags and in order of certain values.

Is this something TiddlyWiki could do and if so, where should I start?

Thanks,
Steve

Dave Gifford - http://www.giffmex.org/

unread,
Feb 13, 2009, 6:33:35 PM2/13/09
to TiddlyWiki
Word of encouragement-

Most of this sounds right up TiddlyWiki's alley, using
ForEachTiddlerPlugin and maybe a couple others. The only tricky part
is your description of the stats page. I'm sure that's doable somehow.
We'll see what ideas the big guns give you...

Dave

Ken Girard

unread,
Feb 14, 2009, 1:22:31 PM2/14/09
to TiddlyWiki
It's been a while since I played MtG, but I think TW would be a great
Since you are gathering the same data set off each card, try using
hideWhen, customFields, and templates.

You put together an edit template (CardTemplateEdit) something like:
<div class='card-info'>
Color: &nbsp;<span macro='edit c-color'></span> <br />
Type: &nbsp;<span macro='edit c-type'></span> <br />
Rarity: &nbsp;<span macro='edit c-power'></span> <br />
Attack: &nbsp;<span macro='edit c-attack'></span> <br />
Defense: &nbsp;<span macro='edit c-defense'></span> <br />
Number of: &nbsp;<span macro='edit c-number'></span> <br />
</div>
Same for a viewTemplate (CardTemplateView) with all the edits changed
to view.

Then in your EditTemplate you put something like:
<div macro="showWhen tiddler.tags.contains('Card') || tiddler.title
== 'New Card'"> [[CardTemplateEdit]]</div>

And in the ViewTemplate:
<div macro="showWhenTagged Card">[CardTemplateView]]</div>

Now add in the following in a convenient location:
<<newTiddler label:'Add a card' title:'New Card' tag:'Card'>>
When you click it, it opens a tiddler tagged Card, ready to collect
your data.

All that is left is using ForEach to gather all the data and display
it in a fashion you like.

For something that does a lot of this, take a look at:
http://no-sin.com/wiki/WorkTracker.html

Just occurred to me:
Use what I wrote above to gather the data on your entire collection.
Then use tiddlerSlices (http://tiddlywiki.org/wiki/Slice) to list data
on different decks;
|Goblin Deck|3|
|Destroy It All|4|
|World Beater|0|

Write a forEach that uses the containing tiddler's title to look up
all info on the cards in that deck. So if you put it into a tiddler
titled Goblin Deck it would list the name of the card and how many to
put in to the deck.

Ken Girard




On Feb 13, 5:33 pm, "Dave Gifford - http://www.giffmex.org/"

Steve

unread,
Feb 17, 2009, 2:23:31 PM2/17/09
to TiddlyWiki
After looking at your link and playing around a bit, I am convinced
that TiddlyWiki will work for me. I added the code about to
EditTemplate and ViewTemplate, as well as creating the other tiddlers
and the new card link. However, none of it seems to be working. I'm
still pretty new at this so I may be missing something very very
obvious. I was reading some stuff about the hideWhen plugin but I am
not sure where I messed up.

Any ideas on where I should start troubleshooting?

Thanks,
Steve
> On Feb 13, 5:33 pm, "Dave Gifford -http://www.giffmex.org/"
> > > Steve- Hide quoted text -
>
> - Show quoted text -

Ken Girard

unread,
Feb 17, 2009, 3:28:13 PM2/17/09
to TiddlyWiki
Take a look at:
http://cardcollection.tiddlyspot.com/

Ken Girard
> > - Show quoted text -- Hide quoted text -

Reenen Laurie

unread,
Feb 17, 2009, 3:46:59 PM2/17/09
to Tiddl...@googlegroups.com
Wow awesome!  TW (and the community) doesn't cease to amaze me.

Would it be possible to "group" without the card names?  To for instance get the amount of red cards without specifying exactly what they are... almost like a pivottable?
--
o__
,_.>/ _
(_)_\(_)_______
...speed is good
_______________
I believe five out of four people have a problem with fractions.

Ken Girard

unread,
Feb 17, 2009, 5:16:30 PM2/17/09
to TiddlyWiki
It is. Look at:

http://tiddlywiki.abego-software.de/#WhereClauseExamples%20%5B%5BDisplay%20the%20number%20of%20tiddlers%20that%20have%20the%20tag%20'basic'%5D%5D

to start you on the joys of writing forEach commands.

The second tiddler in that link does what you want, you just need to
change it from looking for a tag to looking for a field, which you can
see how to do in the Cards tiddler in my TW.

Ken Girard
> I believe five out of four people have a problem with fractions.- Hide quoted text -

Ken Girard

unread,
Feb 18, 2009, 2:06:29 AM2/18/09
to TiddlyWiki
Played with it a little more to help you on your way to learning what
can be done with TW.

Ken Girard

On Feb 17, 4:16 pm, Ken Girard <ken.gir...@gmail.com> wrote:
> It is. Look at:
>
> http://tiddlywiki.abego-software.de/#WhereClauseExamples%20%5B%5BDisp...

Reenen Laurie

unread,
Feb 18, 2009, 6:44:49 AM2/18/09
to Tiddl...@googlegroups.com
Awesome, I am just struggling on how to add a new card...

Adding a new tiddler is easy, but how does it "become" a card?

Reenen Laurie

unread,
Feb 18, 2009, 6:45:10 AM2/18/09
to Tiddl...@googlegroups.com
Sorry, there is a "add a card" button... :-D

Reenen Laurie

unread,
Feb 18, 2009, 5:20:01 PM2/18/09
to Tiddl...@googlegroups.com
Cool! I've saved a copy locally.

A couple of questions...

The Cards tiddler doesn't update automatically.  If I add a card, or change a card's fields, then the "summary" page(s) should update automatically.  There is probably another plugin to do that (add tiddler names to an UpdateTiddlers tiddler, for those who should be "autoupdated" after each change to tiddlers with a tag in the UpdateTags tiddler).

Also, could I somehow "populate" the TW with csv file (or stream) that might look like this:
{schema: amount, Cardname, Color,Type, Attack, Defense, Rarity)
4,RedCard1,Red,Creature,2,1,rare
4,RedCard2,Red,Creature,,,common
20,aLand,,Land,,,common

This CSV would create new tiddlers for Redcard1, Redcard2, aLand, Color, Type, and then a last one (which could be preexisting, but needs to update) Deck.

Regards,
-Reenen

nk

unread,
Feb 19, 2009, 3:49:28 AM2/19/09
to TiddlyWiki
I'm following this thread with a lot of interest because I can use the
tips for creating my own tiddler 'types' in tiddlywiki. However, does
anyone know how to add a datepicker in the edit template?
Eg. something like this :
<div class='my-info'>
Date: &nbsp;<span macro='datepicker o-date'></span>
</div>

Thanks

Henk

On Feb 18, 11:20 pm, Reenen Laurie <rlau...@gmail.com> wrote:
> Cool! I've saved a copy locally.
>
> A couple of questions...
>
> The Cards tiddler doesn't update automatically.  If I add a card, or change
> a card's fields, then the "summary" page(s) should update automatically.
> There is probably another plugin to do that (add tiddler names to an
> UpdateTiddlers tiddler, for those who should be "autoupdated" after each
> change to tiddlers with a tag in the UpdateTags tiddler).
>
> Also, could I somehow "populate" the TW with csv file (or stream) that might
> look like this:
> {schema: amount, Cardname, Color,Type, Attack, Defense, Rarity)
> 4,RedCard1,Red,Creature,2,1,rare
> 4,RedCard2,Red,Creature,,,common
> 20,aLand,,Land,,,common
>
> This CSV would create new tiddlers for Redcard1, Redcard2, aLand, Color,
> Type, and then a last one (which could be preexisting, but needs to update)
> Deck.
>
> Regards,
> -Reenen
>
> On Wed, Feb 18, 2009 at 1:45 PM, Reenen Laurie <rlau...@gmail.com> wrote:
> > Sorry, there is a "add a card" button... :-D
>
> > On Wed, Feb 18, 2009 at 1:44 PM, Reenen Laurie <rlau...@gmail.com> wrote:
>
> >> Awesome, I am just struggling on how to add a new card...
>
> >> Adding a new tiddler is easy, but how does it "become" a card?
>
> ...
>
> read more »

Ken Girard

unread,
Feb 24, 2009, 1:07:02 AM2/24/09
to TiddlyWiki

Ken Girard

unread,
Feb 24, 2009, 1:13:36 AM2/24/09
to TiddlyWiki
TO get it to AutoRefresh install:
http://www.TiddlyTools.com/#AutoRefresh
and
http://www.TiddlyTools.com/#InlineJavascriptPlugin

And then put
<<tiddler AutoRefresh with: on>>
into the tiddlers you want to have auto refresh

Ken Girard

On Feb 18, 4:20 pm, Reenen Laurie <rlau...@gmail.com> wrote:
> Cool! I've saved a copy locally.
>
> A couple of questions...
>
> The Cards tiddler doesn't update automatically.  If I add a card, or change
> a card's fields, then the "summary" page(s) should update automatically.
> There is probably another plugin to do that (add tiddler names to an
> UpdateTiddlers tiddler, for those who should be "autoupdated" after each
> change to tiddlers with a tag in the UpdateTags tiddler).
>
> Also, could I somehow "populate" the TW with csv file (or stream) that might
> look like this:
> {schema: amount, Cardname, Color,Type, Attack, Defense, Rarity)
> 4,RedCard1,Red,Creature,2,1,rare
> 4,RedCard2,Red,Creature,,,common
> 20,aLand,,Land,,,common
>
> This CSV would create new tiddlers for Redcard1, Redcard2, aLand, Color,
> Type, and then a last one (which could be preexisting, but needs to update)
> Deck.
>
> Regards,
> -Reenen
>
> On Wed, Feb 18, 2009 at 1:45 PM, Reenen Laurie <rlau...@gmail.com> wrote:
> > Sorry, there is a "add a card" button... :-D
>
> > On Wed, Feb 18, 2009 at 1:44 PM, Reenen Laurie <rlau...@gmail.com> wrote:
>
> >> Awesome, I am just struggling on how to add a new card...
>
> >> Adding a new tiddler is easy, but how does it "become" a card?
>
> ...
>
> read more »

Henk

unread,
Feb 25, 2009, 4:00:16 AM2/25/09
to Tiddl...@googlegroups.com
Hi Ken

thanks for pointing me to these plugins. I have it working now, I
just needed to adapt the dateChooserPlugin so it would take the
fieldname from a parameter instead of the hardcoded 'mgtd_date'.

Thank!

Henk
Reply all
Reply to author
Forward
0 new messages