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: <span macro='datepicker o-date'></span> </div>
Thanks Henk On Feb 18, 11:20 pm, Reenen Laurie <[email protected]> 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 <[email protected]> wrote: > > Sorry, there is a "add a card" button... :-D > > > On Wed, Feb 18, 2009 at 1:44 PM, Reenen Laurie <[email protected]> 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? > > >> On Wed, Feb 18, 2009 at 9:06 AM, Ken Girard <[email protected]> wrote: > > >>> 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 <[email protected]> wrote: > >>> > It is. Look at: > > >>> >http://tiddlywiki.abego-software.de/#WhereClauseExamples%20%5B%5BDisp. > >>> .. > > >>> > 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 > > >>> > On Feb 17, 2:46 pm, Reenen Laurie <[email protected]> wrote: > > >>> > > 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? > > >>> > > On Tue, Feb 17, 2009 at 10:28 PM, Ken Girard <[email protected]> > >>> wrote: > > >>> > > > Take a look at: > >>> > > >http://cardcollection.tiddlyspot.com/ > > >>> > > > Ken Girard > > >>> > > > On Feb 17, 1:23 pm, Steve <[email protected]> wrote: > >>> > > > > 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 14, 1:22 pm, Ken Girard <[email protected]> wrote: > > >>> > > > > > 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: <span macro='edit c-color'></span> <br /> > >>> > > > > > Type: <span macro='edit c-type'></span> <br /> > >>> > > > > > Rarity: <span macro='edit c-power'></span> <br /> > >>> > > > > > Attack: <span macro='edit c-attack'></span> <br /> > >>> > > > > > Defense: <span macro='edit c-defense'></span> <br /> > >>> > > > > > Number of: <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/" > > >>> > > > > > <[email protected]> wrote: > >>> > > > > > > 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 > > >>> > > > > > > On Feb 13, 2:58 pm, Steve <[email protected]> wrote: > > >>> > > > > > > > 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 > >>> forMagicthe > >>> > > > > > > > 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- Hide quoted text - > > >>> > > > > > - Show quoted text -- Hide quoted text - > > >>> > > > > - Show quoted text - > > >>> > > -- > >>> > > o__ > >>> > > ,_.>/ _ > >>> > > (_)_\(_)_______ > >>> > > ...speed is good > >>> > > _______________ > >>> > > I believe five out of four people have a problem with fractions.- > >>> Hide quoted text - > > >>> > > - Show quoted text - > > >> -- > >> o__ > >> ,_.>/ _ > >> (_)_\(_)_______ > >> ...speed is good > >> _______________ > >> I believe five out of four people have a problem with fractions. > > > -- > > o__ > > ,_.>/ _ > > (_)_\(_)_______ > > ...speed is good > > _______________ > > I believe five out of four people have a problem with > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

