:: Actions[include]
<<if _actions>>
	<<run _actions.sortByPriority()>>
	<<for _action range _actions>>
		<<if _action.passage == passage()>>

			<<set $tooltipCounter ??= 0>>
			<<set $tooltipCounter = $tooltipCounter % 1000000>>
			<<set $tooltipCounter += 1>>
			<<set _tooltip_id = 'tooltip_'+$tooltipCounter>>
			<<set _tooltip_id_hidden = 'tooltip_'+$tooltipCounter+'_hidden'>>

			<div @class="_action.styleClass" @id="_tooltip_id" title="">
				<<if _action.image>>
					<<image _action.image>>
				<</if>>
				<<capture _action>>
					<<link _action.label>>
						<<run _action.execute()>>
					<</link>>
				<</capture>>
			</div>

			<<if _action.tooltip>>
				<a @id=_tooltip_id_hidden style="display:none">
					_action.tooltip
				</a>

				<<capture _tooltip_id, _tooltip_id_hidden>>
					<<done>>
						<<run setup.tooltip("#"+_tooltip_id, '#'+_tooltip_id_hidden)>>
					<</done>>
				<</capture>>
			<</if>>

		<</if>>
	<</for>>
<</if>>