{{define "anime_card"}} {{$anime := .Anime}} {{$withActions := .WithActions}} {{$compact := .Compact}} {{$hideTitle := .HideTitle}} {{$isWatchlist := .IsWatchlist}} {{$hasTopBadge := .HasTopBadge}} {{$dataId := printf "id-%d" $anime.MalID}} {{$imageUrl := posterURL $anime.Images.Webp.LargeImageURL $anime.Images.Jpg.LargeImageURL 400 600}} {{$displayTitle := $anime.DisplayTitle}}
{{$displayTitle}} {{if $withActions}}
{{if not $isWatchlist}}

{{$displayTitle}}

{{end}} {{if $anime.Synopsis}}

{{$anime.Synopsis}}

{{end}}
{{else}}

{{$displayTitle}}

{{if not $compact}}
{{if $anime.Score}} {{$anime.Score}} {{end}} {{if $anime.Year}} {{$anime.Year}} {{end}} {{if $anime.Episodes}} {{$anime.Episodes}} ep {{end}}
{{end}}
{{end}}
{{if and $withActions (not $hideTitle)}}

{{$displayTitle}}

{{end}}
{{end}}