Anki as a knowledge base (with a "massive cloze note")

You need to show us your code. Below is the code I have for my deck “LA Latin Pronouns w Cloze”, which I have shared. It provides similar tables for various types of pronouns.

The code below creates two tables (one singular, one plural) for the demonstrative “this” in Latin (hic). There are 30 cloze items.

Place this code in your field and see what happens on the card. It will show you what to do.

<p>What form of <b>this</b> (Demonstrative) should replace the elipsis in the table below?</p> <table border=“1”> <thead> <tr> <th>Case / Gender</th> <th>m. sing.</th> <th>f. sing.</th> <th>n. sing.</th> </tr> </thead> <tbody> <tr> <th>nom.</th> <td>{{c1::hic}}</td> <td>{{c2::haec}}</td> <td>{{c3::hoc}}</td> </tr> <tr> <th>gen.</th> <td>{{c11::huius}}</td> <td>{{c12::huius}}</td> <td>{{c13::huius}}</td> </tr> <tr> <th>dat.</th> <td>{{c21::huic}}</td> <td>{{c22::huic}}</td> <td>{{c23::huic}}</td> </tr> <tr> <th>acc.</th> <td>{{c31::hunc}}</td> <td>{{c32::hanc}}</td> <td>{{c33::hoc}}</td> </tr> <tr> <th>abl.</th> <td>{{c41::hōc}}</td> <td>{{c42::hāc}}</td> <td>{{c43::hōc}}</td> </tr> </tbody> </table> <div> <br> </div> <table border=“1”> <thead> <tr> <th>Case / Gender</th> <th>m. pl.</th> <th>f. pl.</th> <th>n. pl.</th> </tr> </thead> <tbody> <tr> <th>nom.</th> <td>{{c5::hī}}</td> <td>{{c6::hae}}</td> <td>{{c7::haec}}</td> </tr> <tr> <th>gen.</th> <td>{{c15::hōrum}}</td> <td>{{c16::hārum}}</td> <td>{{c17::hōrum}}</td> </tr> <tr> <th>dat.</th> <td>{{c25::hīs}}</td> <td>{{c26::hīs}}</td> <td>{{c27::hīs}}</td> </tr> <tr> <th>acc.</th> <td>{{c35::hōs}}</td> <td>{{c36::hās}}</td> <td>{{c37::haec}}</td> </tr> <tr> <th>abl.</th> <td>{{c45::hīs}}</td> <td>{{c46::hīs}}</td> <td>{{c47::hīs}}</td> </tr> </tbody> </table>


Which appears like this on the card.

What form of this (Demonstrative) should replace the elipsis in the table below?

Case / Gender m. sing. f. sing. n. sing.
nom. {{c1::hic}} {{c2::haec}} {{c3::hoc}}
gen. {{c11::huius}} {{c12::huius}} {{c13::huius}}
dat. {{c21::huic}} {{c22::huic}} {{c23::huic}}
acc. {{c31::hunc}} {{c32::hanc}} {{c33::hoc}}
abl. {{c41::hōc}} {{c42::hāc}} {{c43::hōc}}

Case / Gender m. pl. f. pl. n. pl.
nom. {{c5::hī}} {{c6::hae}} {{c7::haec}}
gen. {{c15::hōrum}} {{c16::hārum}} {{c17::hōrum}}
dat. {{c25::hīs}} {{c26::hīs}} {{c27::hīs}}
acc. {{c35::hōs}} {{c36::hās}} {{c37::haec}}
abl. {{c45::hīs}} {{c46::hīs}} {{c47::hīs}}
1 Like
<table style="border-collapse: collapse; width: 99.7481%; height: 69px;" border="1">
<tbody>
<tr style="height: 23px;">
<td style="width: 32.8283%; height: 23px;">topic&nbsp;</td>
<td style="width: 32.9545%; height: 23px;">animal&nbsp;</td>
<td style="width: 32.9545%; height: 23px;">plant</td>
</tr>
<tr style="height: 23px;">
<td style="width: 32.8283%; height: 23px;">cell wall</td>
<td style="width: 32.9545%; height: 23px;">{{c1::no&nbsp;}}</td>
<td style="width: 32.9545%; height: 23px;">{{c3::yes}}</td>
</tr>
<tr style="height: 23px;">
<td style="width: 32.8283%; height: 23px;">mobility</td>
<td style="width: 32.9545%; height: 23px;">{{c2::yes&nbsp;}}</td>
<td style="width: 32.9545%; height: 23px;">{{c4::no}}</td>
</tr>
</tbody>
</table><br><br>

