diff options
Diffstat (limited to 'ext/data/templates/anki-field-templates-upgrade-v6.handlebars')
-rw-r--r-- | ext/data/templates/anki-field-templates-upgrade-v6.handlebars | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/data/templates/anki-field-templates-upgrade-v6.handlebars b/ext/data/templates/anki-field-templates-upgrade-v6.handlebars new file mode 100644 index 00000000..809423ce --- /dev/null +++ b/ext/data/templates/anki-field-templates-upgrade-v6.handlebars @@ -0,0 +1,25 @@ +{{#*inline "conjugation"}} + {{~#if definition.reasons~}} + {{~#each definition.reasons~}} + {{~#if (op ">" @index 0)}} « {{/if~}} + {{.}} + {{~/each~}} + {{~/if~}} +{{/inline}} + +{{#*inline "frequencies"}} + {{~#if (op ">" definition.frequencies.length 0)~}} + <ul style="text-align: left;"> + {{~#each definition.frequencies~}} + <li> + {{~#if (op "!==" ../definition.type "kanji")~}} + {{~#if (op "||" (op ">" ../uniqueExpressions.length 1) (op ">" ../uniqueReadings.length 1))~}}( + {{~#furigana expression reading~}}{{~/furigana~}} + ) {{/if~}} + {{~/if~}} + {{~dictionary}}: {{frequency~}} + </li> + {{~/each~}} + </ul> + {{~/if~}} +{{/inline}} |