I wrote a custom Liquid tag for writing standalone links with their associated metadata like so:
…using this syntax:
All the parameters except for the URL and the title are optional (although you probably don’t need this tag if that’s all you’re going to use anyway.) You can also include variables instead of strings. And you can put Liquid tags inside the strings.
Place the following file in the _plugins directory:
At the very least, this can serve as an example of how to parse named tag parameters and how to pass variable names