anki icon indicating copy to clipboard operation
anki copied to clipboard

Be strict about the optional fields?

Open badlydrawnrob opened this issue 1 year ago • 0 comments

Unless Anki complains, it's safe to leave as-is?

Currently I've got a few of the fields as optional (in the card fields with the use of icons; in the HTML code with moustache conditional tags) — yet I'm advising a simple card with just a title and a note, which sort of breaks those rules.

  1. Do I need to conditionally load every moustache tag (except title)?
  2. As Anki doesn't require conditional tags, is it ok to not do this?

Anki has conditional fields which are (almost) identical to Moustache — there should be no space between # or ^ and the fieldname.

badlydrawnrob avatar Jan 15 '24 19:01 badlydrawnrob