How to add figures separately to each cloze on a card?

Hi all,
I’m not sure if this is the proper category for this question if not please move to the proper one.
I have some text which I need to learn for my studies and I’m using the Cloze type of cards.
I’m wondering how to create a card that could show me to each cloze a separate figure/picture?

For example bellow I have a few clozes and for each I’d like to see a different figure according to each cloze. How can I achieve it?

I suggest to split cards following the 20 basic rules of formulating knowledge. Then it’s very unlikely you will have the need of multiple pictures at a time in a single note.

2 Likes

Actually this is not the answer that I’m looking for :slight_smile:
I just need to associate the answer on a card with a figure and this works perfectly from my experience.
But when I have 30 clozes on a card it’s hard to add 30 pictures ans see all of them at the same time.

What I am trying to suggest is that 30 notes or so with 1 or 2 clozes each will work best for both implementation and for your retention rate than a single note with 30 clozes.

2 Likes

I think this is it, i.e. create as many new fields as you have clozes and update the card template using the following syntax.

Conditional generation provides a special field so you can check which card you are rendering. If you wanted to display the “hint1” field on the first cloze, and “hint2” field on the second cloze for example, you could use the following template:

{{cloze:Text}}

{{#c1}}
{{Hint1}}
{{/c1}}

{{#c2}}
{{Hint2}}
{{/c2}}

https://docs.ankiweb.net/#/templates/generation?id=cloze-templates

2 Likes

Thanks a lot, this is what I was looking for!

1 Like