Displaying Only Immediate Deck Name in Card Template

Hello,

I’m currently working on customizing my Anki card template, and I have a question about displaying the immediate deck name without showing parent decks.

In the card template, I’m using the {{Deck}} variable to display the deck name. However, this includes all parent decks as well. I want to show only the immediate deck name.

Is there a way I can make this happen?

https://docs.ankiweb.net/templates/fields.html#special-fields

In short, use {{Subdeck}}.

For details, see the link above.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.