<{f:if(condition: module.shouldBeLinked, then: 'a', else: 'button')}
href="{f:be.uri(route: module.identifier)}"
data-moduleroute-identifier="{module.identifier}"
role="menuitem"
title="{buttonTitle}"
class="modulemenu-action"
tabindex="{tabIndex}"
data-modulemenu-identifier="{module.identifier}"
data-modulemenu-collapsible="{f:if(condition: showChildren, then: 'true', else: 'false')}"
{f:if(condition: showChildren, then: 'aria-haspopup="true" aria-expanded="{f:if(condition: module.collapsed, then: \'false\', else: \'true\')}"')}
>
{f:if(condition: module.shouldBeLinked, then: 'a', else: 'button')}>