yomichan/tmpl/fields.html

49 lines
1.1 KiB
HTML
Raw Normal View History

2017-01-22 03:30:01 +00:00
{{#*inline "audio"}}{{/inline}}
{{#*inline "character"}}
2017-01-23 03:22:53 +00:00
{{definition.character}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{#*inline "dictionary"}}
2017-01-23 03:22:53 +00:00
{{definition.dictionary}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{#*inline "expression"}}
2017-01-23 03:22:53 +00:00
{{#if modeTermKana}}{{#if definition.reading}}{{definition.reading}}{{else}}{{definition.expression}}{{/if}}{{/if}}
{{#if modeTermKanji}}{{definition.expression}}{{/if}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{#*inline "furigana"}}
2017-01-23 03:49:07 +00:00
{{#if definition.reading}}<ruby>{{definition.expression}}<rt>{{definition.reading}}</rt></ruby>{{else}}{{definition.reading}}{{/if}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{#*inline "glossary"}}
glossary
{{/inline}}
{{#*inline "kunyomi"}}
2017-01-23 03:22:53 +00:00
{{definition.kunyomi}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{#*inline "onyomi"}}
2017-01-23 03:22:53 +00:00
{{definition.onyomi}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{#*inline "reading"}}
2017-01-23 03:22:53 +00:00
{{definition.reading}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{#*inline "sentence"}}
2017-01-23 03:22:53 +00:00
{{definition.sentence}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{#*inline "tags"}}
2017-01-23 03:22:53 +00:00
{{#each definition.tags}}{{name}}{{#unless @last}}, {{/unless}}{{/each}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{#*inline "url"}}
2017-01-23 03:22:53 +00:00
{{#if html}}<a href="{{definition.url}}">{{definition.url}}</a>{{else}}{{definition.url}}{{/if}}
2017-01-22 03:30:01 +00:00
{{/inline}}
{{> (lookup . 'marker') }}