I think your <table> markup doesn’t work, because I initially assumed that every table would have a <thead>.

Change the header cells to <th>, wrap them in a <thead> and remove all that inline styling (because it’s unnecessary):

<table>
   <thead>
      <tr>
         <th>topic</th>
         <th>animal</th>
         <th>plant</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <td>cell wall</td>
         <td>{{c1::no}}</td>
         <td>{{c3::yes}}</td>
      </tr>
      <tr>
         <td>mobility</td>
         <td>{{c2::yes}}</td>
         <td>{{c4::no}}</td>
      </tr>
   </tbody>
</table>

Output

image

You can tweak the table CSS (border etc.) in the Styling section.

Thanks for your reply.
In this case, this will do. But in larger tables, it will be difficult to change the code to the above-mentioned format.

How to make the entries as like in table above without depending on the HTML coding part ?

bug

#using massive close card type, ubuntu 20.04, Anki 2.1.46
The numbered list informations are not shown in the back side of the card (its shown as blank,). This happens if we use the inbuilt editor. The information will be shown if we make numbered system through addon "extended editor for field for tables search replace"

I hope i was able to convey the error…

I’m testing here and found this problem:

In the Text field, I included an image before the list start. I want that it shows only on the answer side. It looks like this in the editor:
image

The code looks like this

<img src="paste-169ae8fef631866be45e4817b83b8d9b60628343.jpg"><br><ol><li>a{{c2::aa}}aa</li><li>bb{{c1::bb}}bb</li><li>cccccccccc</li></ol><br>

This works fine on Anki Desktop. But, on AnkiDroid, the image also appears on the question side.

This is relevant to me, because I usually use an image as the reference for multiple questions. Your note type would allow me to concentrate all the questions on a single note, so I can easily know what are all the questions made around that image.

Can you take a look, please?

Hello,

How can I edit the code so that I can make the selectable text box larger? I am trying to make the Massive Cloze note card work with Edit Field During Review Cloze, but the current implementation does not allow me to edit past this blue text box. I have attached a screenshot of this blue text box that I would like to resize. Is there a way to make this text box as large as the number of lines on the card? Thanks in advance!!

hi,
The autoscroll function ( backside) in ankidroid in massive cloze card type is not functioning.
Please tell how to rectify this.

Android version- 10.

Hi, @kleinerpirat ,
How to make the auto-scroll function work properly in the ankidroid? ( android 10)
Now when the backside of the card is shown the top portion of card is visible and not the particular cloze.

AnkiDroid builds its web page a bit differently than the other platforms (every client has its own quirks), and it seems like the document isn’t ready when the initial auto scroll is called. I don’t know why this has only become a problem as of late.

I fixed the issue by adding a 100ms delay for the initial scroll on the backside. This is not ideal and I would rather have a specific event of the build sequence which I can await (to make it 100% reliable on any device) - but I haven’t found it yet.

If it doesn’t work on your end, look for the following line in the template and change the 100 to a higher value:

var delay = {{%IsFront}}false && globalThis.AnkiDroidJS ? 100 : 0
* {{%IsFront}}false is only shown in Asset Manager - with the native editor it will either be !false (=true) or false

But I think it should be good.
Here’s the link to the download page again:

[Forum] - Massive Cloze Demo Deck | Revised Edition - AnkiWeb


Sorry for the long delay - I was a bit busy IRL lately.

1 Like

Use https://tablesgenerator.com/html_tables to create your tables.
In the settings below, make sure the setting for “first row is header” is on, and turn off the checkbox for “generate css”.
Then click generate, then paste the code in the anki add window’s html editor.

1 Like

massive cloze is not working properly.
The front side of the card is showing the other inactive close also.

below is the html code

