{{<<<<<<<}} {{~#*inline "glossary"~}}
{{~#scope~}} {{~#if (op "===" definition.type "term")~}} {{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}} {{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}} {{~/unless~}} {{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}} {{~#if (op ">" definition.definitions.length 1)~}}
    {{~#each definition.definitions~}} {{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
  1. {{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
  2. {{~/unless~}} {{~/each~}}
{{~else~}} {{~#each definition.definitions~}} {{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}} {{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}} {{~/unless~}} {{~/each~}} {{~/if~}} {{~else if (op "===" definition.type "kanji")~}} {{~#if (op ">" definition.glossary.length 1)~}}
    {{#each definition.glossary}}
  1. {{.}}
  2. {{/each}}
{{~else~}} {{~#each definition.glossary~}}{{.}}{{~/each~}} {{~/if~}} {{~/if~}} {{~/scope~}}
{{~/inline~}} {{=======}} {{~#*inline "glossary"~}}
{{~#scope~}} {{~#if (op "===" definition.type "term")~}} {{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}} {{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}} {{~#if definition.glossaryScopedStyles~}} {{~/if~}} {{~/unless~}} {{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}} {{~#if (op ">" definition.definitions.length 1)~}}
    {{~#each definition.definitions~}} {{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
  1. {{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
  2. {{~#if dictScopedStyles~}} {{~/if~}} {{~/unless~}} {{~/each~}}
{{~else~}} {{~#each definition.definitions~}} {{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}} {{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}} {{~#if glossaryScopedStyles~}} {{~/if~}} {{~/unless~}} {{~/each~}} {{~/if~}} {{~else if (op "===" definition.type "kanji")~}} {{~#if (op ">" definition.glossary.length 1)~}}
    {{#each definition.glossary}}
  1. {{.}}
  2. {{/each}}
{{~else~}} {{~#each definition.glossary~}}{{.}}{{~/each~}} {{~/if~}} {{~/if~}} {{~/scope~}}
{{~/inline~}} {{>>>>>>>}} {{<<<<<<<}} {{~#*inline "glossary-first"~}}
{{~#scope~}} {{~#if (op "===" definition.type "term")~}} {{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}} {{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}} {{~#if (op ">" definition.definitions.length 1)~}} {{~#with definition.definitions.[0]~}}{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}{{~/with~}} {{~else~}} {{~#with definition.definitions.[0]~}}{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}{{~/with~}} {{~/if~}} {{~/if~}} {{~/scope~}}
{{~/inline~}} {{=======}} {{~#*inline "glossary-first"~}}
{{~#scope~}} {{~#if (op "===" definition.type "term")~}} {{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}} {{~#if definition.glossaryScopedStyles~}} {{~/if~}} {{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}} {{~#if (op ">" definition.definitions.length 1)~}} {{~#with definition.definitions.[0]~}} {{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}} {{~#if glossaryScopedStyles~}} {{~/if~}} {{~/with~}} {{~else~}} {{~#with definition.definitions.[0]~}} {{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}} {{~#if glossaryScopedStyles~}} {{~/if~}} {{~/with~}} {{~/if~}} {{~/if~}} {{~/scope~}}
{{~/inline~}} {{>>>>>>>}}