Supply a single parameter of the hidden anchor (link reference).
kinda works: <span id="{{{1}}}" class="mw-headline" style="display: none!important;">{{{1}}}</span>