Show IO mask number during review

Good morning,

Using IO on a note, each card is bound to a number, its mask number. Not to confuse with the card ID.


Now, is it possible to extract that mask number on the fly during a review and display it ? Maybe using some HTML/coding magic ?

Have a nice day :slight_smile:

There is currently no way to get the number directly, so you’ll have to use conditional replacements:

{{#c1}}1{{/#c2}}{{#c2}}2{{/c2}}{{#c3}}3{{/c3}}

Just add enough of them to cover your needs.

2 Likes

Thank you!
It works…until I decide to tinker with the masks using IO as it deletes any manual edit :confused:
Still better than nothing, I will keep that in mind :+1:

No problem. I’m not sure what you mean. The template should not change when you edit the masks.

1 Like

Found à workaround to target a specific card number.
1. During review : add a flag to the card, one that you’re not used to (went for green)
2. See image 1
3. See image 1


4. See image 2
4B. Click on card to open the editor (not the IO one, the regular one with the writable fields).

5. See image 3

6. See image 4
7. See image 4

8 through 14. : See image 5. Also ignore the colored masks, I was just experimenting with the #fill modifier.

Yesterday, I was about to send you this screenshot for further details but then I read your 2nd answer mentioning « template ».


Turns out I’m not that well versed with coding. Where would you insert those tags in the note template ? I run into the « this field does not exist » error when pasting {{#c60}}60{{/c60}} Fixed! I had {{#c 60}}60{{/c 60}} pasted into the note template instead of {{#c60}}60{{/c60}}, the whitespaces came from an Excel table as I had those autofilled. Thank you, it now makes sense. :slight_smile:

Also, this makes my previous solution irrelevant until step 4 included.

Finally, notice this typo, you may want to correct it if somebody else shares this issue and stumbles upon this post, who knows!

into {{#c1}}1{{/c1}} {{#c2}}2{{/c2} {{#c3}}3{{/c3}}.

Example :

As far as I know, Anki doesn’t expose the Image Occlusion mask number as a built-in field during review. The mask index is generated internally, so it isn’t directly accessible through standard template variables.

If you’re comfortable with template editing, you could experiment with custom fields or JavaScript in the card template, but most users handle identification by adding

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.