Fix order of {screenshot} tag

This commit is contained in:
toasted-nutbread 2019-10-11 17:56:17 -04:00
parent 55b2c1d8f5
commit 2bfc7e3972
3 changed files with 7 additions and 6 deletions

View File

@ -162,10 +162,10 @@ Flashcard fields can be configured with the following steps:
`{furigana-plain}` | Term expressed as Kanji with Furigana displayed next to it in brackets (e.g. 日本語[にほんご]).
`{glossary}` | List of definitions for the term (output format depends on whether running in *grouped* mode).
`{reading}` | Kana reading for the term (empty for terms where the expression is the reading).
`{screenshot}` | Screenshot of the web page taken at the time the term was added.
`{sentence}` | Sentence, quote, or phrase in which the term appears in the source content.
`{tags}` | Grammar and usage tags providing information about the term (unavailable in *grouped* mode).
`{url}` | Address of the web page in which the term appeared in.
`{screenshot}` | Screenshot of the web page taken at the time the term was added.
#### Markers for Kanji Cards ####
@ -179,9 +179,9 @@ Flashcard fields can be configured with the following steps:
`{glossary}` | List of definitions for the Kanji.
`{kunyomi}` | Kunyomi (Japanese reading) for the Kanji expressed as Katakana.
`{onyomi}` | Onyomi (Chinese reading) for the Kanji expressed as Hiragana.
`{screenshot}` | Screenshot of the web page taken at the time the Kanji was added.
`{sentence}` | Sentence, quote, or phrase in which the character appears in the source content.
`{url}` | Address of the web page in which the Kanji appeared in.
`{screenshot}` | Screenshot of the web page taken at the time the Kanji was added.
When creating your model for Yomichan, *please make sure that you pick a unique field to be first*; fields that will
contain `{expression}` or `{character}` are ideal candidates for this. Anki does not require duplicate flashcards to be

View File

@ -342,10 +342,10 @@ async function dictFieldFormat(field, definition, mode, options) {
'kunyomi',
'onyomi',
'reading',
'screenshot',
'sentence',
'tags',
'url',
'screenshot'
'url'
];
for (const marker of markers) {

View File

@ -607,10 +607,10 @@ async function ankiFieldsPopulate(element, options) {
'glossary',
'glossary-brief',
'reading',
'screenshot',
'sentence',
'tags',
'url',
'screenshot'
'url'
],
'kanji': [
'character',
@ -618,6 +618,7 @@ async function ankiFieldsPopulate(element, options) {
'glossary',
'kunyomi',
'onyomi',
'screenshot',
'sentence',
'tags',
'url'