{#if $settings.displayTitleFormat === 'native'}
{#if $settings.displayFurigana}
{@const kana = abbreviate
? abbreviated(wanakana.toKana(title.native), abbreviateTo)
: wanakana.toKana(title.native)}
{@const native = abbreviate ? abbreviated(title.native, abbreviateTo) : title.native}
{#if kana === native}
{native}
{:else}
{native}
{/if}
{:else}
{abbreviate ? abbreviated(title.native, abbreviateTo) : title.native}
{/if}
{:else if $settings.displayTitleFormat === 'romaji'}
{abbreviate ? abbreviated(title.romaji, abbreviateTo) : title.romaji}
{:else}
{abbreviate
? abbreviated(title.english || title.romaji || title.native, abbreviateTo)
: title.english || title.romaji || title.native}
{/if}