You can define your own functions in Templater.
There are two types of user functions you can use:
You can call a user function using the usual function call syntax:
<user_function_name> is the function name you defined.
For example, if you defined a system command user function named
echo, a complete command invocation would look like this:
<% tp.user.echo() %>
Currently user functions are unavailable on Obsidian for mobile.