Строка 1548: |
Строка 1548: |
| |} | | |} |
| | | |
− | ===Context tags=== | + | ===Контекстные теги=== |
− | The <tt>AcceptedContextTags</tt> fields specify [[Modding:Context tags|context tags]] for required items. This consists of a string with the following format:
| + | Поля <tt>AcceptedContextTags</tt> определяют [[Модификации:Контекстные_тэги|контекстные теги]] для необходимых элементов. Он состоит из строки следующего формата: |
| | | |
| {| class="wikitable" | | {| class="wikitable" |
| |- | | |- |
− | ! syntax | + | ! Синтаксис |
− | ! effect | + | ! Эффект |
| |- | | |- |
| | <code>!</code> | | | <code>!</code> |
− | | When prefixed to a context tag, indicates that an item must ''not'' have that tag. | + | | При добавлении префикса к тегу контекста указывает, что элемент ''отрицается''. |
| |- | | |- |
| | <code>,</code> | | | <code>,</code> |
− | | Separates any number of required context tags. For example, <code>A, B, C</code> matches items that have ''all'' of those tags. | + | | Отделяет любое количество необходимых контекстных тегов. Например, <code>A, B, C</code> соответствует элементам, которые имеют ''все'' из этих тегов. |
| |- | | |- |
| | <code>/</code> | | | <code>/</code> |
− | | Separates any number of alternate context tags. For example, <code>A/B/C</code> matches items that have ''at least one'' of those tags. | + | | Разделяет любое количество альтернативных контекстных тегов. Например, <code>A/B/C</code> соответствует элементам, у которых есть ''хотя бы один'' из этих тегов. |
| |} | | |} |
| | | |
− | For example, <code>!forage_item, category_vegetable/category_fruit, quality_gold</code> would match non-forage gold-quality items which are either fruits or vegetables.
| + | Например, <code>!forage_item, category_vegetable/category_fruit, quality_gold</code> будет соответствовать предметам, не относящимся к кормовому золоту, которые являются фруктами или овощами. |
| | | |
| ==Смотри также== | | ==Смотри также== |