\define my-contacts(team role) <table> <th>ROLE</th> <th>NAME</th> <th>TEAM</th> <th>LOCATION</th> <$list filter="[tag[person]team[$team$]role[$role$]sort[role]]" template="$:/core/ui/ListItemTemplateContacts"/> </table>
\end
<$list filter="[tag[person]team[$team$]regexp:role[$role$]sort[role]]" template="$:/core/ui/ListItemTemplateContacts"/>
\define my-contacts(team role)
<table>
<th>ROLE</th>
<th>NAME</th>
<th>TEAM</th>
<th>LOCATION</th>
<$set name="role-pattern" value=$role$>
<$list filter="[tag[person]team[$team$]regexp:role<role-pattern>sort[role]]" template="$:/core/ui/ListItemTemplateContacts"/>
</$set>
</table>
\end