code-body: yes tags: $:/tags/Macro title: $:/cards/procedures type: text/vnd.tiddlywiki \whitespace trim \procedure flex-card(class,bordercolor:"",backgroundcolor:"",textcolor:"",imageField:"image",captionField:"caption",subtitle:"",descriptionField:"description",linkField:"link") <$link class={{{ [addprefix[tc-card ]] }}} to={{{ [getelse] }}} aria-label=<> > <$transclude $variable="flex-card-body" bordercolor=<> backgroundcolor=<> textcolor=<> imageField=<> captionField=<> subtitle=<> descriptionField=<> /> \end \procedure flex-card-external(class,bordercolor:"",backgroundcolor:"",textcolor:"",imageField:"image",captionField:"caption",subtitle:"",descriptionField:"description",linkField:"url") addprefix[tc-card ]addprefix[tc-tiddlylink ]] }}} href={{{ [get] }}} aria-label=<> rel="noopener noreferrer" target="_blank" > <$transclude $variable="flex-card-body" bordercolor=<> backgroundcolor=<> textcolor=<> imageField=<> captionField=<> subtitle=<> descriptionField=<> /> \end \procedure flex-card-body(bordercolor,backgroundcolor,textcolor,imageField,captionField,subtitle,descriptionField)
!is[blank]addprefix[5px solid ]] }}} style.background={{!!background}} style.backgroundColor=<> style.color=<> style.fill=<>> <$list filter="[has[ribbon-text]]" variable="ignore"> <$list filter="[has]" variable="ignore">
<$image source={{{ [get] }}} alt={{{ [getget[alt-text]else[Image.]] }}} />
<$transclude field=<>><$view field="title"/>
<$list filter="[!is[blank]]" variable="ignore">
<$text text=<>/>
<$transclude tiddler={{!!icon}}/>
<%if [all[current]getelse[]!match[]] %>
<$transclude field=<> mode="block"/>
<%endif%> <%if [all[current]has[button-text]] %>
<$text text={{!!button-text}}/> {{$:/core/images/chevron-right}}
<%endif%>
\end