[tw] Re: Tabs tutorial - Basics and more advanced usage...

2013-02-26 Thread Måns
Hi Yakov

I appreciate you explanations very much!! :-D

I've added "Yakov's comments" to the document.

I guess it would be very good practice ALWAYS to comment and explain
scripts and codes in one's documents to be able to learn more.

I've NEVER been very structured - however "fiddling" with TiddlyWiki,
learning a little css, using macro calls and a few scripts (here, and
there) - and creating lots, and lots of TiddlyWIki documents for all
kinds of purposes .. has shown me that stuff I considered to be WAY
over my head, just a couple of years ago, is almost within reach now!
It makes more and more sense when reading the source of available
plugins - and one's respect for those who create(d) this magic (the
TwWizards) grows with the insight...

Nice to be here ;-)


Thanks again !!

Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: Tabs tutorial - Basics and more advanced usage...

2013-02-26 Thread Yakov
Hi Mans,

воскресенье, 24 февраля 2013 г., 23:42:16 UTC+4 пользователь Måns написал:
>
> H Yakov 
>
> >I find it somewhat excessively narrowed in some aspects. 
>
> Thanks - I appreciate you guidance very much. 
>
> I made some changes following your advice. 
>
> I will need some(much) more time (and practice I guess) if I should 
> make references and comments to the javascript code - as I haven't got 
> a clue of what I'm doing ;-) 
>
> Everything in my writeup are tidbits of information, collected from 
> different threads on this group - or from TiddlyWiki.com. 
>
> What I also meant is linking some text about options and paramifiers in 
general, but I'v searched tiddlywiki.org (where Tobias has done some 
marvellous work recently, check it out) and tiddlywiki.com and found all 
the articles not suitable for linking.. I'll see what I can do, probably 
the [1] article should be extended so that it will be suitable for 
reference in your article as well.

When I write it down like this, it's because it helps me embrace all 
> needed information for being able to create links (ULs or wikilinks) 
> which point to an open tab in a tiddler - and it allows me to follow a 
> line of thought which leads to solutions - and more effective/ 
> practical use of "what's available atm..", not having to search 
> through many more or less related topics on these threads each time I 
> want to do this... 
>
> If someone else can use it for their "own bag of tricks" - that would 
> be fine. 
>
> I'm very aware that what I've written is *not* a tutorial in 
> javascript - however I would love so see one, which covered same 
> topic, in a language that made someone like me, understand what's 
> going on. 
>
> Well, what can I add here..

story.displayTiddler is a function used to display tiddler (it is defined 
in the story.js [2] which is used to manipulate DOM inside tiddlerDisplay 
area as well as to switch themes and templates). It has many arguments 
among which the first defines the place where to display the tiddler (for 
instance, if you put "this" in your script, the button will open the 
tiddler after the one containing the button; if you put the 'top' or the 
'bottom' line there, the tiddler will be opened on the top or in the bottom 
of the tiddlerDisplay area).

The second argument is the tiddler title, that's clear. The third is the 
tiddler template. If you want to open a tiddler in the edit mode, you may 
use

story.displayTiddler(this,title,story.chooseTemplateForTiddler(title,DEFAULT_EDIT_TEMPLATE));

which I do with some of my translusions on a mobile device. I guess, what 
story.chooseTemplateForTiddler does is clear. There are many more 
parameters in story.displayTiddler and also story.displayTiddlers function 
in story.js.

I'm not sure why jQuery('#tiddlerDisplay').show(); is in your script, it 
works without it (and is not used in the next one).

I'll explain the next one in comments

LinkText

I'd also recommend to add a link to [3] when you talk about transclusions 
which is more important then suppressing formatting here :)

Best regards,
Yakov. 

[1] http://tiddlywiki.org/#Options 
[2] https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Story.js
[3] http://tiddlywiki.org/#Transclusion

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: Tabs tutorial - Basics and more advanced usage...

2013-02-24 Thread Måns
H Yakov

>I find it somewhat excessively narrowed in some aspects.

