yomichan/tmpl/fields.html
2017-01-22 19:49:07 -08:00

49 lines
1.1 KiB
HTML

{{#*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}}{{/if}}
{{#if modeTermKanji}}{{definition.expression}}{{/if}}
{{/inline}}
{{#*inline "furigana"}}
{{#if definition.reading}}<ruby>{{definition.expression}}<rt>{{definition.reading}}</rt></ruby>{{else}}{{definition.reading}}{{/if}}
{{/inline}}
{{#*inline "glossary"}}
glossary
{{/inline}}
{{#*inline "kunyomi"}}
{{definition.kunyomi}}
{{/inline}}
{{#*inline "onyomi"}}
{{definition.onyomi}}
{{/inline}}
{{#*inline "reading"}}
{{definition.reading}}
{{/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') }}