I have a style (POSITION) that references a node by parameter
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary
{%
positioning,
shapes.geometric
}
\tikzset
{%
POSITION/.style=
{%
below=0mm of #1.left corner,
anchor=apex
},
TRIANGLE/.style=
{%
isosceles triangle,
minimum width=30mm,
line width=1mm,
draw
}
}
\begin{document}
\begin{tikzpicture}
\path node[TRIANGLE](T1){};
\path node
[%
TRIANGLE,
POSITION={T1}
] (T2){};
\end{tikzpicture}
\end{document}
but aside from a node parameter (#1) I also need to be able to pass the node's anchor to POSITION style separately (as #2 parameter) so that left corner can be set as default value for the anchor's (#2) parameter (making it optional).
Following is a pseudo code of what I am looking for
POSITION/.style=
{%
below=0mm of #1.#2,
anchor=apex
}
POSITION/.default={#1}{left corner}
to make POSITION={T1} equal to POSITION={T1}{left corner} while accepting other anchor values (such as POSITION={T1}{right side}).


.style 2 args, however. – cfr Sep 09 '17 at 01:21