<$reveal type="match" state={{!!title}} tag="urgent"><$button class='tc-btn-invisible' message="tm-remove-tag" param="urgent">★</$button></$reveal>
\define toggle-urgent()
<$action-listops $tiddler={{!!title}} $field="tags" $subfilter="+[toggle[urgent]]" />
\end
<$button actions=<<toggle-urgent>> >
<$list filter="[all[current]tag[urgent]then[★]else[☆]]"><<currentTiddler>></$list>
</$button>You can call it with {{|| my-toggle-template}}
If you want to hide the button use: <$button class="tw-btn-invisible" actions=<<toggle-urgent>> > ... you will only get the star.
Well, I'm impressed. :-)It's very nice of you to explain all this and I think I understand the basic principle.
After reading the documentation - is there a special reason, that you did use $field="tags" $subfilter="+[toggle[urgent]]" instead of $tags="+[toggle[dringend]]"? (just to proof I understood anything at all)