# Additional Card Fields \[Official thread\]

**URL:** <https://forums.ankiweb.net/t/additional-card-fields-official-thread/541>\
**Category:** Add-ons\
**Created:** [June 27, 2020, 6:13pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541 "2020-06-27T18:13:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [June 27, 2020, 6:13pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/1 "2020-06-27T18:13:06Z")

</div>

If you have a problem with the add-on add-on [Additional Card Fields](https://ankiweb.net/shared/info/744725736) post in this thread. This way I get notified. If you make a new thread I might miss it.

The old support thread was [here](https://anki.tenderapp.com/discussions/add-ons/40804-additional-card-fields-official-thread). There are some useful discussions in it, e.g. on how to use values from the add-on for styling your cards with javascript.

---

<div class="post-metadata">

**Author:** ![s609078902](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@s609078902](https://forums.ankiweb.net/u/s609078902)\
**Post date:** [December 1, 2020, 3:52am UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/2 "2020-12-01T03:52:20Z")

</div>

May you add a field to show Last Note Modification Date?

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [December 2, 2020, 2:30pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/3 "2020-12-02T14:30:58Z")

</div>

This seems useful. I have seen the github. It’s on the todo list. Maybe I’ll have time this week, else in the spring of 2021.

---

<div class="post-metadata">

**Author:** ![gnomek](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gnomek](https://forums.ankiweb.net/u/gnomek)\
**Post date:** [March 18, 2021, 3:50pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/4 "2021-03-18T15:50:25Z")

</div>

It doesn’t display information:

 ![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/235aa2938b35080bfea799f2103ddb2a0d537af2.png)

Anki Version ⁨2.1.37 (6d596c8f)⁩  
Python 3.8.1 Qt 5.15.1 PyQt 5.15.1

Operating System: Manjaro Linux  
KDE Plasma Version: 5.21.2  
KDE Frameworks Version: 5.79.0  
Qt Version: 5.15.2  
Kernel Version: 5.11.2-1-MANJARO  
OS Type: 64-bit

Help please. I added some additional steps to new cards like 1440 2880 and I want to use this add-on to see the difference between cards that are in learning and in review, preferably conditionally, I mean display is learning, don’t display anything if it is not in learning.

Or perhaps I don’t know how to use it properly. I don’t understand why it need a special field.

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [March 18, 2021, 7:19pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/5 "2021-03-18T19:19:51Z")

</div>

due to internal changes in Anki the old syntax you use no longer works in Anki 2.1.20 or later. You have 2.1.37 so you need e.g. `{{info-LastReview:}}`.

---

<div class="post-metadata">

**Author:** ![gnomek](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gnomek](https://forums.ankiweb.net/u/gnomek)\
**Post date:** [March 19, 2021, 9:09am UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/6 "2021-03-19T09:09:07Z")

</div>

![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/0/0d8509ae0ec02ea74f9e47054b64f7f33899459f.png)

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [March 19, 2021, 10:44am UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/7 "2021-03-19T10:44:38Z")

</div>

@gnomek: The problem in your screenshot is that you are missing question marks. In the description on ankiweb I have this: `{{info-TodayLearning?:}}`. Names with question marks have been in use since 2015/2019 so I can’t change them without breaking many setups.

---

<div class="post-metadata">

**Author:** ![gnomek](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gnomek](https://forums.ankiweb.net/u/gnomek)\
**Post date:** [March 19, 2021, 12:04pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/8 "2021-03-19T12:04:00Z")

</div>

It doesn’t change anything. Or I don’t know what is the proper use of it. I expected it will show on cards that are found by searching `is:learn`= interval learning.

 ![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/3a143fc3bc0233a825fdba08613880a9026bdd30.png)

 ![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/a3a256be3534df560a9dc9cbc587057d40d44966.png)

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [March 19, 2021, 12:53pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/9 "2021-03-19T12:53:02Z")

</div>

some fields have questions marks, some don’t. Just copy and paste from the documentation of my add-on ankiweb.

For the exact meaning of the special fields I use check the source code, e.g. for `"Learning?"` [here](https://github.com/ijgnd/anki21__reviewer_additional_card_fields/blob/349dfbf6f2fe8ec00adff17cf7a3307db1052305/src/new_additional_card_fields.py#L227). According to [this database description](https://github.com/ankidroid/Anki-Android/wiki/Database-Structure) card.type =1 means “card in learning”. This should evaluate to true for cards that are matched by the search term `is:learn` in the browser.

---

<div class="post-metadata">

**Author:** ![gnomek](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gnomek](https://forums.ankiweb.net/u/gnomek)\
**Post date:** [March 19, 2021, 1:55pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/10 "2021-03-19T13:55:18Z")

</div>

> [@ijgnd](#):
>
> Just copy and paste from the documentation of my add-on ankiweb.

This is what I did.

```
- {{info-Learning?:}} - is this card being learned?
- {{info-TodayLearning?:}} - shown if card in learning and in queue 1

```

[https://ankiweb.net/shared/info/744725736](https://ankiweb.net/shared/info/744725736)

So, I have correct typing on first screenshot. I did copy paste.

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [March 19, 2021, 5:12pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/11 "2021-03-19T17:12:20Z")

</div>

you seem to have two problems:

In the screenshots you share you always have “Unknown field: …”. There’s a simple explanation for those messages: Some code in the screenshots you shared does not have the syntax that’s needed in 2.1.37 so that you will get “Unknown field: …” on the right side in the preview for those:

In the screenshot in the message [Additional Card Fields [Official thread] - #6 by gnomek](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/6) there are two errors in your template: It must be {{info-TodayLearning?:}} and {{info-Learning?:}}.

In the first screenshot of your second message at [Additional Card Fields [Official thread] - #8 by gnomek](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/8) you have 10 lines with info fields and the lines 1,2,3,8 do not match the documentation for 2.1.37.

If what I have written on [Additional Card Fields (Fork for 2.1) - AnkiWeb](https://ankiweb.net/shared/info/744725736) is not clear I’m open for suggestions.

&nbsp;  
&nbsp;  
&nbsp;

If you are wondering about the difference between these two fields:

```
- {{info-Learning?:}} - is this card being learned?
- {{info-TodayLearning?:}} - shown if card in learning and in queue 1

```

check the database description: Learning should be the sum of “TodayLearning” and “DayLearning”. TodayLearning should be cards in learning that will be shown again today. This is relevant e.g. for people who besides the default learning steps of “1 10” also use e.g. “1440”.

---

<div class="post-metadata">

**Author:** ![gnomek](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gnomek](https://forums.ankiweb.net/u/gnomek)\
**Post date:** [March 19, 2021, 6:51pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/12 "2021-03-19T18:51:03Z")

</div>

How stupid I was. I am really sorry for taking your time. I now discovered that it actually works and it display proper information in review mode but not in card template preview. I don’t know why I assumed it will show something in preview.

And thank you for explaining the difference between `info-Learning’ and ‘info-TodayLearning’. That is relevant to me.

---

<div class="post-metadata">

**Author:** ![gnomek](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gnomek](https://forums.ankiweb.net/u/gnomek)\
**Post date:** [June 19, 2021, 10:47am UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/13 "2021-06-19T10:47:59Z")

</div>

Both:

```auto
{{info-Learning?:}}
{{info-TodayLearning?:}} 

```

are displayed as `"Learning"` in review mode. Is there any way to make the value displayed in other way, for example as a translation to my native language or other word, for example `{{info-TodayLearning?:}} ` as `"New"`.

Of course, without changing to what it actually refers as Anki value.

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [June 20, 2021, 12:09am UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/14 "2021-06-20T00:09:53Z")

</div>

@gnomek: At the moment I’m very busy so I don’t have time to look into new features.

You could try this: I think the code on github is pretty recent but I might have forgotten to upload the latest changes. so your add-on code will be pretty similar. Check in your addons21 folder this file and position [anki21\_\_reviewer\_additional\_card\_fields/new\_additional\_card\_fields.py at 349dfbf6f2fe8ec00adff17cf7a3307db1052305 · ijgnd/anki21\_\_reviewer\_additional\_card\_fields · GitHub](https://github.com/ijgnd/anki21__reviewer_additional_card_fields/blob/349dfbf6f2fe8ec00adff17cf7a3307db1052305/src/new_additional_card_fields.py#L229) Then you could try tochange the quoted “Learning” and restart anki.

make sure to have backups and know how to restore them etc. do this at your own risk etc.

---

<div class="post-metadata">

**Author:** ![ddr3](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@ddr3](https://forums.ankiweb.net/u/ddr3)\
**Post date:** [September 15, 2021, 11:57pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/15 "2021-09-15T23:57:20Z")

</div>

Great work!

Is it possible to add an option to display if card is in re-learning mode, similar to {{info-Learning?:}} and {{info-New?:}}, but instead {{info-ReLearning?:}}

Thanks!

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [September 18, 2021, 2:17pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/16 "2021-09-18T14:17:56Z")

</div>

you could add a line below ` addInfo["New?"] = "New" if card.type == 0 else ""` in the source code of the add-on in the file new\_additional\_card\_fields.py or old\_additional\_card\_fields.py (depending on your version of anki) so that it looks like this:

```
addInfo["New?"] = "New" if card.type == 0 else ""
addInfo["ReLearning?"] = "ReLearning" if card.type == 3 else ""

```

I might be wrong about the card type but I think that type = 3 means relearning, see [anki/consts.py at 0b9fbd9050c6989a666529eb7696b4fe4ec69de9 · ankitects/anki · GitHub](https://github.com/ankitects/anki/blob/0b9fbd9050c6989a666529eb7696b4fe4ec69de9/pylib/anki/consts.py#L34)

I haven’t tested this …

when I make a new release I’ll try to remember to include this. i have no timeline for this.

---

<div class="post-metadata">

**Author:** ![ccj](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@ccj](https://forums.ankiweb.net/u/ccj)\
**Post date:** [November 2, 2021, 9:10am UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/17 "2021-11-02T09:10:57Z")

</div>

Is Additional Card Field working with Anki 2.1.49 I’ve loaded it several times but when I use {{info-Ease:}} and {{info-Factor:}} I keep getting 0 rather than 250 same with other parameters. Any ideas?

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [November 2, 2021, 6:44pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/18 "2021-11-02T18:44:57Z")

</div>

@ccj: new cards and cards that are in learning the first time have a factor of 0. Maybe it’s this. I’d need more info about the affected cards.

---

<div class="post-metadata">

**Author:** ![ccj](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@ccj](https://forums.ankiweb.net/u/ccj)\
**Post date:** [November 2, 2021, 7:45pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/19 "2021-11-02T19:45:49Z")

</div>

Thanks for getting back so quickly. I’ve been using Anki for a couple of years but this is the first time I thought an addon would help so bear with me.

I attach five screenshots to show the situation. The first two show the single addon and the file directory in case that helps. The next shows the start of my 4000+ kanji card deck and the Ease and Review values according to the browser can be seen.

The final two show the html line for the back of the first card (Id = 1) where I have added Ease and Reviews print statements and the values on the back of the card these changes produce.

Does this help

 ![image0.jpeg](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/a7c48f3c315938fb68ca85b99c340cbb1328b75d.jpeg) ![]() ![]() ![]() ![image4.jpeg](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/fb012f66671ed0924ea05830b4c86707d832c0cd.jpeg)

Thanks for any help you can give.

---

<div class="post-metadata">

**Author:** ![ccj](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@ccj](https://forums.ankiweb.net/u/ccj)\
**Post date:** [November 2, 2021, 7:49pm UTC](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541/20 "2021-11-02T19:49:43Z")

</div>

Missing image don’t know why they didn’t go first time.

![]() ![]() ![]()

[Next page](https://forums.ankiweb.net/t/additional-card-fields-official-thread/541.md?page=2)
