From 5018b2ef086f5a14b0e01def86e82236d12b17e0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 4 Oct 2024 16:18:59 +1000 Subject: [PATCH] Revert "Add error pages (#280)" (#284) This reverts commit aed79fe16eca040ba0181dc51536fa54a8442f81. --- src/SUMMARY.md | 5 +- src/templates/{errors => }/errors.md | 0 src/templates/errors/cloze-deletions.md | 38 ------------ src/templates/errors/empty-cards.md | 14 ----- src/templates/errors/field-replacements.md | 69 ---------------------- 5 files changed, 1 insertion(+), 125 deletions(-) rename src/templates/{errors => }/errors.md (100%) delete mode 100644 src/templates/errors/cloze-deletions.md delete mode 100644 src/templates/errors/empty-cards.md delete mode 100644 src/templates/errors/field-replacements.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 306822f4..36d6a477 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -32,10 +32,7 @@ - [Field Replacements](templates/fields.md) - [Card Generation](templates/generation.md) - [Styling & HTML](templates/styling.md) - - [Checks and Errors](templates/errors/errors.md) - - [Field Replacement Errors](templates/errors/field-replacements.md) - - [Cloze Errors](templates/errors/cloze-deletions.md) - - [Empty Cards](templates/errors/empty-cards.md) + - [Checks and Errors](templates/errors.md) - [Preferences](preferences.md) - [Deck Options](deck-options.md) - [Syncing with AnkiWeb](syncing.md) diff --git a/src/templates/errors/errors.md b/src/templates/errors.md similarity index 100% rename from src/templates/errors/errors.md rename to src/templates/errors.md diff --git a/src/templates/errors/cloze-deletions.md b/src/templates/errors/cloze-deletions.md deleted file mode 100644 index 8955243f..00000000 --- a/src/templates/errors/cloze-deletions.md +++ /dev/null @@ -1,38 +0,0 @@ -# No cloze found on card - -

Single empty cards

- -When making clozes, each cloze number is turned into a separate card. For example, the following will create three cards: - -``` -{{c1::This}} is a {{c2::sample}} {{c3::sentence}}. -``` - -If you you later edit the text, and either remove or change a cloze number, the previously created card may become blank. For example: - -``` -{{c1::This}} is a {{c2::sample}} -``` - -and - -``` -{{c1::This}} is a {{c2::sample}} {{c1::sentence}}. -``` - -are both changes that would make card 3 blank. When you view card 3, you'll see a message indicating that the card is blank, and can be cleaned up with the Empty Cards function. You can access that function via the Tools menu of the computer version's main window, and use it to remove blank cards. Please check the reported empty cards first, and if in doubt, create a backup with the File>Export menu item before proceeding. - -

All cloze cards empty

- -If you accidentally modify your card template, it may prevent any cloze deletions from appearing. If that has happened, please edit one such problem card, and note down the name of the first field - it is usually called "Text". Then, please: - -- Click on the Cards... button -- Replace the front text with - - ``` - {{cloze:Text}} - ``` - -- Replace the back text with the same. - -If your field was called something other than Text, replace Text with the name of the field. diff --git a/src/templates/errors/empty-cards.md b/src/templates/errors/empty-cards.md deleted file mode 100644 index e514e3dd..00000000 --- a/src/templates/errors/empty-cards.md +++ /dev/null @@ -1,14 +0,0 @@ -# Front of Card is Blank - -Anki displays cards by combining the fields you've entered with a -template that says which fields should appear on the front and back of your cards. If you receive a -message that a card has a blank front, it means either none of the fields included on your front tmplate have any text in them, or you have fields that have text, -but none are included on the front template. -You can fix this problem by editing the card on the computer version, clicking on **Cards...**, -and checking to make sure at least one field with some text on it is included on the front template. -You can add extra fields with the Add Field button. - -If you are using the Cloze note type, -please make sure you've included one or more cloze deletions in the Text field, e.g. {{c1::some cloze-deleted text}}. - -If you're using the type-in-the-answer functionality, please make sure you've included another field on the front side as well. diff --git a/src/templates/errors/field-replacements.md b/src/templates/errors/field-replacements.md deleted file mode 100644 index 5a4bfbd8..00000000 --- a/src/templates/errors/field-replacements.md +++ /dev/null @@ -1,69 +0,0 @@ -# Field Replacement Errors - -You can correct mistakes on the template by opening the card templates screen: - -- On the computer version, edit a problem card, and then click on the Cards... button -- On AnkiMobile, while viewing a problem card in the review screen, tap the cog/gear, then Card Template. - -When you correct a mistake, it will update all cards of that type - you do not need to make the same change for every card that uses the template. - -What needs changing will depend on the message you are getting. - -**Found '{{Field}}', but there is no field called 'Field'** - -This indicates your template includes the name of a field that doesn't exist. To fix the problem, locate the -{{Field}} inside the card template, and remove it. - -**Missing }} in {{Field** - -This message is shown when {{ is found in the template without a matching }}. For example, if you have - -``` -{{Field -``` - -then this needs to be changed to - -``` -{{Field}} -``` - -**Missing {{/Field}}** - -This means Anki found `{{#Field}}` or `{{^Field}}` in your card template, without a matching `{{/Field}}`. Removing `{{#Field}}` or `{{^Field}}` from the template will fix the error. - -**Found {{/One}}, but expected {{/Two}}** - -Conditional replacements need to be closed in the same order they are opened. For example, the following template is incorrect: - -``` -{{#One}} - {{#Two}} - {{Three}} - {{/One}} -{{/Two}} -``` - -To fix the problem, the template should be changed like so: - -``` -{{#One}} - {{#Two}} - {{Three}} - {{/Two}} -{{/One}} -``` -**Found {{/Field}}, but missing '{{#Field}}' or '{{^Field}}'** - -Closing tags must be matched by opening tags. For example, the following is invalid, because there is no `{{#Two}}` or `{{^Two}}` at the start: - -``` - {{Field}} -{{/Two}} -``` - -It can be fixed by removing the closing tag: - -``` -{{Field}} -```