Hi, Mario!
I've uploaded a sample to http://infoboxes.tiddlyspot.com/.

w

On Mar 14, 5:54 pm, PMario <[email protected]> wrote:
> Hi whatever,
> I think, I created a mechanism, you desire, for my fancybox plugin.
> Because there are many parameters, and rewriting/changing them several
> times using getParam(...) was too much work.
>
> But it is rather hardcoded, there. For a more general use, it needs
> some refactoring.
>
> The general use for named params it like that:
>
> var parmName1 = getParam( params, "Name1", undefined);
>    params .. contains all macro parameters
>    "Name1" .. name of the needed parameter
>    undefined .. default value, if there is no parameter found.
>
> Does any parameter need an init value?
>
> Will it be possible to use your named params like this in the code.
> conf.name1
> conf.name2   and so on?
>
> Do you have a link to one of you macros. A medium one?
>
> I think I could provide a helloWorld plugin using this mechanism.
> Which could be very copy/paste friendly.
>
> But some search/replace at you macros will be needed, I think.
>
> -m
>
> On Mar 14, 1:34 pm, whatever <[email protected]> wrote:
>
> > I'm afraid that is waaaay out of my league. Oh well, I guess I'll have
> > to do it manually then.
>
> > w
>
> > On 14 mar., 12:41, Jeremy Ruston <[email protected]> wrote:
>
> > > > Actually, I need the local variables of the containing macro. I have
> > > > about twenty different macros and each has between three and twenty
> > > > variables. I was hoping for a simple way for each macro to list the
> > > > names of the variables so that that same macro would reuse that list
> > > > as an array for further processing. I was hoping to avoid having to
> > > > manually type all of the variables for each macro.
>
> > > OK, that sounds like some logic that you'd have to build for yourself.
>
> > > Cheers
>
> > > Jeremy
>
> > > > w
>
> > > > On 14 mar., 12:18, Jeremy Ruston <[email protected]> wrote:
> > > >> > I have a bunch of declared local variables whose values serve as 
> > > >> > named
> > > >> > parameters of a macro. However, I also need to use the names of the
> > > >> > variables, not the values. They would form an array, which I would
> > > >> > then parse and use for a for-loop. So, is there a way to list the
> > > >> > names of the variables?
>
> > > >> No, there's no easy way to get at a list of the names of the
> > > >> parameters of each macro. Depending on your goal, perhaps you could
> > > >> simply type the required information? There are not a huge number of
> > > >> macros, at least in the core.
>
> > > >> Best wishes
>
> > > >> Jeremy
>
> > > >> > w
>
> > > >> > --
> > > >> > 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 
> > > >> > athttp://groups.google.com/group/tiddlywiki?hl=en.
>
> > > >> --
> > > >> Jeremy Ruston
> > > >> mailto:[email protected]://www.tiddlywiki.com
>
> > > > --
> > > > 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 
> > > > athttp://groups.google.com/group/tiddlywiki?hl=en.
>
> > > --
> > > Jeremy Ruston
> > > mailto:[email protected]://www.tiddlywiki.com

-- 
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.

Reply via email to