> wikify(pagecontent, place);
> Anyone understand why my macro produces an error?

wikify() has *four* parameters:

wikify(pagecontent,place,null,tiddler);


Also, if all you are trying to do is to insert a value into some
preformatted content, you can do this just by using TW standard
features, without having to write any code at all:

First, create a tiddler called [[PageText]], containing:
-----------------
{{pages{
| Page $1 | Notes |
|<<tiddler  [[Entire Text##Page $1]]>>|<<notes>>|
}}}
-----------------

Then, to invoke it, use the TW core <<tiddler>> macro, like this:

<<tiddler PageText with: 1>>

When the <<tiddler>> macro is processed, it automatically replaces all
occurrences of 'substitution markers' $1 through $9 with the
corresponding parameter values passed following the "with:" keyword.
Thus, the value "1" will be inserted in place of the marker "$1"
before the content from [[PageText]] is rendered, producing exactly
the same results as intended by your custom-written macro.

enjoy,
-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
-~----------~----~----~----~------~----~------~--~---

Reply via email to