--- title: infolibrarytypelookup - тип схемы X4 summary: infolibrarytypelookup: Тип атрибута X4: базовый тип, ограничения и варианты значений из схемы. section: reference kind: guide status: reference updated: 2026-10-27 tags: ["XSD","schema","types"] sources: ["https://wiki.egosoft.com/X4%20Foundations%20Wiki/Modding%20Support/","https://www.w3.org/TR/xmlschema11-2/"] --- ## Значение infolibrarytypelookup: Тип атрибута X4: базовый тип, ограничения и варианты значений из схемы. Тип XSD ограничивает XML, а не объявляет результат Lua или тип полезной нагрузки event.param. Прохождение схемы не доказывает игровой эффект. ## Структура схемы `libraries/common.xsd` | Свойство | Значение | | --- | --- | | Конструкция | `restriction` | | Базовый тип | [`xs:string`](wiki:schema-xs-string-d5652e9b) | | Ограничение | Значение | | --- | --- | | `enumeration` | `shiptypes_xl` | | `enumeration` | `shiptypes_l` | | `enumeration` | `shiptypes_m` | | `enumeration` | `shiptypes_s` | | `enumeration` | `shiptypes_xs` | | `enumeration` | `stationtypes` | | `enumeration` | `moduletypes_production` | | `enumeration` | `moduletypes_build` | | `enumeration` | `moduletypes_storage` | | `enumeration` | `moduletypes_habitation` | | `enumeration` | `moduletypes_defence` | | `enumeration` | `moduletypes_communication` | | `enumeration` | `moduletypes_dock` | | `enumeration` | `moduletypes_pier` | | `enumeration` | `moduletypes_other` | | `enumeration` | `moduletypes_processing` | | `enumeration` | `moduletypes_venture` | | `enumeration` | `moduletypes_welfare` | | `enumeration` | `weapons_lasers` | | `enumeration` | `weapons_missilelaunchers` | | `enumeration` | `weapons_turrets` | | `enumeration` | `weapons_missileturrets` | | `enumeration` | `shieldgentypes` | | `enumeration` | `enginetypes` | | `enumeration` | `thrustertypes` | | `enumeration` | `missiletypes` | | `enumeration` | `marines` | | `enumeration` | `unique_npcs` | | `enumeration` | `wares` | | `enumeration` | `productionmethods` | | `enumeration` | `researchmethods` | | `enumeration` | `researchables` | | `enumeration` | `inventory_wares` | | `enumeration` | `races` | | `enumeration` | `factions` | | `enumeration` | `licences` | | `enumeration` | `entitytypes` | | `enumeration` | `equipmentmods` | | `enumeration` | `paintmods` | | `enumeration` | `clothingmods` | | `enumeration` | `software` | | `enumeration` | `bombs` | | `enumeration` | `lasertowers` | | `enumeration` | `mines` | | `enumeration` | `navbeacons` | | `enumeration` | `resourceprobes` | | `enumeration` | `satellites` | | `enumeration` | `timeline` | | `enumeration` | `audiologs` | restriction уточняет базовый тип; union разрешает один из вариантов; list описывает элементы, разделённые пробелами. Значения enumeration одного ограничения являются альтернативами. pattern использует регулярные выражения XML Schema, а не Lua или JavaScript. Ограничения базового типа продолжают действовать. ## Пример и результат Примеры в контексте находятся в связанных карточках атрибутов ниже. По одному имени типа нельзя составить универсальный исполняемый пример. ## Где используется | Элемент | Атрибут | Схема | | --- | --- | --- | | [`add_encyclopedia_entry`](wiki:api-md-add-encyclopedia-entry-dc631156) | `type` | `libraries/common.xsd` | [Все типы схем](wiki:schema-types) · [Типы значений Lua / MD](wiki:types)