Thanks - I appreciate you guidance very much.

I made some changes following your advice.

I will need some(much) more time (and practice I guess) if I should
make references and comments to the javascript code - as I haven't got
a clue of what I'm doing ;-)

Everything in my writeup are tidbits of information, collected from
different threads on this group - or from TiddlyWiki.com.

When I write it down like this, it's because it helps me embrace all
needed information for being able to create links (ULs or wikilinks)
which point to an open tab in a tiddler - and it allows me to follow a
line of thought which leads to solutions - and more effective/
practical use of "what's available atm..", not having to search
through many more or less related topics on these threads each time I
want to do this...

If someone else can use it for their "own bag of tricks" - that would
be fine.

I'm very aware that what I've written is *not* a tutorial in
javascript - however I would love so see one, which covered same
topic, in a language that made someone like me, understand what's
going on.


Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: Tabs tutorial - Basics and more advanced usage...

2013-02-24 Thread Yakov
Hi Mans,

this is quite informative text, thanks for your work. Though, I find it 
somewhat excessively narrowed in some aspects. I'd recommend to add some 
generalizaions: for instance, you write about TW option for tabs and even 
about the option paramifier, but there's no link to some text about options 
in TW and no mention of the fact that paramifiers can actually set any TW 
option. The same story is about plugins. The instructions are detailed, 
step-by-step ones but without much perspective to learn more, I feel. In 
html insertions, you can point on the onclick part that's launched on 
click, or even format your examples like this:

LinkText


(that's how I use them in my use-cases, not even when showing to others). 
This also improves readability and ease of comparing different html 
insertions you suggest. And finally, some comments in the code can make 
this even better as you can add some perspectives for learning, like

https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Story.js#L84
  jQuery('#tiddlerDisplay').show();  // see jQuery docs for 'show'
  return false;
">LinkText

And finally, may be the titles are worth making them more specific, like 
"paramifier for starting with certain tab opened" instead of just 
"paramifier". But may that's too long :)

Best regards,
Yakov.

воскресенье, 24 февраля 2013 г., 1:40:30 UTC+4 пользователь Måns написал:
>
> If you prefer a news reader format for better readability: 
>
> http://xn--mns-ula.dk/TWsOS/tabLink/news.php 
>
>
> On 23 Feb., 21:12, Måns  wrote: 
> > Hi TW'ians 
> > 
> > A couple of days ago I needed to be able to write both URLs and 
> > TiddlyLinks to open specific tabs in tiddlers. 
> > 
> > I found a few threads on this group where these issues where 
> > discussed. 
> > However none of them covered the gap between "very basic" and "very 
> > advanced" material 
> > 
> > This made me think -> and write this "TabsTutorial - Basics and more 
> > advanced usage..." hoping that it might help someone who needs the 
> > information - but still haven't reached "a point of nirvana" in coding 
> > skills ;-) : 
> > 
> > http://xn--mns-ula.dk/TWsOS/tabLink/ 
> > 
> > Please check it out and tell if I missed some important 
> > information 
> > 
> > Cheers Måns Mårtensson 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: Tabs tutorial - Basics and more advanced usage...

2013-02-23 Thread Måns
If you prefer a news reader format for better readability:

http://xn--mns-ula.dk/TWsOS/tabLink/news.php


On 23 Feb., 21:12, Måns  wrote:
> Hi TW'ians
>
> A couple of days ago I needed to be able to write both URLs and
> TiddlyLinks to open specific tabs in tiddlers.
>
> I found a few threads on this group where these issues where
> discussed.
> However none of them covered the gap between "very basic" and "very
> advanced" material
>
> This made me think -> and write this "TabsTutorial - Basics and more
> advanced usage..." hoping that it might help someone who needs the
> information - but still haven't reached "a point of nirvana" in coding
> skills ;-) :
>
> http://xn--mns-ula.dk/TWsOS/tabLink/
>
> Please check it out and tell if I missed some important
> information
>
> Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.