85 lines
2.6 KiB
HTML
85 lines
2.6 KiB
HTML
{{#*inline "glossary-single"}}
|
|
{{~#if html~}}
|
|
{{~#if tags~}}
|
|
<div>({{#each tags}}{{name}}{{#unless @last}}, {{/unless}}{{/each}})</div>
|
|
{{~/if~}}
|
|
{{~#if glossary.[1]~}}
|
|
<ul>{{#each glossary}}<li>>{{#multiLine}}{{.}}{{/multiLine}}></li>{{/each}}</ul>
|
|
{{~else~}}
|
|
<div>{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div>
|
|
{{~/if~}}
|
|
{{~else~}}
|
|
{{~#if tags~}}
|
|
({{#each tags}}{{name}}{{#unless @last}}, {{/unless}}{{/each}})
|
|
{{~/if~}}
|
|
{{~#if glossary.[1]~}}
|
|
{{#each glossary}}{{.}}{{#unless @last}}, {{/unless}}{{/each}}
|
|
{{~else~}}
|
|
{{glossary.[0]}}
|
|
{{~/if~}}
|
|
{{~/if~}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "audio"}}{{/inline}}
|
|
|
|
{{#*inline "character"}}
|
|
{{definition.character}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "dictionary"}}
|
|
{{definition.dictionary}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "expression"}}
|
|
{{#if modeTermKana}}{{#if definition.reading}}{{definition.reading}}{{else}}{{definition.expression}}{{/if}}{{else}}{{definition.expression}}{{/if}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "furigana"}}
|
|
{{~#if html~}}
|
|
{{~#if definition.reading}}<ruby>{{definition.expression}}<rt>{{definition.reading}}</rt></ruby>{{else}}{{definition.expression}}{{/if~}}
|
|
{{~else~}}
|
|
{{~#if definition.reading}}{{definition.expression}} [{{definition.reading}}]{{else}}{{definition.expression}}{{/if~}}
|
|
{{~/if~}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "glossary"}}
|
|
{{~#if html}}<div style="text-align: left;">{{/if~}}
|
|
{{~#if group~}}
|
|
{{~#if definition.definitions.[1]~}}
|
|
{{~#if html}}<ol>{{#each definition.definitions}}<li>{{> glossary-single}}</li>{{/each}}</ol>
|
|
{{~else}}{{#each definition.definitions}}* {{> glossary-single}}{{/each}}{{/if~}}
|
|
{{~else~}}
|
|
{{> glossary-single definition.definitions.[0]}}
|
|
{{~/if~}}
|
|
{{~else~}}
|
|
{{> glossary-single definition}}
|
|
{{~/if~}}
|
|
{{~#if html}}</div>{{/if~}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "kunyomi"}}
|
|
{{#each definition.kunyomi}}{{.}}{{#unless @last}}, {{/unless}}{{/each}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "onyomi"}}
|
|
{{#each definition.onyomi}}{{.}}{{#unless @last}}, {{/unless}}{{/each}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "reading"}}
|
|
{{#unless modeTermKana}}{{definition.reading}}{{/unless}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "sentence"}}
|
|
{{definition.sentence}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "tags"}}
|
|
{{#each definition.tags}}{{name}}{{#unless @last}}, {{/unless}}{{/each}}
|
|
{{/inline}}
|
|
|
|
{{#*inline "url"}}
|
|
{{#if html}}<a href="{{definition.url}}">{{definition.url}}</a>{{else}}{{definition.url}}{{/if}}
|
|
{{/inline}}
|
|
|
|
{{~> (lookup . "marker") ~}}
|