\define zyklusa(licence-plate year)
<$select tiddler='$:/SiteTitle' tooltip='select tiddler wich should will cloned'>
<option value="Benzin - Jahr">Benzin</option>
<option value="Fahrzeugpflege - Jahr">Fahrzeugpflege</option>
<option value="Inspektionen und TÜV - Jahr">Inspektionen und TÜV</option>
<option value="Räder: Reifen und Felgen - Jahr">Räder: Reifen und Felgen</option>
<option value="Reparaturen und Wartung - Jahr">Reparaturen und Wartung</option>
<option value="Scheibenwischer - Jahr">Scheibenwischer</option>
<option value="Versicherung - Jahr">Versicherung</option>
<option value="Zulassung - Jahr">Zulassung</option>
</$select>
<$vars ph="Geben Sie die unten verlangten Angaben ein:">
''<<ph>>''<br/><br>
''licence-plate car:'' <$edit-text tiddler="$:/temp/licence-plate" tag=input size=20 placeHolder=<<ph>> default="licence-plate"/><br/>
'' year der Ausgabe:'' <$edit-text tiddler="$:/temp/year" tag=input size=10 placeHolder=<<ph>> default="2020"/><br/>
</$vars>
<$button> clone selected tiddler
<$action-sendmessage $message="tm-new-tiddler" $param={{$:/SiteTitle}} $value={{$:/SiteTitle}} [[$year$ ]] tags=[[$licence-plate$]] />
</$button>
\end
<$macrocall $name=zyklusa licence-plate={{$:/temp/licence-plate}} tiddler={{$:/SiteTitle}} year= {{$:/temp/year}} tags=[[$licence-plate$]] />
4. create an inputfield for the year: works.5. create the title of the new tiddler from the {$:/SiteTitle} and append the inputfield year: dont work.
<$action-sendmessage $message="tm-new-tiddler" $param={{$:/SiteTitle}} $value={{$:/SiteTitle}} [[$year$ ]] tags=[[$$]] />licence-plate
tags=[[$licence-plate$]]is wrong. The substitution variable $license-plate$ does not exist until the macro is called.$value={{$:/SiteTitle}} [[$year$ ]]
Is not valid. To concatenate these values which you seem to intend you can't do it in a parameter unless its only substitutions
$value="$SiteTitle$ [[$year$]]"
you can also define an additional macro that does the concatenation
\define temp(year) {{$:/SiteTitle}} [[$year$]]
Then $value=<<temp $year$>>
untested but expected to work
Its only in filters you can't use a macro that includes a parameter such as year in the above temp macro.
The short form of calling a macro is sometimes better done using the long form the Macrocall widget.
Regards
Tony
\define zyklusa(licence-plate year)\define zyklusa(licence-plate, year)The parameter separator (sep) is any sequence of characters that does not match a param-name.
Among other things, this includes commas, spaces and linefeeds.
Admittedly, the docs seems to say that a space should be enough:
The parameter separator (sep) is any sequence of characters that does not match a param-name.Among other things, this includes commas, spaces and linefeeds.... but I suspect this is not correct as I've never seen it with anything but a comma or comma+space there.
<:-)