Unable to Make Different Code for Different Cards

Sorry in advance for my poor explanation. I am a complete beginner to coding.

Basically what I was trying to do was create a deck and every card would have a table on the back of the card with each table having different information. The only way I could see getting that to work was to code it using a template I found in one of these forums.

The issue I found was that the code counted for every card rather than code being used for each card individually. This meant I had tables on every card but they all ended up having the same information since any edits I did in the code for the other cards ended up changing the code and the information for every card in the deck. I tried to create a new type of card but that just made multiple new redundant cards with wrong information, I tried to make new note types but that was really only limited to basic and basic+ and I couldn’t find anywhere how to create any new note types to fit the amount of cards I’m making for the deck.

There is probably some easy fix to this that I’m too stupid to understand since I’m not yet used to coding. Has anyone else had/solved this issue?

AnkiDroid Version = 2.24.0 (ebcf8e0e34921628b9b8a496c66ffd4adbb3705f)  

If the only thing you are trying to do is putting different tables on the back of different cards, you don’t need to make any new templates. The basic note type should suffice.

You only need to insert your tables inside field contents (which is what differentiates the notes between each other), not in their template (which is shared between all notes built from it).

You can reference the basic html syntax for tables here: <table> ... </table> is the tag for a table itself, <tr> ... </tr> creates a row inside it, and <td> ... </td> denotes individual cell inside a row. AnkiDroid by itself doesn’t provide tools for building tables, but you can make your own using the + button to automate insertion of the tags I described (or just type them manually, if it works for you).

Also, you can use the desktop app, where you can install add-ons for enhanced editing options. These two provide means for editing tables, for example:

Mobile platforms aren’t convenient for any kind of advanced editing in general. But if you make everything you need on the desktop, and then sync with the phone, your cards will be perfectly usable there too.