themes/mytheme/layout/shortcodes/ref_pg_abc.html [A B C (ABC)]({{ ref "/pages/abc/home.md" }})
Then I use the shortcode:
content/page/pg1/index.md ... The current {{<ref_pg_abc>}} user ...
I get the error:
".../content/page/pg1/index.md:27:13": failed to render shortcode "ref_pg_abc": failed to process shortcode: "...themes/mytheme/layouts/shortcodes/ref_pg_abc.html:1:46": execute of template failed: template: shortcodes/ref_pg_abc.html:1:46: executing "shortcodes/ref_pg_abc.html" at <ref>: wrong number of args for ref: want 2 got 1
Without the < or %, you’re calling a function, not a shortcode. The function “ref” is used in the shortcode “ref”, but they are not the same thing. Try including the < or % in the source of the shortcode. If that doesn’t help, drop the < or % and read the rest of my post.
You need to work out the context that works here, I have to admit I’m not quite familiar with using that in practice. The dot should work though, try that first.