Re: [tw5] Re: Understanding Templates, Macros, Etc.

2021-05-30 Thread Randy J. Ray
It is good to be welcomed, even as a newcomer. Many communities are not 
so generous :-).


One follow-up question, though: when you say, "add the following $button 
wherever you like", do you mean within an existing tiddler? Or is there 
a way to assign it an icon and have it be an action that I can configure 
into my main menu-bar?


Randy


On 5/29/21 3:21 PM, Eric Shulman wrote:

On Saturday, May 29, 2021 at 2:36:29 PM UTC-7 rj...@blackperl.com wrote:

Please forgive the somewhat newbie-ish post.

You don't need to ask for "forgiveness"... this group welcomes 
"newbies" with open arms.


I want to be able to click a button and create a new "Project"
tiddler, in which a few basic tags are set but which also has the
skeleton content of:

!!Materials

!!!Kits/Aftermarket

!!!Accessories

!!References

!!Web References

!!Notes


1) First, create a tiddler (e.g., "ProjectStarter"), containing the 
desired "skeleton content" and tags.

2) Next add the following $button wherever you like:
<$button message="tm-new-tiddler" param="ProjectStarter">New 
Project


That's it.  When you press the "New Project" button, it will open a 
new tiddler for editing with the indicated default starting content.


enjoy,
-e


--
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 
<mailto:tiddlywiki+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dfb7829e-31c8-468b-9777-e407e9b5f588n%40googlegroups.com 
<https://groups.google.com/d/msgid/tiddlywiki/dfb7829e-31c8-468b-9777-e407e9b5f588n%40googlegroups.com?utm_medium=email_source=footer>.


--
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Randy J. Ray  San Jose, CA
rj...@blackperl.com
twitter.com/rjray
Silicon Valley Scale Modelers: http://www.svsm.org

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9dbe27d5-9772-3bf3-8b4c-6841bb136750%40blackperl.com.


[tw5] Understanding Templates, Macros, Etc.

2021-05-29 Thread Randy J. Ray
Please forgive the somewhat newbie-ish post. What I am trying to do is 
similar to something another list member posted about recently, but I 
was still new to the list and getting my mail app to properly file 
list-mail. As such, I lost some of the threads.


I use TiddlyWiki a fair amount, with different wikis for different 
purposes: one for coding projects, one for master's thesis research, one 
for my scale modeling hobby projects, etc. But for each of these I have 
a similar need: I want to be able to create a new tiddler with some 
amount of text already present (generally just a collection of headings 
at different levels).


Using the scale modeling wiki as an example: I want to be able to click 
a button and create a new "Project" tiddler, in which a few basic tags 
are set but which also has the skeleton content of:


   !!Materials

   !!!Kits/Aftermarket

   !!!Accessories

   !!References

   !!Web References

   !!Notes

I have similar needs for the other wikis, but different basic structure.

I would normally think of this sort of thing as a template, but I think 
that TW uses template to mean something different? I found a very close 
sample of this on the Grok TiddlyWiki site, using "$action-sendmessage" 
and "tm-new-tiddler", but it wasn't clear how to include body content.


Thanks in advance,

Randy

--
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Randy J. Ray  San Jose, CA
rj...@blackperl.com
twitter.com/rjray
Silicon Valley Scale Modelers: http://www.svsm.org

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dc884ca6-2815-aefb-5f9a-9d6223a081b6%40blackperl.com.


[tw5] New to TiddlyWiki - cannot find clear documentation as to how to massage a stylesheet just for printing.

2018-12-24 Thread Randy Burgess
I found someone's effort at improving styles when printing 
here: https://gist.github.com/ssokolow/1110618

However, although I have done a lot of web site coding in the past, 
including with CSS, for the life of me I cannot find any clear 
documentation anywhere at all (I have searched threads in this forum, the 
existing documentation, and also Google at large) about how styles are 
managed in the current version of TiddlyWiki (which I have just installed, 
and am running on Mac via TiddlyDesktop); and also how a stylesheet might 
be restricted to printing only. 

If there is some special place where all this is explained, I would be 
grateful for where to find it. 

thanks -
RB

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e10e6d4a-5fe2-4550-9e56-8bf2f09fe4ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Double square bracket dual usage?

2009-09-22 Thread Randy

Are double square brackets only used for links,
 i.e. [[Label Text|TargetTiddler]] ?
Are double squares sometimes used for
quote-like purposes?

How should I mentally parse double squares?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: ExternalTiddlersPlugin with Pretty Link Name

2009-09-21 Thread Randy

Any help getting Pretty Links (i.e. |link-text) to work with
ExternalTiddlersPlugin would be greatly appreciated.
I've tried dozens of variations and searched the web for 2 days,
only to hit dead ends...  Thanks in advance.  Randy

