The computer version of Anki recently introduced some checks upon saving of templates, intended to avoid common pitfalls when creating cards: Template checks by RumovZ · Pull Request #1200 · ankitects/anki · GitHub
One of these checks disallows saving if it is detected that there is more than one template with the same front side:
I have a use-case where I pre-generate cards with
genanki and update them over long periods of time; to avoid having to create multiple different note types when I want to add a new card, I pre-create 10s of empty templates that then I update as I want to. As long as I just change the content of the template and not the name of it or the ordering, the notes update seamlessly using the same note type, even when I export this for other users. However, these new checks prevent me from editing a template because I have many empty templates, which is intended.
Is there any chance that we could allow a way for editing in this case? Potential ways that this could be accomplished that come to mind:
- allow the user to override the checks (instead of “OK” being the only option, there could be an “Ignore” or “Override” option);
- do not run the duplicate template detection logic on empty / blank templates
- remove the detection altogether