# Display complete deck hierarchy when studying

**URL:** <https://forums.ankiweb.net/t/display-complete-deck-hierarchy-when-studying/29830>\
**Category:** Help\
**Created:** [April 29, 2023, 6:00pm UTC](https://forums.ankiweb.net/t/display-complete-deck-hierarchy-when-studying/29830 "2023-04-29T18:00:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pochopsp](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pochopsp](https://forums.ankiweb.net/u/pochopsp)\
**Post date:** [April 29, 2023, 6:00pm UTC](https://forums.ankiweb.net/t/display-complete-deck-hierarchy-when-studying/29830/1 "2023-04-29T18:00:30Z")

</div>

### **Problem**

When studying a deck with several subdecks, there could be unwanted ambiguity.

### **Example**

I have a deck structure as follows:

```auto
Programming
        C
           Keywords
        Java
           Keywords

```

On one card in Programming::C::Keywords I have the question “What is the static keyword for?”

Since in the study card screen I cannot see the deck hierarchy, I can’t know if the question is for the C language or the Java language (both have the static keyword).

### **Solution**

I suggest the following solution: display the whole deck hierarchy and in case it is too long we could ellipsize it, and show it complete only on click.

---

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [April 29, 2023, 6:24pm UTC](https://forums.ankiweb.net/t/display-complete-deck-hierarchy-when-studying/29830/2 "2023-04-29T18:24:28Z")

</div>

You can include {{Deck}} in your template.  
[https://docs.ankiweb.net/templates/fields.html](https://docs.ankiweb.net/templates/fields.html)

---

<div class="post-metadata">

**Author:** ![pochopsp](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pochopsp](https://forums.ankiweb.net/u/pochopsp)\
**Post date:** [April 29, 2023, 6:53pm UTC](https://forums.ankiweb.net/t/display-complete-deck-hierarchy-when-studying/29830/3 "2023-04-29T18:53:55Z")

</div>

Thanks for your reply.

With your suggestion, I’d have to manually edit all my current cards to use that template?

Is there a way to easily achieve this?

---

<div class="post-metadata">

**Author:** ![zrk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/zrk/32/12696_2.png) [@zrk](https://forums.ankiweb.net/u/zrk)\
**Post date:** [April 29, 2023, 7:56pm UTC](https://forums.ankiweb.net/t/display-complete-deck-hierarchy-when-studying/29830/4 "2023-04-29T19:56:41Z")

</div>

You would only need to modify the template that the card/note uses. Changing that will change all the cards that use the template. Assuming that all of those cards are using the same template, you would only need to make the change once.

---

<div class="post-metadata">

**Author:** ![pochopsp](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pochopsp](https://forums.ankiweb.net/u/pochopsp)\
**Post date:** [April 29, 2023, 10:48pm UTC](https://forums.ankiweb.net/t/display-complete-deck-hierarchy-when-studying/29830/5 "2023-04-29T22:48:44Z")

</div>

I use the same template for all my cards, so I endend up adding {{Deck}} to it, and as @zrk said, it changed for all cards using the template (in my case all). Thank you both, as far as I’m concerned, this topic can be closed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 29, 2023, 10:49pm UTC](https://forums.ankiweb.net/t/display-complete-deck-hierarchy-when-studying/29830/6 "2023-05-29T22:49:00Z")

</div>

Closed on May 29, 2023, 10:49pm UTC

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