<$list filter="[enlist<__tabNames__>]" variable="tab" counter="tabCounter">
<$let
caption={{{ [enlist<__tabCaptions__>nth] }}}
>
<$list filter="[match]" variable="ignore">
<$button aria-checked="true" class="tc-tab-selected" role="switch">
<$action-setfield $tiddler=<<__state__>> $value=<>/>
<$text text=<>/>
$button>
$list>
<$list filter="[!match]" variable="ignore">
<$button role="switch">
<$action-setfield $tiddler=<<__state__>> $value=<>/>
<$text text=<>/>
$button>
$list>
$let>
$list>
<$list filter="[enlist<__tabNames__>]" variable="tab" counter="tabCounter">
<$list filter="[
match]" variable="ignore">
<$macrocall $name=<>/>
$list>
<$list filter="[!match]" variable="ignore">
$list>
$list>