Preview any cloze number

AnkiWeb addon 915063177

Enables previewing any cloze number, not just the first, when editing card templates to test conditional cloze content; now built into Anki since 2.1.28 and no longer updated.
AI-generated summary; may contain mistakes.

card-templatesclozeobsolete

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
5 (👍 5 · 👎 0)
Updated
2020-02-28
Anki versions
<=2.1.26
License
GPL-3.0 (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, Batchfile
Description language
en

Maintenance

abandoned

  • Last update or commit: 2021-10-16 (1842 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 1 open, 1 closed.
  • Pull requests: 0 open, 1 merged.
  • Median first response: 116 hours (1 answered issues and pull requests).
  • Outside pull requests: 100% of 1 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.192019-09-22
2.1.202.1.262020-02-28
History across monthly snapshots

Loading…

Similar addons

Cloze (Hide All)

Creates a cloze card type that hides all clozes except the one being reviewed in yellow boxes, with conditional reveal rules and a toggle mask button.

card-templatescloze

93 votes 73% approval 👍 76 · 👎 17 ⭐ 14 Updated 2026-05-10
Cloze Word Counter

Replaces [...] in cloze deletions with the number of words, with configurable counter format, question/answer visibility, and an option to keep [...] for single words.

card-templatescloze

2 votes 34% approval 👍 2 · 👎 0 Anki 25.02.5~ Updated 2025-06-25

Description

This allow you to preview any cloze, not just number 1, as in this image. Since 2.1.28 it is incorporated in anki. This add-on won't be updated anymore

README

Preview any cloze

Example

Rationale

When you edit a card template, you want to be able to preview it in real time. With Cloze deletion, by default, you can only preview the first card. That's strange, I believe.

With this add-on, you can select the cloze number you'll be previewing.

I believe that this is mostly useful if you ever use conditions, such as {{#c ... }} {{/c ...}} and {{^c ... }} {{/c ...}}, which show a different content depending on the card number.

Internal

In aqt.clayout.CardLayout, it changes the methods:

  • redraw
  • setupTopArea
  • onCardSelected
  • updateMainArea The following methods are also changed, and the previous version of the method is called.
  • __init__
  • updateCardNames

Version 2.0

None

Links, licence and credits

Key Value
Copyright Arthur Milchior arthur@milchior.fr
Based on Anki code by Damien Elmes anki@ichi2.net
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-any-cloze-in-preview
Addon number 915063177