On Saturday, March 6, 2021 at 10:34:14 AM UTC+1 PMario wrote: I did already think about a syntax like this: [[alias name|!macro-name]] > ... The problem with macro-calls is, that many of them need more than 1 > parameters. ... So we need a way to call macros and give them enough > additional information, that they can do something useful. > > I do have a new plugin in the making, that may be able to solve this > problem. eg: 『?:"alias-name":"relation type" text to be shown』 >
@Diego, What would you think about a syntax like this. At the moment uni-link alias link looks like this: [[alias|?]] or [[alias|?fieldName]] which is translated to: <<aka target:"alias">> or <<aka target:"alias" field:"fieldName">> which can be shortened to: <<aka "alias">> or <<aka "alias" "fieldName">> The advantages of the macrocalls are, that they are easy to extend eg: <<aka "alias" type:"mention">> which would add a backlinkable "type" element. ... There needs to be some code, that can handle the "type" info. A custom markup call *could* look like this:『?:"alias"』or 『?:"alias" fieldName』or with the "type" info added it could be: 『?:"alias":"type"』 ... 『?:"alias":"type" fieldName』*could* be translated to <<aka "alias" field:"fieldName" type:"type">> but I'm not really sure, if there is a big difference between this new syntax and a macro call. just some thoughts mario -- 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/93b2d2b1-475a-4424-8989-c4575efaeca4n%40googlegroups.com.

