1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-06 10:46:57 +00:00

syntax examples for using addprefix operator

This commit is contained in:
bobjtls 2025-03-23 14:50:51 +11:00
parent 48fa2be6ac
commit f6a0222972
2 changed files with 18 additions and 8 deletions

View File

@ -1,13 +1,13 @@
caption: addprefix
created: 20140410103123179
modified: 20150203181822000
modified: 20250323034328900
op-input: a [[selection of titles|Title Selection]]
op-output: the input, but with <<.place S>> added to the start of each title
op-parameter: a string of characters
op-parameter-name: S
op-purpose: extend each input title with a prefix
tags: [[Filter Operators]] [[String Operators]]
title: addprefix Operator
type: text/vnd.tiddlywiki
caption: addprefix
op-purpose: extend each input title with a prefix
op-input: a [[selection of titles|Title Selection]]
op-parameter: a string of characters
op-parameter-name: S
op-output: the input, but with <<.place S>> added to the start of each title
<<.operator-examples "addprefix">>

View File

@ -1,7 +1,17 @@
created: 20150118132851000
modified: 20150118183116000
modified: 20250323034523441
tags: [[addprefix Operator]] [[Operator Examples]]
title: addprefix Operator (Examples)
type: text/vnd.tiddlywiki
<<.operator-example 1 "Cat Garden [[Favourite Armchair]] +[addprefix[My ]]">>
```
The syntax for using the addprefix operator is as follows:
square brackets surround literal text value (e.g., addprefix[sometext] as shown in the example above)
curly braces surround tiddler field references (e.g., addprefix{SomeTiddler!!somefield})
angle brackets surround variable references (e.g., addprefix<somevariablename>)
```