<ol>
<li>Introduction{{c1::&nbsp;
<ol>
<li>kants categorical imperative is an idea of deontological school of thoughts.</li>
<li>It gives importance to duties irrespective of consequences&nbsp; }}</li>
</ol>
</li>
<li>What does kant says about categorical imperative?{{c6::Kant says that we should always respect the humanity in others and only act in accordance with the rules that could hold for everyone. Kant believed that we have a clear moral responsibility to be truthful&nbsp; }}</li>
<li>How does kant determine what is categorical imperative?{{c5::
<ol>
<li>idea of universability- you should act in a way whereby you would want everyone else in the world to act in the same way&nbsp; and refrain from such acts which you dont want everyone else to do-- you lie,,, everyone lie-- not acceptable--&nbsp;corruption - functionalist support corruption as it overcome the red tapism.. but it cannot be universal</li>
<li>&nbsp;treat humanity as an end in itself and never be used as a mean}}</li>
</ol>
</li>
<li>What are the two types of lie?{{c2:: deviant lie and normal lie}}</li>
<li>What are&nbsp; deviant lies?{{c3:: ones are condemned by society because they undermine the trust that enables societies to function, such as lying on the witness stand}}</li>
<li>What are normal lies?{{c4::Normal lies, though, are ones that we accept because of their productive social outcomes.-- when someone asks how are you, we answer as fine, even though we had a terrible day}}</li>
</ol>

To add numbered points I am using the addon -extended editor for field for tables searchreplace

When normal numbered bullets are used from the inbuilt edit option, the close will not detect it.

Is this problem correctable???

Thanks in advance :slightly_smiling_face:

To say that, one would need to have a documentation that states how it should work - but there is none :wink:

The problem are the nested <ol>'s. This is not something I had anticipated when I created the note type - but probably should have.

Before I fix this with the next update, you can fix it yourself by just not nesting ordered lists and using <ul> for these nested items instead:

Fixed HTML
<ol>
   <li>
      Introduction{{c1::&nbsp;
      <ul>
         <li>kants categorical imperative is an idea of deontological school of thoughts.</li>
         <li>It gives importance to duties irrespective of consequences&nbsp; }}</li>
      </ul>
   </li>
   <li>What does kant says about categorical imperative?{{c6::Kant says that we should always respect the humanity in others and only act in accordance with the rules that could hold for everyone. Kant believed that we have a clear moral responsibility to be truthful&nbsp; }}</li>
   <li>
      How does kant determine what is categorical imperative?{{c5::
      <ul>
         <li>idea of universability- you should act in a way whereby you would want everyone else in the world to act in the same way&nbsp; and refrain from such acts which you dont want everyone else to do-- you lie,,, everyone lie-- not acceptable--&nbsp;corruption - functionalist support corruption as it overcome the red tapism.. but it cannot be universal</li>
         <li>&nbsp;treat humanity as an end in itself and never be used as a mean}}</li>
      </ul>
   </li>
   <li>What are the two types of lie?{{c2:: deviant lie and normal lie}}</li>
   <li>What are&nbsp; deviant lies?{{c3:: ones are condemned by society because they undermine the trust that enables societies to function, such as lying on the witness stand}}</li>
   <li>What are normal lies?{{c4::Normal lies, though, are ones that we accept because of their productive social outcomes.-- when someone asks how are you, we answer as fine, even though we had a terrible day}}</li>
</ol>

Thanks man…

How do you guys deal with all the clozes being visible (exept the one you are answering?) Surely this interferes with memorisation, as you rely on short term memory to answer the next cloze down the line.

What do you think of an optional way to hide all clozes on the card, similar to the addon cloze hide all?

In this note type, items (i.e. list items, paragraphs or table rows) that don’t belong to the current card are hidden on the front side:

On the back side, they’re blurred out, but you can choose to reveal them.

1 Like

@kleinerpirat Hello, I’m new to using Anki and its settings. So from reading this post, what I understand is that I need to create an ordered list first out of every note I make for things to work? How is that I can’t see any list in the David Whyte poem in the demo deck?

Double breaks (i.e. <br><br>) also work as an item delimiter.

@kleinerpirat , hi
will this addon work perfectly in ankimobile?
or does it have any compatibility issues like this addon not working properly in android 9 or below ?

background: I am plannign to buy an iphone, i am preparing all my notes in massive close note type only these days. So I just wanted to know whether I should give 25$ for ankimobile or keep the old android phone for study purpose

One request : - please make numbered list available within the cloze. As of now only bullet list works perfect and not numbered list

thanks for your incredible work.

None of my stuff works perfectly, but I remember it was compatible at the time I shared it here. Regardless, buying AnkiMobile is always a good idea - it’s the best way to say thank you to Damien for providing AnkiWeb to all of us for free.

I’ll be able to fix any potential issue next week or so.

Should be doable :+1:t2:

1 Like