Not sure you need the JavaScript.

Assuming input:
Spelling Template 

Desired output:
Spelling - Underground

Try:

<$set name="tiddlerToCreateFromTemplate" 
    value={{{[<whichTiddlerTemplateName>removeSuffix[Template]addSuffix[- 
Underground]]}}} >

OR

<$set name="tiddlerToCreateFromTemplate" 
    value={{{[<whichTiddlerTemplateName>split[Template]join[]addSuffix[ - 
Underground]]}}} >

You can also do :
{{{[<whichTiddlerTemplateName>removeSuffix[Template]addSuffix[- 
Underground]]}}}

to directly create a link instead of setting to a variable.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2902ad21-8992-4ce4-b398-829582ebc4afo%40googlegroups.com.

Reply via email to