Multi-language back template for Anki decks (control answers by tags)

Hi everyone :waving_hand:

I wanted to share a small experiment I’ve been working on: a multi-language back template that lets you show answers in different languages — English, Spanish, or Italian — depending on tags.


:globe_showing_europe_africa: What it does

This template lets you decide which translations are shown using tags, for example:

  • Language::EN → show English translation
  • Language::ES → show Spanish translation
  • Language::IT → show Italian translation

If no tag is set, all translations are displayed.

Because it’s tag-based, you can:

  • Configure each card individually (some in Italian, some in Spanish, etc.)
  • Combine tags (e.g. Language::EN + Language::IT) to show multiple translations at once

It’s flexible, lightweight, and great for multilingual learners or shared decks.

Fields:

  • Front
  • Back EN
  • Back ES
  • Back IT

Tags examples:
Language::EN, Language::ES, Language::IT

:speech_balloon: Notes

This template can be easily reused for other languages — just add more translation fields and extend the CSS.
Perfect for multilingual learners or deck creators who want to share one deck for multiple audiences.

Back template

<div class="{{Tags}}">
  {{FrontSide}}

  <hr id=answer>

  <div class="lang-en"><div>EN</div> {{Back EN}}</div>
  <div class="lang-es"><div>ES</div> {{Back ES}}</div>
  <div class="lang-it"><div>IT</div> {{Back IT}}</div>
</div>

Style

[class*=“Language::”]:not(.Language::EN) .lang-en,
[class*=“Language::”]:not(.Language::ES) .lang-es,
[class*=“Language::”]:not(.Language::IT) .lang-it {
  display: none;
}

[class*=“lang-”] div {
  opacity: .5;
  font-size: 70%;
  margin: .6rem 0 .1rem;
}

:package: Demo deck

Here’s a small sample deck using this template: https://ankiweb.net/shared/info/715983778?cb=1761591455546


I’d love to hear feedback, suggestions, or ideas to improve this approach.
Maybe we can turn it into a general-purpose “multi-language template” for any language deck.

Screenshots

No tags (all languages are shown)

Spanish tag (Language::ES)

English and Italian tags (Language::EN and Language::EN)

3 Likes

Nice. Very interesting.