TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
7.98k stars 1.18k forks source link

How to or Documentation broken for Filtered Attribute Values #3920

Closed AnthonyMuscio closed 5 years ago

AnthonyMuscio commented 5 years ago

Folks,

As documented here https://tiddlywiki.com/#HTML%20in%20WikiText at the bottom the example is given for Filtered Attribute Values <$text text={{{ [<currentTiddler>]addPrefix[$:/myprefix/]] }}}> The above does not work even in tiddlywiki.com returning "Filter error: Syntax error in filter expression"

I have built a number of shortcuts using the Filtered Attribute Values and the triple curly braces. I would like to return some of the result as plain text rather than apparent links to non existent tiddlers and would hope this example worked, however if does not.

Please advise how to do this and help me then correct the documentation.

Regards Tony

AnthonyMuscio commented 5 years ago

Also I see the syntax error, an additional "]" has being removed, and the P changed to p

Corrected here {{{ [<currentTiddler>addprefix[$:/myprefix/]] }}}

So now <$text text={{{ [<currentTiddler>addprefix[$:/myprefix/]] }}}> works

I will attempt a Change request.

AnthonyMuscio commented 5 years ago

Done https://github.com/Jermolene/TiddlyWiki5/pull/3921

00SS commented 5 years ago

Thanks for catching this and fixing it with a PR!