On Sep 20, 1:38 pm, Randy randytid...@data-warp.com wrote:
 ExternalTiddlersPlugin is almost perfect...

 Examples that fail, but why?:

     * [[ExternalFoo.tw|tiddler ExternalFoo.tw]] ExternalFoo.tw
     * [[Link|tiddler ExternalFoo.tw]] Link

 It works if the pretty Link| notation is removed!

 Examples that work when clicked (expand and Tiddlify):

     * [[tiddler ExternalFoo.tw]] tiddler ExternalFoo.tw
     * [[tiddler Bar/ExternalBar.tw]] tiddler Bar/
 ExternalBar.tw

 Examples that work and display plain text:

     * [[Link|ExternalFoo.tw]] Link

 http://www.tiddlytools.com/#ExternalTiddlersPluginInfo
 Version 1.3.1
 Author  Eric Shulman
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: ExternalTiddlersPlugin with Pretty Link Name

2009-09-21 Thread Randy

Thanks for the response... Tiddly and JavaScript are totally new to
me.

I'm a programmer developing C, Fortran and associated documentation.
I'm hoping that TiddlyWiki can help pull it all together.
How best to integrate them is what I'm exploring...
ExternalTiddlersPlugin
almost does enough (perhaps unintentionally), perhaps I need
TiddlyWeb,
perhaps something else.

Goals:
* Maintain Tiddly markup in plain text files (no HTML encoding).
* Leverage TiddlyWiki to present pages (Wiki-editing is optional)

I want to use TiddlyWiki to display pages, while doing most of the
authoring and maintenance of pages in Vim (where I'm highly
productive).
Vim allows me to approximate the Wiki experience, i.e. syntax/markup
highlights and follow links with gf and/or gu (goto file under
cursor and/or
Utl  universal text links).  This helps with authoring but is not good
enough
for published documentation.

Vim allows me to refactor code and documentation both easily and
globally.
Ctags allow the raw Tiddler source to magically link to C and Fortran
source.
The gf tricks allow the code to magically link to the Tiddler
documentation.
Both are useful, especially during initial development of a large
project
when there are 2 gazillion details to cross-reference and get right.

My Vim syntax file uses Tiddly highlights in C and Fortran comments
(which enhances readability in my opinion), while retaining language
highlights for the executable portions of the source code.

Question: would a TiddlyCtags plugin make any sense?
i.e. have a plugin that uses ctags information to find and display
relevant
source code, without explicitly using link markups.   Ctags is like a
glossary of terms and where their definition can be found.
If the user clicks on a naked phrase that is not defined, then they
might be given the opportunity to define it (glossary entry or source
code).


On Sep 21, 1:41 pm, Eric Shulman elsdes...@gmail.com wrote:
  Any help getting Pretty Links (i.e. |link-text) to work with
  ExternalTiddlersPlugin would be greatly appreciated.

 You can't use a TW *macro* inside the PrettyLink syntax.

 Macro don't work that way.  They don't generate *text* that is
 inserted into the source and then parsed.  Rather, they render their
 own output (if any) by directly generating browser DOM elements.
 Thus, you can't combine output from a macro with some surrounding
 syntax and then have that combination parsed as if it had been entered
 as text.

    [[text to show|tiddler TiddlerName]]
 is *not* valid TW syntax, and I'm actually surprised that it rendered
 at all, and even more astonished it appears to do anything even
 remotely similar to what you intended.

 Perhaps if you describe your objectives (in regular prose, not pseudo-
 code), I can suggest a suitable syntax that *is* valid and will
 achieve the results you want.

 -e
 Eric Shulman
 TiddlyTools / ELS Design Studios
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~--~~~~--~~--~--~---



[tw] ExternalTiddlersPlugin with Pretty Link Name

2009-09-20 Thread Randy

ExternalTiddlersPlugin is almost perfect...

Examples that fail, but why?:

* [[ExternalFoo.tw|tiddler ExternalFoo.tw]] ExternalFoo.tw
* [[Link|tiddler ExternalFoo.tw]] Link

It works if the pretty Link| notation is removed!

Examples that work when clicked (expand and Tiddlify):

* [[tiddler ExternalFoo.tw]] tiddler ExternalFoo.tw
* [[tiddler Bar/ExternalBar.tw]] tiddler Bar/
ExternalBar.tw

Examples that work and display plain text:

* [[Link|ExternalFoo.tw]] Link

http://www.tiddlytools.com/#ExternalTiddlersPluginInfo
Version 1.3.1
Author  Eric Shulman

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~--~~~~--~~--~--~---