aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/data/anki-field-templates-upgrade-v8.handlebars
blob: a505636487d2bb8c58a1d4bffe70c73b2101b5cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{#*inline "stroke-count"}}
    {{~#scope~}}
        {{~#set "found" false}}{{/set~}}
        {{~#each definition.stats.misc~}}
            {{~#if (op "===" name "strokes")~}}
                {{~#set "found" true}}{{/set~}}
                Stroke count: {{value}}
            {{~/if~}}
        {{~/each~}}
        {{~#if (op "!" (get "found"))~}}
            Stroke count: Unknown
        {{~/if~}}
    {{~/scope~}}
{{/inline}}